From: Sylvain Le Gall Date: Tue, 13 May 2008 18:46:29 +0000 (+0000) Subject: * Update section on camlp4 in the policy X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~472 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=eb9b3253fe2f2276116b5efae2badcbd4f9a2a55;p=ocaml.git * Update section on camlp4 in the policy --- diff --git a/debian/policy/chapter-generalities.xml b/debian/policy/chapter-generalities.xml index d4a0bd3b..969585db 100644 --- a/debian/policy/chapter-generalities.xml +++ b/debian/policy/chapter-generalities.xml @@ -230,9 +230,6 @@ bytecode object files (*.cmo) native object files (*.cmx) configuration files for handling libraries with ocamlfind (META) - - diff --git a/debian/policy/chapter-libpack.xml b/debian/policy/chapter-libpack.xml index 9d38b0d5..4b5d3954 100644 --- a/debian/policy/chapter-libpack.xml +++ b/debian/policy/chapter-libpack.xml @@ -244,33 +244,47 @@ -->
- &camlp4; - - Actually, &camlp4; extensions are stored in - &ocaml-sys-dir;/camlp4/. In order to do something - cleaner, &ocaml-force; proposes to put this files in their own directory, even in their - own package. It is not mandatory, but it could ease a lot by avoiding - name clashes. + &camlp4;/&camlp5; + + Actually, &camlp4; extensions should be processed just as standard + OCaml library. The META file distributed with this syntax extension + should follow the + + OSR: META files for packages containing syntax extensions. In + particular, the syntax extension should be contained in a syntax sub + packages. - You just have to consider a &camlp4; file just as a standard library, except that you - prefix them with -syntax. For example: the syntax - extension coming with libokey-ocaml-dev should be stored - in &ocaml-sys-dir;/okey-syntax/, the package - containing it should be called libokey-syntax-ocaml-dev. + The naming convention of the package is to use the same naming as with + standard package, replacing -ocaml- by the syntax + extension name, -camlp4-. - It is recommended to use META to specify how to handle this - extension. + If a package contains at the same time syntax extension and library, it + is up to the maintainer to choose the most relevant name for the package. + Whatever the name chosen for the package, the other name should be a + Provide of the package. - All definition is taken from previous text considering syntax extension as a standalone - library. + For example, consider the package sexplib310. + It provides a syntax extension and a library, which is the runtime support + of the additional function generated by the syntax extension. Since the most + common use of sexplib310 is through its syntax + extension, the package is name + libsexplib-camlp4-dev and it also provide + libsexplib-ocaml-dev. + + &camlp5; is an alternate pretty-printer and preprocessor for OCaml + (which is compatible with pre-3.10.0 version). Syntax extension are + handled through exactly the same scheme as for &camlp4; except that + package name use -camlp5- rather than + -camlp4-. +
diff --git a/debian/policy/ocaml_packaging_policy.xml b/debian/policy/ocaml_packaging_policy.xml index c2ea848a..ccd42f1e 100644 --- a/debian/policy/ocaml_packaging_policy.xml +++ b/debian/policy/ocaml_packaging_policy.xml @@ -18,7 +18,8 @@ ocamlopt"> ocamldoc"> ocamlfind"> -CamlP4"> +Camlp4"> +Camlp5">