[Pkg-ocaml-maint-commits] r1618 - trunk/tools/dh_ocaml

Stefano Zacchiroli zack at costa.debian.org
Sat Aug 20 10:10:43 UTC 2005


Author: zack
Date: 2005-08-20 10:10:42 +0000 (Sat, 20 Aug 2005)
New Revision: 1618

Modified:
   trunk/tools/dh_ocaml/dh_ocaml
Log:
- add dependency on ocaml-base-nox-<ocaml_version> for packages shipping bytecode non-custom OCaml executable
- improved dh_ocaml man page formatting


Modified: trunk/tools/dh_ocaml/dh_ocaml
===================================================================
--- trunk/tools/dh_ocaml/dh_ocaml	2005-08-20 10:09:27 UTC (rev 1617)
+++ trunk/tools/dh_ocaml/dh_ocaml	2005-08-20 10:10:42 UTC (rev 1618)
@@ -6,7 +6,7 @@
 # Copyright (C) 2005, Stefano Zacchiroli <zack at debian.org>
 #
 # Created:	  Fri, 01 Apr 2005 19:50:48 +0200 zack
-# Last-Modified:  Sat, 09 Jul 2005 18:45:56 +0200 zack
+# Last-Modified:  Sat, 20 Aug 2005 09:46:04 +0200 zack
 #
 # This is free software, you can redistribute it and/or modify it under the
 # terms of the GNU General Public License version 2 or above as published by the
@@ -41,6 +41,7 @@
   error "$bin does not exists or is not executable" unless -x $bin;
 }
 chomp (my $ocaml_lib_dir = `$ocamlc -where`);
+chomp (my $ocaml_version = `$ocamlc -version`);
 
 my $md5dir = "/var/lib/ocaml/md5sums";
 my $md5ext = ".md5sums";
@@ -82,13 +83,33 @@
 discussed for the library case.
 
 In addition to dependencies extracted from the system md5sum registry, dh_ocaml
-will add: (1) dependency from libXXX-ocaml-dev to libXXX-ocaml (runtime part of
-the library), if there is a libXXX-ocaml package in debian/control; (2)
+will add:
+
+=over
+
+=item 1.
+
+dependency from libXXX-ocaml-dev to libXXX-ocaml (runtime part of the library),
+if there is a libXXX-ocaml package in debian/control;
+
+=item 2.
+
 dependency from libXXX-ocaml-dev to ocaml-findlib if the package ships any META
-file in the OCaml library directory; (3) dependency from libXXX-ocaml, if any,
-to the appropriate ocaml-base-* package (please note that the substvar for
-libXXX-ocaml will be filled while processing libXXX-ocaml-dev).
+file in the OCaml library directory;
 
+=item 3.
+
+dependency from libXXX-ocaml, if any, to the appropriate ocaml-base-* package
+(please note that the substvar for libXXX-ocaml will be filled while processing
+libXXX-ocaml-dev);
+
+=item 4.
+
+dependency on ocaml-base-nox-<ocaml_version> for packages shipping bytecode
+non-custom OCaml executables.
+
+=back
+
 =head1 OPTIONS
 
 =over 4
@@ -185,6 +206,7 @@
     }
     close DEPS;
   }
+  add_ocaml_dep $package, "ocaml-base-nox-$ocaml_version", "-" unless $is_library;
 }
 
 # check if a given binary package exists in debian/control




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