source: trunk/dports/devel/caml-heredoc/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: 1.8 KB
Line 
1# $Id: Portfile 137992 2015-06-24 16:17:51Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                caml-heredoc
6version             20060107
7revision            3
8categories          devel ml
9license             LGPL-2.1
10maintainers         nomaintainer
11description         Heredoc: syntactic sugar for text producing applications
12long_description    Without any doubt, OCaml is a great langage for Web publishing. \
13                    I used it for a long time to produce my static web pages and more \
14                    recently to write some CGI scripts. \
15                    HereDoc is an attempt to provide syntactic sugar for such applications.
16homepage            http://www.eleves.ens.fr/home/frisch/soft.html
17platforms           darwin
18master_sites        http://www.eleves.ens.fr/home/frisch/info/
19
20checksums           md5 b1032fcbb61c42cf0600083181c0a84e \
21                    sha1 cb102e7adf0b2539c86a026f8111f36f2aaa9007
22distfiles           HereDoc-${version}.tar.gz
23worksrcdir          HereDoc
24
25livecheck.type      regex
26livecheck.regex     "HereDoc-(.*?).tar.gz"
27
28patchfiles          patch-Makefile
29
30depends_lib         port:ocaml port:ocaml-findlib
31
32use_configure       no
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        file mkdir [ocamlfind_destdir]
47        reinplace s|##PREFIX##|${prefix}| ${worksrcpath}/Makefile
48        reinplace s|##DESTDIR##|[ocamlfind_destdir]| ${worksrcpath}/Makefile
49}
50
51post-destroot {
52        xinstall -d [ocamlfind_destdir]/HereDoc/doc/
53        xinstall -m 644 ${worksrcpath}/doc.html [ocamlfind_destdir]/HereDoc/doc/index.html
54}
Note: See TracBrowser for help on using the repository browser.