Ticket #37292: Portfile

File Portfile, 2.7 KB (added by bradskins@…, 12 years ago)

Portfile for help2man @1.40.10

Line 
1PortSystem 1.0
2
3name                    help2man
4version                 1.40.10
5categories              textproc
6platforms               darwin
7license                 GPL-3+
8installs_libs   no
9maintainers             nomaintainer
10description             automatically generate simple man pages
11
12long_description        help2man is a tool for automatically generating simple \
13                        manual pages from program output.
14
15homepage                http://www.gnu.org/software/help2man/
16master_sites    gnu
17
18checksums           rmd160  52ef3e50f49e0449dd7c89209775ad3a0849eb7e \
19                    sha256  f7c85b9af84a87d7da912b62dadf426118841750ed1e4598787a54fddaf82b9c
20
21if {[variant_isset perl5_8]} {
22    set branch 5.8
23} elseif {[variant_isset perl5_10]} {
24    set branch 5.10
25} elseif {[variant_isset perl5_14]} {
26    set branch 5.14
27} elseif {[variant_isset perl5_16]} {
28    set branch 5.16
29} else {
30    set branch 5.12
31    default_variants +perl5_12
32}
33
34variant perl5_8 conflicts perl5_10 perl5_12 perl5_14 perl5_16 description {use perl 5.8} {
35    depends_lib-append  port:perl5.8 port:p5.8-locale-gettext \
36                                port:gettext port:libiconv
37        configure.perl  ${prefix}/bin/perl5.8
38}
39
40variant perl5_10 conflicts perl5_8 perl5_12 perl5_14 perl5_16 description {use perl 5.10} {
41    depends_lib-append  port:perl5.10 port:p5.10-locale-gettext \
42                                port:gettext port:libiconv
43        configure.perl  ${prefix}/bin/perl5.10
44}
45
46variant perl5_12 conflicts perl5_8 perl5_10 perl5_14 perl5_16 description {use perl 5.12} {
47    depends_lib-append  port:perl5.12 port:p5.12-locale-gettext \
48                                port:gettext port:libiconv
49        configure.perl  ${prefix}/bin/perl5.12
50}
51
52variant perl5_14 conflicts perl5_8 perl5_10 perl5_12 perl5_16 description {use perl 5.14} {
53    depends_lib-append  port:perl5.14 port:p5.14-locale-gettext \
54                                port:gettext port:libiconv
55        configure.perl  ${prefix}/bin/perl5.14
56}
57
58variant perl5_16 conflicts perl5_8 perl5_10 perl5_12 perl5_14 description {use perl 5.16} {
59    depends_lib-append  port:perl5.16 port:p5.16-locale-gettext \
60                                port:gettext port:libiconv
61        configure.perl  ${prefix}/bin/perl5.16
62}
63
64configure.args  --enable-nls
65
66configure.universal_args-delete --disable-dependency-tracking
67
68variant universal {}
69
70post-patch {
71    reinplace "s|-shared|-bundle ${configure.ldflags} [get_canonical_archflags ld]|" ${worksrcpath}/Makefile.in
72}
73
74post-destroot {
75        set docdir ${prefix}/share/doc/${name}
76        xinstall -d ${destroot}${docdir}
77        xinstall -m 0644 -W ${worksrcpath} COPYING debian/changelog NEWS README THANKS \
78                ${destroot}${docdir}
79}