1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name findlib |
---|
6 | version 1.1.2pl1 |
---|
7 | categories devel |
---|
8 | description OCaml package management |
---|
9 | platforms darwin |
---|
10 | maintainers web@jon.buffington.name |
---|
11 | homepage http://www.ocaml-programming.de/programming/findlib.html |
---|
12 | master_sites http://www.ocaml-programming.de/packages/ |
---|
13 | checksums md5 df4c9176e9d5b8a6d37668d108fae923 |
---|
14 | depends_lib port:ocaml |
---|
15 | |
---|
16 | long_description \ |
---|
17 | The "findlib" library provides a scheme to manage reusable software \ |
---|
18 | components (packages), and includes tools that support this scheme. \ |
---|
19 | Packages are collections of OCaml modules for which metainformation \ |
---|
20 | can be stored. The packages are kept in the filesystem hierarchy, \ |
---|
21 | but with strict directory structure. The library contains functions \ |
---|
22 | to look the directory up that stores a package, to query \ |
---|
23 | metainformation about a package, and to retrieve dependency \ |
---|
24 | information about multiple packages. There is also a tool that \ |
---|
25 | allows the user to enter queries on the command-line. In order to \ |
---|
26 | simplify compilation and linkage, there are new frontends of the \ |
---|
27 | various OCaml compilers that can directly deal with packages. |
---|
28 | |
---|
29 | # turn-off default "--prefix" argument |
---|
30 | configure.pre_args |
---|
31 | |
---|
32 | # configure building of scripts by using final destination |
---|
33 | configure.args -bindir ${prefix}/bin \ |
---|
34 | -mandir ${prefix}/share/man \ |
---|
35 | -sitelib ${prefix}/lib/ocaml/site-lib \ |
---|
36 | -config ${prefix}/etc/ocaml/findlib.conf |
---|
37 | |
---|
38 | # build both bytecode and native versions |
---|
39 | build.target all opt |
---|
40 | |
---|
41 | # change install locations to destroot'ed values for install |
---|
42 | pre-destroot { |
---|
43 | reinplace "s:${prefix}:${destroot}${prefix}:g" \ |
---|
44 | ${worksrcpath}/Makefile.config |
---|
45 | } |
---|