Permalink
Browse files

Go back to only one package, as I've been unable to have omake build …

…bytecode without -custom.
  • Loading branch information...
1 parent b732d18 commit 820ef0549a72ad8f1a30a50ac4e66f8b4d0f9f6c @g2p g2p committed with mfp May 16, 2008
Showing with 36 additions and 60 deletions.
  1. +0 −4 debian/README.Debian-source
  2. +23 −0 debian/control
  3. +0 −45 debian/control.in
  4. +0 −4 debian/gibak-byte.install
  5. +0 −6 debian/gibak.install
  6. +13 −1 debian/rules
@@ -1,7 +1,3 @@
-To get debian/control, which you need to build anything, do:
-DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes debian/rules debian/control
-
When building from a git checkout, be sure to pass “ -i -I ” to the
higher-level tool you use among debuild, dpkg-buildpackage or dpkg-source.
-
View
@@ -0,0 +1,23 @@
+Source: gibak
+Section: utils
+Priority: optional
+Maintainer: Gabriel de Perthuis <g2p.code@gmail.com>
+Build-Depends: debhelper, cdbs, ocaml-findlib, ocaml-nox (>= 3.10.0), ocaml-best-compilers, omake
+Standards-Version: 3.7.3
+Homepage: http://eigenclass.org/repos/gitweb?p=gibak.git;a=summary
+
+Package: gibak
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, git-core (>= 1.5.4.2), rsync (>= 2.6.4), bash (>= 3.2)
+Description: backup tool based on Git
+ Since gibak builds upon the infrastructure offered by Git, it shares its main
+ strengths:
+ * speed: recovering your data is faster that cp -a...
+ * full revision history
+ * space-efficient data store, with file compression and textual/binary deltas
+ * efficient transport protocol to replicate the backup (faster than rsync)
+ .
+ gibak uses Git's hook system to save and restore the information Git doesn't
+ track itself such as permissions, empty directories and optionally mtime
+ fields.
+
View
@@ -1,45 +0,0 @@
-Source: gibak
-Section: utils
-Priority: optional
-Maintainer: Gabriel de Perthuis <g2p.code@gmail.com>
-Build-Depends: debhelper, cdbs, ocaml-findlib, ocaml-nox (>= 3.10.0), ocaml-best-compilers, omake
-Standards-Version: 3.7.3
-Homepage: http://eigenclass.org/repos/gitweb?p=gibak.git;a=summary
-
-Package: gibak
-Conflicts: gibak-byte
-Replaces: gibak-byte
-Architecture: @OCamlNativeArchs@
-Depends: ${shlibs:Depends}, ${misc:Depends}, git-core (>= 1.5.4.2), rsync (>= 2.6.4), bash (>= 3.2)
-Description: backup tool based on Git
- Since gibak builds upon the infrastructure offered by Git, it shares its main
- strengths:
- * speed: recovering your data is faster that cp -a...
- * full revision history
- * space-efficient data store, with file compression and textual/binary deltas
- * efficient transport protocol to replicate the backup (faster than rsync)
- .
- gibak uses Git's hook system to save and restore the information Git doesn't
- track itself such as permissions, empty directories and optionally mtime
- fields.
-
-Package: gibak-byte
-Conflicts: gibak
-Replaces: gibak
-Architecture: all
-Depends: ocaml-base-nox-${F:OCamlABI}, ${shlibs:Depends}, ${misc:Depends}, git-core (>= 1.5.4.2), rsync (>= 2.6.4), bash (>= 3.2)
-Description: backup tool based on Git
- Since gibak builds upon the infrastructure offered by Git, it shares its main
- strengths:
- * speed: recovering your data is faster that cp -a...
- * full revision history
- * space-efficient data store, with file compression and textual/binary deltas
- * efficient transport protocol to replicate the backup (faster than rsync)
- .
- gibak uses Git's hook system to save and restore the information Git doesn't
- track itself such as permissions, empty directories and optionally mtime
- fields.
- .
- This package contains the arch independent bytecode version. Consider using
- the faster nativecode version if it is available on your arch.
-
@@ -1,4 +0,0 @@
-find-git-files usr/bin
-find-git-repos usr/bin
-gibak usr/bin
-ometastore usr/bin
View
@@ -1,7 +1 @@
-find-git-files.opt usr/bin
-find-git-files usr/bin
-find-git-repos.opt usr/bin
-find-git-repos usr/bin
gibak usr/bin
-ometastore.opt usr/bin
-ometastore usr/bin
View
@@ -2,8 +2,20 @@
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ocaml.mk
+ML_PROGS = ometastore find-git-files find-git-repos
+ML_PROG_EXT = $(if OCAML_HAVE_OCAMLOPT,.opt,.run)
+ML_PROGS_ALL = $(ML_PROGS) $(ML_PROGS:%=%$(ML_PROG_EXT))
+
build/gibak::
- omake || omake # hack; doesn't work first time
+ # Always necessary somehow
+ omake NATIVE_ENABLED=false BYTE_ENABLED=true
+ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
+ omake NATIVE_ENABLED=true BYTE_ENABLED=false
+endif
+
+install/gibak::
+ install -d "$(DEB_DESTDIR)/usr/bin"
+ install -t "$(DEB_DESTDIR)/usr/bin" $(ML_PROGS_ALL)
clean::
omake clean

0 comments on commit 820ef05

Please sign in to comment.