[Pkg-ocaml-maint-commits] r2099 - trunk/packages/camlrpc/trunk/debian

Thomas Petazzoni tpetazzo-guest at costa.debian.org
Tue Nov 22 21:24:10 UTC 2005


Author: tpetazzo-guest
Date: 2005-11-22 21:24:09 +0000 (Tue, 22 Nov 2005)
New Revision: 2099

Modified:
   trunk/packages/camlrpc/trunk/debian/control
   trunk/packages/camlrpc/trunk/debian/rules
Log:
Update control for new ABI

Modified: trunk/packages/camlrpc/trunk/debian/control
===================================================================
--- trunk/packages/camlrpc/trunk/debian/control	2005-11-22 20:59:32 UTC (rev 2098)
+++ trunk/packages/camlrpc/trunk/debian/control	2005-11-22 21:24:09 UTC (rev 2099)
@@ -3,13 +3,13 @@
 Priority: optional
 Maintainer: Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>
 Uploaders: Thomas Petazzoni <thomas.petazzoni at enix.org>, Samuel Mimram <smimram at debian.org>
-Build-Depends: debhelper (>= 4.0.0), ocaml-nox-3.08.3, ocaml-findlib, libequeue-ocaml-dev, dpatch (>= 1.19)
+Build-Depends: debhelper (>= 4.0.0), ocaml-nox (>= @OCamlABI@), ocaml-findlib, libequeue-ocaml-dev, dpatch (>= 1.19)
 Standards-Version: 3.6.2
 
 Package: librpc-ocaml-dev
 Section: libdevel
 Architecture: any
-Depends: ocaml-nox-3.08.3, libequeue-ocaml-dev, ${shlibs:Depends}
+Depends: ocaml-nox-${F:OCamlABI}, libequeue-ocaml-dev, ${shlibs:Depends}
 Description: Ocaml Sun RPC libraries
  RPC is a package supporting the Sun RPC protocol. RPC programs,
  procedures, clients, and servers can be dynamically represented and

Modified: trunk/packages/camlrpc/trunk/debian/rules
===================================================================
--- trunk/packages/camlrpc/trunk/debian/rules	2005-11-22 20:59:32 UTC (rev 2098)
+++ trunk/packages/camlrpc/trunk/debian/rules	2005-11-22 21:24:09 UTC (rev 2099)
@@ -12,6 +12,9 @@
 
 OCAML_LIBDIR=`ocamlc -where`
 
+OCAMLABI := $(shell ocamlc -version)
+OFILES := $(patsubst %.in,%,$(shell ls debian/*.in))
+
 DESTDIR=$(CURDIR)/debian/librpc-ocaml-dev/$(OCAML_LIBDIR)
 BINDIR=$(CURDIR)/debian/librpc-ocaml-dev/usr/bin/
 
@@ -19,6 +22,9 @@
 include /usr/share/dpatch/dpatch.make
 PACKAGE = camlrpc
 
+ocamlinit:
+	for f in $(OFILES); do sed -e 's/@OCamlABI@/$(OCAMLABI)/g' $$f.in > $$f; done
+
 configure-stamp: configure
 	dh_testdir
 	# Add here commands to configure the package.
@@ -79,7 +85,7 @@
 	dh_fixperms
 	dh_installdeb
 	dh_shlibdeps
-	dh_gencontrol
+	dh_gencontrol -- -VF:OCamlABI="$(OCAMLABI)"
 	dh_md5sums
 	dh_builddeb
 




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