source: trunk/dports/textproc/naturaldocs/Portfile

Last change on this file was 151874, checked in by mojca@…, 15 months ago

naturaldocs: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
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: Portfile 151874 2016-08-23 12:46:16Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                naturaldocs
8version             1.52
9revision            2
10categories          textproc devel
11license             AGPL-3
12maintainers         nomaintainer
13description         Documentation system for several programming languages
14long_description    Natural Docs is an open-source documentation generator for multiple \
15                    programming languages.  You document your code in a natural syntax \
16                    that reads like plain English.  Natural Docs then scans your code \
17                    and builds high-quality HTML documentation from it.
18
19platforms           darwin
20supported_archs     noarch
21
22homepage            http://www.naturaldocs.org/
23master_sites        sourceforge:project/naturaldocs/Stable%20Releases/${version}/
24distname            NaturalDocs-${version}
25use_zip             yes
26extract.mkdir       yes
27
28checksums           rmd160  92b6420cd4450f787bb7170e39cfe8e56b27bfb2 \
29                    sha256  3f13c99e15778afe6c5555084a083f856e93567b31b08acd1fd81afb10082681
30
31perl5.branches      5.24
32
33depends_lib         port:perl${perl5.major}
34
35post-patch {
36    reinplace -locale C s|/usr/bin/perl|${perl5.bin}|g ${worksrcpath}/NaturalDocs
37    file attributes ${worksrcpath}/NaturalDocs -permissions +x
38}
39
40use_configure       no
41
42build {}
43
44destroot {
45    file copy ${worksrcpath} ${destroot}${prefix}/lib/
46    ln -sf ${prefix}/lib/NaturalDocs-${version}/NaturalDocs ${destroot}${prefix}/bin/
47    file mkdir ${destroot}${perl5.lib}
48    ln -sf ${prefix}/lib/NaturalDocs-${version}/Modules/NaturalDocs ${destroot}${perl5.lib}/
49}
50
51livecheck.type      regex
52livecheck.url       ${homepage}download.html
53livecheck.regex     version(\[0-9.\]+).html
Note: See TracBrowser for help on using the repository browser.