[Pkg-ocaml-maint-commits] [SCM] ocamlmakefile packaging branch, experimental/master, updated. debian/6.36.0-2-8-g8dc01e3

2012-10-10 Thread Ralf Treinen
The following commit has been merged in the experimental/master branch:
commit 60709bcbc74e37c0da3ca9dc8d7082cb0048902d
Author: Ralf Treinen 
Date:   Mon Oct 8 09:40:14 2012 +0200

standards-version 3.9.4

diff --git a/debian/changelog b/debian/changelog
index 1546c1b..6db3b6b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-ocamlmakefile (6.37.0-1) unreleased; urgency=low
+ocamlmakefile (6.37.0-1) experimental; urgency=low
 
   * New upstream release
   * debian/rules:
@@ -6,8 +6,9 @@ ocamlmakefile (6.37.0-1) unreleased; urgency=low
   debian/ocamlmakefile.docs. Upstream has renamed README.txt to README.md.
 - dh_installchangelogs invocation: upstream has renamed Changelog to
   CHANGES.txt
+  * Standards-Version 3.9.4 (no change)
 
- -- Ralf Treinen   Fri, 27 Jul 2012 10:37:36 +0200
+ -- Ralf Treinen   Mon, 08 Oct 2012 09:22:04 +0200
 
 ocamlmakefile (6.36.0-2) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index 50114ea..cfc86cd 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Uploaders: Ralf Treinen ,
  Remi Vanicat ,
  Samuel Mimram 
 Build-Depends: debhelper (>= 7.0)
-Standards-Version: 3.9.3
+Standards-Version: 3.9.4
 Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocamlmakefile.git
 Vcs-Browser: 
http://git.debian.org/?p=pkg-ocaml-maint/packages/ocamlmakefile.git
 Homepage: https://bitbucket.org/mmottl/ocaml-makefile

-- 
ocamlmakefile packaging

___
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits


[Pkg-ocaml-maint-commits] [SCM] ocamlmakefile packaging branch, experimental/master, updated. debian/6.36.0-2-8-g8dc01e3

2012-10-10 Thread Ralf Treinen
The following commit has been merged in the experimental/master branch:
commit 8dc01e3c19f841462cc46887b8e5bf0a10e782f4
Author: Ralf Treinen 
Date:   Tue Oct 9 19:56:35 2012 +0200

improve debian/rules: first build files in builddir/, then use debhelper
tools to install.

diff --git a/debian/changelog b/debian/changelog
index 6db3b6b..ce7802e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,8 +7,12 @@ ocamlmakefile (6.37.0-1) experimental; urgency=low
 - dh_installchangelogs invocation: upstream has renamed Changelog to
   CHANGES.txt
   * Standards-Version 3.9.4 (no change)
+  * Migrate debian/rules to dh(1):
+- debian/rules: build modified version of OCamlMakefile and of the examples
+  in temporary directory builddir.
+- add files debian/ocamlmakefile.{dirs,install,examples} to install stuff.
 
- -- Ralf Treinen   Mon, 08 Oct 2012 09:22:04 +0200
+ -- Ralf Treinen   Wed, 10 Oct 2012 08:42:38 +0200
 
 ocamlmakefile (6.36.0-2) unstable; urgency=low
 
diff --git a/debian/ocamlmakefile.dirs b/debian/ocamlmakefile.dirs
new file mode 100644
index 000..b5232a9
--- /dev/null
+++ b/debian/ocamlmakefile.dirs
@@ -0,0 +1,4 @@
+/usr/share/ocamlmakefile
+/usr/share/doc/ocamlmakefile/examples/calc
+/usr/share/doc/ocamlmakefile/examples/idl
+
diff --git a/debian/ocamlmakefile.examples b/debian/ocamlmakefile.examples
new file mode 100644
index 000..9566c42
--- /dev/null
+++ b/debian/ocamlmakefile.examples
@@ -0,0 +1 @@
+builddir/examples/*
diff --git a/debian/ocamlmakefile.install b/debian/ocamlmakefile.install
new file mode 100644
index 000..51ad34b
--- /dev/null
+++ b/debian/ocamlmakefile.install
@@ -0,0 +1 @@
+builddir/OCamlMakefile /usr/share/ocamlmakefile
diff --git a/debian/rules b/debian/rules
index c3a89fa..abf3a60 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,44 +6,46 @@
 # top level dir for documentation
 export DOCDIR=debian/ocamlmakefile/usr/share/doc/ocamlmakefile
 
-# shared dir where files are to be installed
-export SHDIR=debian/ocamlmakefile/usr/share/ocamlmakefile
-
 build: build-arch build-indep
 build-arch: build-stamp
 build-indep: build-stamp
 
 build-stamp:
dh_testdir
+   mkdir -p builddir
+   mkdir -p builddir/examples
+   sed "s|/usr/local/lib|/usr/lib|" \
+   < OCamlMakefile > builddir/OCamlMakefile
+   for f in calc camlp4 idl gtk threads; do\
+ cp -r $$f builddir/examples;\
+ sed "s|../OCamlMakefile|/usr/share/ocamlmakefile/OCamlMakefile|"\
+   < $$f/Makefile\
+   > builddir/examples/$$f/Makefile;\
+   done
+   cp debian/README.examples.idl builddir/examples/calc/README
+   cp debian/README.examples.idl builddir/examples/idl/README
 
 clean:
dh_testdir
dh_testroot
dh_clean
-rm build-stamp
+   -rm -r builddir
 
 install:
dh_testdir
dh_testroot
dh_prep
-   dh_installdirs
-   for f in calc camlp4 idl gtk threads; do\
- cp -r $$f $(DOCDIR)/examples;\
- sed "s|../OCamlMakefile|/usr/share/ocamlmakefile/OCamlMakefile|"\
-   < $$f/Makefile\
-   > $(DOCDIR)/examples/$$f/Makefile;\
-   done
-   cp debian/README.examples.idl $(DOCDIR)/examples/calc/README
-   cp debian/README.examples.idl $(DOCDIR)/examples/idl/README
-   sed "s|/usr/local/lib|/usr/lib|" < OCamlMakefile \
-   > $(SHDIR)/OCamlMakefile
 
 binary-arch: build install
 
 binary-indep: build install
dh_testdir
dh_testroot
+   dh_installdirs
+   dh_install
dh_installdocs
+   dh_installexamples
dh_installchangelogs CHANGES.txt
dh_compress
dh_fixperms

-- 
ocamlmakefile packaging

___
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits