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+
13PortSystem 1.0
4+ PortGroup perl5 1.0
5+ PortGroup github 1.0
26
3- name txt2html
4- version 1.35
7+ github.setup resurrecting-open-source-projects txt2html 3.0 v
8+ github.tarball_from archive
9+ revision 0
510categories textproc
611license BSD
712maintainers nomaintainer
@@ -17,26 +22,36 @@ long_description txt2html is a Perl program that converts plain text to \
1722 (whitespace, typographic layout, etc.), and attempts to \
1823 mark that structure explicitly using HTML.
1924
20- master_sites sourceforge
21-
22- extract.suffix .tgz
23- checksums md5 ba007af9d0681b3f493c84869b147071
25+ checksums rmd160 144e9514e7137f682a738fa25ead029241d0bc31 \
26+ sha256 6a2d23a23dd7d06cac0d383745bf456754da4992b5f2f4536d478a46d3a8e57e \
27+ size 140611
2428
2529use_configure no
26- post-configure { reinplace "s|/usr/share/misc|${prefix}/share/${name}|g" \
27- ${worksrcpath}/${name}.pl }
28-
29- build {}
30-
31- destroot { system "install -m 755 -d ${destroot}${prefix}/bin"
32- system "install -m 755 ${worksrcpath}/${name}.pl \
33- ${destroot}${prefix}/bin/${name}"
34- system "install -m 755 -d \
35- ${destroot}${prefix}/share/${name}"
36- system "install -m 644 ${worksrcpath}/${name}.dict \
37- ${destroot}${prefix}/share/${name}"
38- system "install -m 755 -d \
39- ${destroot}${prefix}/share/doc/${name}"
40- system "install -m 644 ${worksrcpath}/* \
41- ${destroot}${prefix}/share/doc/${name}"
42- system "rm ${destroot}${prefix}/share/doc/${name}/${name}.*" }
30+ perl5.use_module_build
31+
32+ depends_lib-append \
33+ port:p${perl5.major} -getopt-long \
34+ port:p${perl5.major} -getopt-argvfile \
35+ port:p${perl5.major} -yaml-syck
36+
37+ # Also requires: Pod::Usage, Test::More but those should be in any
38+ # non-obsolete Perl's core modules.
39+
40+ post-patch {
41+ reinplace " s|/usr/bin/env perl|${perl5.bin} |" ${worksrcpath} /scripts/${name}
42+ }
43+
44+ configure {
45+ system -W ${worksrcpath} " '${perl5.bin} ' './Build.PL' \
46+ '--install_base' '${prefix} '"
47+ }
48+
49+ post-destroot {
50+ file mkdir ${destroot}${prefix} /lib/perl5/${perl5.major}
51+ move ${destroot}${prefix} /lib/perl5/HTML \
52+ ${destroot}${prefix} /lib/perl5/${perl5.major}
53+ move ${destroot}${prefix} /man/man1/txt2html.1pm \
54+ ${destroot}${prefix} /share/man/man1
55+ move ${destroot}${prefix} /man/man3/HTML::TextToHTML.3pm \
56+ ${destroot} /${prefix} /share/man/man3
57+ }
0 commit comments