[Pkg-ocaml-maint-commits] [SCM] ocamlbricks packaging branch, master, updated. debian/0.50.1-4-26-g57c36f5

Lucas Nussbaum lucas at debian.org
Mon Feb 18 16:18:08 UTC 2013


The following commit has been merged in the master branch:
commit c6ae752c85c07a18d031e4c4f39e4a8fe4e1bd36
Author: Lucas Nussbaum <lucas at debian.org>
Date:   Sat Dec 1 18:06:41 2012 +0100

    Initial debian/rules

diff --git a/debian/rules b/debian/rules
index e5abdf8..f0ad1c3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,97 +1,100 @@
 #!/usr/bin/make -f
-# This file was generated by dh_make and adapted by 
-# Jonathan Roudiere (2008) for liboamlbricks-ocaml-dev package.
 
-# include standard OCaml template
-include /usr/share/ocaml/ocamlinit.mk
-
-# Variable use here (find version, path)
-DESTDIR = $(CURDIR)/debian/tmp
-
-# include an external Makefile to use dpatch
-include /usr/share/dpatch/dpatch.make
-
-# Upstream package
-PACKAGE = ocamlbricks
-VERSION = 0.50.1
-
-# Name of generated package
-DEB_PACKAGE = libocamlbricks-ocaml-dev
-
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-        CFLAGS += -g
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-        INSTALL_PROGRAM += -s
-endif
-
-configure: configure-stamp
-configure-stamp: ocamlinit
-	dh_testdir
-	touch configure-stamp
-
-build: build-stamp
-build-stamp: patch-stamp configure-stamp 
-	dh_testdir
-	test -d '$(CURDIR)/doc' || mkdir '$(CURDIR)/doc'
-	$(MAKE)
-	touch build-stamp
-
-clean: unpatch ocamlinit-clean
-	dh_testdir
-	dh_testroot
-	-$(RM) build-stamp configure-stamp 
-	$(MAKE) clean
-	dh_clean --exclude=buildsystem/* 
-	-$(RM) $(CURDIR)/debian/$(DEB_PACKAGE).doc-base.ocamldoc-apiref
-	-$(RM) $(CURDIR)/debian/$(DEB_PACKAGE).dirs
-	-$(RM) $(CURDIR)/debian/$(DEB_PACKAGE).*.debhelper 
-	-$(RM) -r '$(CURDIR)/doc'
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k --exclude=buildsystem/* 
-	dh_installdirs
-	$(MAKE) install
-	
-	# Documentation type html 
-	cp $(DESTDIR)/usr/share/doc/$(PACKAGE)/html/*.html $(CURDIR)/debian/$(DEB_PACKAGE)/usr/share/doc/$(DEB_PACKAGE)/html/api/
-	cp $(DESTDIR)/usr/share/doc/$(PACKAGE)/html/*.css $(CURDIR)/debian/$(DEB_PACKAGE)/usr/share/doc/$(DEB_PACKAGE)/html/api/
-
-	# Copy libraries for libocamlbricks-ocaml-dev
-	cp $(DESTDIR)/$(OCAML_STDLIB_DIR)/$(PACKAGE)/* $(CURDIR)/debian/$(DEB_PACKAGE)/$(OCAML_STDLIB_DIR)/$(PACKAGE)/
-	-$(RM) $(CURDIR)/debian/$(DEB_PACKAGE)/$(OCAML_STDLIB_DIR)/$(PACKAGE)/stupidprogram*
-
-	# create .mli file (header)
-	chmod +x $(CURDIR)/debian/generate_mli.sh
-	$(CURDIR)/debian/generate_mli.sh  $(CURDIR)/debian/$(DEB_PACKAGE)/$(OCAML_STDLIB_DIR)/$(PACKAGE)/
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir -s
-	dh_testroot -s
-	dh_installchangelogs -s
-	dh_installdocs -s
-	dh_installexamples -s --exclude=COPYING $(CURDIR)/debian/buildsystem
-	dh_installexamples -s $(CURDIR)/stupidprogram.ml
-	dh_installexamples -s $(CURDIR)/LEDGRID/sample-images
-	dh_install -s
-	dh_compress -s
-	dh_fixperms -s
-	dh_makeshlibs -s
-	dh_installdeb -s
-	dh_shlibdeps -s
-	dh_ocaml -s
-	dh_gencontrol -s
-	dh_md5sums -s
-	dh_builddeb -s
-
-binary: binary-indep binary-arch
+include /usr/share/ocaml/ocamlvars.mk
+
+%:
+	        dh $@ --with ocaml
+# 
+# # include standard OCaml template
+# include /usr/share/ocaml/ocamlinit.mk
+# 
+# # Variable use here (find version, path)
+# DESTDIR = $(CURDIR)/debian/tmp
+# 
+# # include an external Makefile to use dpatch
+# include /usr/share/dpatch/dpatch.make
+# 
+# # Upstream package
+# PACKAGE = ocamlbricks
+# VERSION = 0.50.1
+# 
+# # Name of generated package
+# DEB_PACKAGE = libocamlbricks-ocaml-dev
+# 
+# ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+#         CFLAGS += -g
+# endif
+# ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+#         INSTALL_PROGRAM += -s
+# endif
+# 
+# configure: configure-stamp
+# configure-stamp: ocamlinit
+# 	dh_testdir
+# 	touch configure-stamp
+# 
+# build: build-stamp
+# build-stamp: patch-stamp configure-stamp 
+# 	dh_testdir
+# 	test -d '$(CURDIR)/doc' || mkdir '$(CURDIR)/doc'
+# 	$(MAKE)
+# 	touch build-stamp
+# 
+# clean: unpatch ocamlinit-clean
+# 	dh_testdir
+# 	dh_testroot
+# 	-$(RM) build-stamp configure-stamp 
+# 	$(MAKE) clean
+# 	dh_clean --exclude=buildsystem/* 
+# 	-$(RM) $(CURDIR)/debian/$(DEB_PACKAGE).doc-base.ocamldoc-apiref
+# 	-$(RM) $(CURDIR)/debian/$(DEB_PACKAGE).dirs
+# 	-$(RM) $(CURDIR)/debian/$(DEB_PACKAGE).*.debhelper 
+# 	-$(RM) -r '$(CURDIR)/doc'
+# 
+# install: build
+# 	dh_testdir
+# 	dh_testroot
+# 	dh_clean -k --exclude=buildsystem/* 
+# 	dh_installdirs
+# 	$(MAKE) install
+# 	
+# 	# Documentation type html 
+# 	cp $(DESTDIR)/usr/share/doc/$(PACKAGE)/html/*.html $(CURDIR)/debian/$(DEB_PACKAGE)/usr/share/doc/$(DEB_PACKAGE)/html/api/
+# 	cp $(DESTDIR)/usr/share/doc/$(PACKAGE)/html/*.css $(CURDIR)/debian/$(DEB_PACKAGE)/usr/share/doc/$(DEB_PACKAGE)/html/api/
+# 
+# 	# Copy libraries for libocamlbricks-ocaml-dev
+# 	cp $(DESTDIR)/$(OCAML_STDLIB_DIR)/$(PACKAGE)/* $(CURDIR)/debian/$(DEB_PACKAGE)/$(OCAML_STDLIB_DIR)/$(PACKAGE)/
+# 	-$(RM) $(CURDIR)/debian/$(DEB_PACKAGE)/$(OCAML_STDLIB_DIR)/$(PACKAGE)/stupidprogram*
+# 
+# 	# create .mli file (header)
+# 	chmod +x $(CURDIR)/debian/generate_mli.sh
+# 	$(CURDIR)/debian/generate_mli.sh  $(CURDIR)/debian/$(DEB_PACKAGE)/$(OCAML_STDLIB_DIR)/$(PACKAGE)/
+# 
+# # Build architecture-independent files here.
+# binary-indep: build install
+# # We have nothing to do by default.
+# 
+# # Build architecture-dependent files here.
+# binary-arch: build install
+# 	dh_testdir -s
+# 	dh_testroot -s
+# 	dh_installchangelogs -s
+# 	dh_installdocs -s
+# 	dh_installexamples -s --exclude=COPYING $(CURDIR)/debian/buildsystem
+# 	dh_installexamples -s $(CURDIR)/stupidprogram.ml
+# 	dh_installexamples -s $(CURDIR)/LEDGRID/sample-images
+# 	dh_install -s
+# 	dh_compress -s
+# 	dh_fixperms -s
+# 	dh_makeshlibs -s
+# 	dh_installdeb -s
+# 	dh_shlibdeps -s
+# 	dh_ocaml -s
+# 	dh_gencontrol -s
+# 	dh_md5sums -s
+# 	dh_builddeb -s
+# 
+# binary: binary-indep binary-arch
 
 # see https://launchpad.net/ocamlbricks/trunk
 PACKAGE = ocamlbricks

-- 
ocamlbricks packaging



More information about the Pkg-ocaml-maint-commits mailing list