1 | PortSystem 1.0 |
---|
2 | |
---|
3 | name help2man |
---|
4 | version 1.40.10 |
---|
5 | categories textproc |
---|
6 | platforms darwin |
---|
7 | license GPL-3+ |
---|
8 | installs_libs no |
---|
9 | maintainers nomaintainer |
---|
10 | description automatically generate simple man pages |
---|
11 | |
---|
12 | long_description help2man is a tool for automatically generating simple \ |
---|
13 | manual pages from program output. |
---|
14 | |
---|
15 | homepage http://www.gnu.org/software/help2man/ |
---|
16 | master_sites gnu |
---|
17 | |
---|
18 | checksums rmd160 52ef3e50f49e0449dd7c89209775ad3a0849eb7e \ |
---|
19 | sha256 f7c85b9af84a87d7da912b62dadf426118841750ed1e4598787a54fddaf82b9c |
---|
20 | |
---|
21 | if {[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 | |
---|
34 | variant 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 | |
---|
40 | variant 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 | |
---|
46 | variant 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 | |
---|
52 | variant 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 | |
---|
58 | variant 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 | |
---|
64 | configure.args --enable-nls |
---|
65 | |
---|
66 | configure.universal_args-delete --disable-dependency-tracking |
---|
67 | |
---|
68 | variant universal {} |
---|
69 | |
---|
70 | post-patch { |
---|
71 | reinplace "s|-shared|-bundle ${configure.ldflags} [get_canonical_archflags ld]|" ${worksrcpath}/Makefile.in |
---|
72 | } |
---|
73 | |
---|
74 | post-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 | } |
---|