source: trunk/dports/devel/caml-heredoc/Portfile @ 57375

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

Change deprecated livecheck.check to livecheck.type
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                caml-heredoc
6version             20060107
7categories          devel ml
8maintainers         eridius
9description         Heredoc: syntactic sugar for text producing applications
10long_description    Without any doubt, OCaml is a great langage for Web publishing. \
11                    I used it for a long time to produce my static web pages and more \
12                    recently to write some CGI scripts. \
13                    HereDoc is an attempt to provide syntactic sugar for such applications.
14homepage            http://www.eleves.ens.fr/home/frisch/soft.html
15platforms           darwin
16master_sites        http://www.eleves.ens.fr/home/frisch/info/
17
18checksums           md5 b1032fcbb61c42cf0600083181c0a84e \
19                    sha1 cb102e7adf0b2539c86a026f8111f36f2aaa9007
20distfiles           HereDoc-${version}.tar.gz
21worksrcdir          HereDoc
22
23livecheck.type      regex
24livecheck.regex     "HereDoc-(.*?).tar.gz"
25
26patchfiles          patch-Makefile
27
28depends_lib         bin:camlp4:ocaml bin:ocamlfind:caml-findlib
29
30use_configure       no
31
32proc ocamlfind_destdir {} {
33    # only bother calculating this darn thing once
34    variable ocamlfind_destdir {}
35    variable destroot
36    variable prefix
37    if {![string length $ocamlfind_destdir]} {
38        set ocamlfind_destdir ${destroot}[exec ${prefix}/bin/ocamlfind printconf destdir]
39    }
40    return $ocamlfind_destdir
41}
42
43pre-destroot {
44        file mkdir [ocamlfind_destdir]
45        reinplace s|##PREFIX##|${prefix}| ${worksrcpath}/Makefile
46        reinplace s|##DESTDIR##|[ocamlfind_destdir]| ${worksrcpath}/Makefile
47}
48
49post-destroot {
50        xinstall -d [ocamlfind_destdir]/HereDoc/doc/
51        xinstall -m 644 ${worksrcpath}/doc.html [ocamlfind_destdir]/HereDoc/doc/index.html
52}
Note: See TracBrowser for help on using the repository browser.