source: trunk/dports/lang/ocamlduce/Portfile

Last change on this file was 137992, checked in by mww@…, 2 years ago

inc. revision to rebuild library dependents of ocaml (ocaml update to version 4.02.2)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 137992 2015-06-24 16:17:51Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                ocamlduce
6version             3.12.1.0
7revision            4
8categories          lang ml
9maintainers         mww openmaintainer
10license             {QPL LGPL}
11description         Objective Caml extensions for manipulating XML
12long_description    OCamlDuce is a merger between OCaml and CDuce. It \
13                    comes as a modified version of OCaml which integrates \
14                    CDuce features: expressions, types, patterns.
15homepage            http://www.cduce.org/ocaml.html
16platforms           darwin
17master_sites        http://forge.ocamlcore.org/frs/download.php/644/:duce \
18                    http://caml.inria.fr/pub/distrib/ocaml-3.12/:ocaml
19
20distfiles           ${name}-${version}.tar.gz:duce ocaml-3.12.1.tar.bz2:ocaml
21checksums           ocamlduce-3.12.1.0.tar.gz \
22                    rmd160  33078e31c4cffade2f6d762fa9e9e4023f96fec4 \
23                    sha256  3eda11591d9babf9f6fc25f257367cd36fffe3cc03a6b0105a2d49fc62aa91ab \
24                    ocaml-3.12.1.tar.bz2 \
25                    rmd160  61d38c0785491c8790ac02ab78fb2f26ea490fc1 \
26                    sha256  edcf563da75e0b91f09765649caa98ab1535e0c7498f0737b5591b7de084958d
27depends_lib         port:ocaml port:ocaml-findlib
28
29use_parallel_build  no
30
31extract.only        ${name}-${version}.tar.gz
32
33patch {
34    system -W ${worksrcpath} "make prepare OCAML_SOURCE=${distpath}/ocaml-3.12.1.tar.bz2"
35}
36
37# all options are identical to ones in the ocaml port
38configure.dir       ${worksrcpath}/ocaml-3.12.1
39configure.pre_args  -prefix ${prefix}
40configure.args      -no-tk -cc ${configure.cc} -aspp \"${configure.cc} -c\"
41
42build.dir           ${configure.dir}
43build.target        world.opt
44build.args          -f Makefile.ocamlduce
45build.cmd           "unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && ${build.cmd}"
46
47destroot.dir        ${configure.dir}
48destroot.args       -f Makefile.ocamlduce
49destroot.target     installopt installbyte
50destroot.destdir    BINDIR=${destroot}${prefix}/bin \
51                    LIBDIR=${destroot}${prefix}/lib/ocaml \
52                    MANDIR=${destroot}${prefix}/share/man
53
54post-destroot {
55    xinstall -m 755 -d ${destroot}${prefix}/lib/ocaml/site-lib
56    system "cd ${destroot}${prefix}/lib/ocaml/site-lib && ln -s ../ocamlduce"
57}
58
59# ocaml is not universal
60universal_variant   no
61
Note: See TracBrowser for help on using the repository browser.