The following commit has been merged in the master branch:
commit 5f8d63e4cb77257f99da833e96a29914ebb432ca
Author: Stephane Glondu <st...@glondu.net>
Date:   Sun Apr 8 17:12:06 2012 +0200

    Adapt to new upstream build system

diff --git a/debian/control b/debian/control
index 4a98c07..b2a7cdb 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ocaml
 Priority: optional
 Maintainer: Debian OCaml Maintainers <debian-ocaml-ma...@lists.debian.org>
 Uploaders: Sylvain Le Gall <gil...@debian.org>
-Build-Depends: cdbs (>= 0.4.23), 
+Build-Depends:
   debhelper (>= 8),
   ocaml-nox (>= 3.11), 
   dh-ocaml (>= 0.9.1)
diff --git a/debian/libuuidm-ocaml-dev.install 
b/debian/libuuidm-ocaml-dev.install
new file mode 100644
index 0000000..73752c9
--- /dev/null
+++ b/debian/libuuidm-ocaml-dev.install
@@ -0,0 +1 @@
+usr
diff --git a/debian/rules b/debian/rules
index 5baa31c..d9a63d0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,42 +1,35 @@
 #!/usr/bin/make -f
-# debian/rules for uuidm package
-# Copyright (C) 2008 Sylvain Le Gall <gil...@debian.org>
-#
-# This program is free software; you can redistribute it and/or
-# modify it under the terms of the GNU General Public License as
-# published by the Free Software Foundation; either version 2, or (at
-# your option) any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
-# MA 02110-1301, USA.
-
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/rules/ocaml.mk
-
-DESTDIR_DEV=$(CURDIR)/debian/libuuidm-ocaml-dev
-
-OCAML_OCAMLDOC_PACKAGES = libuuidm-ocaml-dev
-
-ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
-build-arch:
-       $(CURDIR)/build module
-
-common-install-arch::
-       INSTALLDIR=$(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)/uuidm $(CURDIR)/build 
install
-else
-build-arch:
-       $(CURDIR)/build module-byte
-
-common-install-arch::
-       INSTALLDIR=$(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)/uuidm $(CURDIR)/build 
install-byte
-endif
-
-clean::
-       $(CURDIR)/build clean
+# -*- makefile -*-
+
+DESTDIR=$(CURDIR)/debian/tmp
+include /usr/share/ocaml/ocamlvars.mk
+OCAMLFIND_DESTDIR=$(DESTDIR)/$(OCAML_STDLIB_DIR)
+export OCAMLFIND_DESTDIR
+
+%:
+       dh $@ --with ocaml
+
+.PHONY: override_dh_auto_configure
+override_dh_auto_configure:
+       ocaml setup.ml -configure --prefix /usr --destdir '$(DESTDIR)' 
--enable-tests
+
+.PHONY: override_dh_auto_build
+override_dh_auto_build:
+       ocaml setup.ml -build
+
+.PHONY: override_dh_auto_test
+override_dh_auto_test:
+       ocaml setup.ml -test
+
+.PHONY: override_dh_auto_install
+override_dh_auto_install:
+       mkdir -p '$(OCAMLFIND_DESTDIR)'
+       ocaml setup.ml -install
+
+.PHONY: override_dh_install
+override_dh_install:
+       dh_install --fail-missing
+
+.PHONY: override_dh_auto_clean
+override_dh_auto_clean:
+       ocaml setup.ml -distclean

-- 
uuidm 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

Reply via email to