source: trunk/dports/devel/caml-camomile/Portfile @ 53793

Last change on this file since 53793 was 53793, checked in by ryandesign@…, 10 years ago

Set svn:keywords to Id per current policy.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
RevLine 
[53330]1# $Id: Portfile 53793 2009-07-14 05:05:41Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                caml-camomile
6version             0.7.2
7categories          devel ml
8maintainers         toots@rastageeks.org
9description         OCaml module to convert strings to and from various encodings
10homepage            http://camomile.sf.net/
11platforms           darwin
12master_sites        sourceforge:camomile
13distfiles           camomile-${version}.tar.bz2
14worksrcdir          camomile-${version}
15use_bzip2           yes
16
17checksums           md5     288e17838fedc52aacb733952b25d5dd \
18                    sha1    8793a16a689056b9b20b54654ff67aebf7153857 \
19                    rmd160  e77220de7c2be9a13c60aafe6aec476eca9a7645
20
21depends_lib         port:ocaml port:caml-findlib
22
23configure.cflags    {}
24configure.cxxflags  {}
25configure.cppflags  {}
26configure.ldflags   {}
27configure.cxx       {}
28configure.objc      {}
29configure.cpp       {}
30configure.cc        {}
31
32build.args          LIBDIRS=${prefix}/lib
33
34proc ocamlfind_destdir {} {
35    # only bother calculating this darn thing once
36    variable ocamlfind_destdir {}
37    variable destroot
38    variable prefix
39    if {![string length $ocamlfind_destdir]} {
40        set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
41    }
42    return $ocamlfind_destdir
43}
44
45pre-destroot {
46  system "mkdir -p [ocamlfind_destdir]"
47  reinplace "s#ocamlfind install#ocamlfind install -ldconf ignore -destdir '[ocamlfind_destdir]'#g" ${worksrcpath}/Makefile
48  reinplace "s#\$(DATADIR)#${destroot}\$(DATADIR)#g" ${worksrcpath}/Makefile
49  reinplace "s#\$(BINDIR)#${destroot}\$(BINDIR)#g" ${worksrcpath}/Makefile
50}
51
52livecheck.check     regex
53livecheck.regex     "camomile-(.*?).tar.bz2"
Note: See TracBrowser for help on using the repository browser.