Ticket #35976: Portfile

File Portfile, 1.6 KB (added by pixilla (Bradley Giesbrecht), 12 years ago)

Example port

Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7perl5.branches      5.8 5.10 5.12 5.14 5.16
8perl5.setup         SGMLSpm 1.03ii
9platforms           darwin
10license             GPL-2+
11maintainers         fourpalms.org:lockhart openmaintainer
12description         Convert SGML, HTML, or XML documents into new formats.
13long_description    Perl programs can use the SGMLSpm module to help convert \
14                    SGML, HTML or XML documents into new formats.
15
16homepage            http://search.cpan.org/dist/SGMLSpm/
17master_sites        http://search.cpan.org/CPAN/authors/id/D/DM/DMEGG/
18
19checksums           rmd160  919963150640d4c1a2a52439cd0d985c52c71bb3 \
20                    sha256  f06895c0206dada9f9e7f07ecaeb6a3651fd648f4820f49c1f76bfeaec2f2913
21
22depends_lib-append  port:openjade \
23                    port:opensp
24
25worksrcdir          ${perl5.module}
26
27if {${perl5.major} != ""} {
28    post-patch {
29        reinplace "s|/usr/local/|${destroot}${prefix}/|" ${worksrcpath}/Makefile
30        reinplace "s|/usr/local/|${destroot}${prefix}/|" ${worksrcpath}/DOC/Makefile
31
32        xinstall -d -m 775 ${destroot}${prefix}/bin
33        xinstall -d -m 775 ${destroot}${perl5.lib}
34        xinstall -d -m 775 ${destroot}${perl5.lib}/SGMLS
35    }
36
37    use_configure       no
38
39    build.args-append   PERL=${perl5.bin} BINDIR=${destroot}${prefix}/bin
40    build.args-append   PERL5DIR=${destroot}${perl5.lib}
41    build.args-append   HTMLDIR=${destroot}${prefix}/share/doc/${subport}
42
43    destroot.target install
44}