From: Sylvain Le Gall Date: Fri, 24 Oct 2003 20:21:02 +0000 (+0000) Subject: Sylvain LE GALL X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~641^2~16 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bb05c870dfd9ac1fb014b269b89aba680d217ae6;p=ocaml.git Sylvain LE GALL --- diff --git a/chapter-ocaml.xml b/chapter-ocaml.xml index ceb4180a..ad57135a 100644 --- a/chapter-ocaml.xml +++ b/chapter-ocaml.xml @@ -163,6 +163,66 @@ + + <filename>META</filename> + + + META distribution is the best way to make more + easy specific library subdirectory oragnization. Even, if user building + a simple executable should only need one library, and don't want to + bother himself by using &ocamlfind;, this same user will find one day + that using &ocamlfind; permit him to compile from anywhere. + + + + Since we distribute META, all devel library + should suggest the use of &ocamlfind;. So a Suggest: + should be set to &ocamlfind-pkg;. + + + + By default, &ocamlfind; will look for META in this order : + + + local + /usr/local/lib/ocaml/&ocaml-version;/META/ + /usr/local/lib/ocaml/&ocaml-version;/package/ + + + core + /usr/lib/ocaml/&ocaml-version;/META/ + /usr/lib/ocaml/&ocaml-version;/package/ + + + + + + The naming scheme of META is pretty simple : + + If META is placed in the subdirectory + of the package, it should be called META. If + you don't call it this way, it won't be recognized by &ocamlfind;. + + If META is placed in + /usr/lib/ocaml/&ocaml-version;/META/, it should + be called META.package. In order to avoid + name clash, it should be specialized to the binary package it is shipped + from, otherwise package should be the package source. + + + + + + If upstream doesn't provide a META, packager are encouraged + to create one. It should be placed in the + /usr/lib/ocaml/&ocaml-version;/META/. META + should be sent to upstream authors, in order to have it in the next version of + the upstream source. + + + + + &ocamldoc; specific generated documentation @@ -186,6 +246,32 @@ + + As for library, the naming scheme of the *.odoc should be + at least the name of the source package from which the documentation was + generated. If a source package is split in many binary package and the + documentation comes only in one *.odoc, packagers are + encouraged to create a separate package and to Suggest: it + in each binary package which he described. If this could not be met, it is at + least a good practice to Suggest: the package containing + the documentation. + The packager should consider to ship one *.odoc per + library package. + + + + By doing this, &ocaml-force; is trying to build a clear way of distributing + documentation. It should help user to find and exploit the documentation + coming from the source. Generating &ocamldoc; documentation is not so hard, + and should take a one line call. Commenting the code in order to generate + fully functional documentation is however an upstream task. Packager are encouraged + to patch Makefile in order to have a target + odoc, generating this documentation and to contact upstream + author to have a well commented source. + + + +