|
1 |
| -PortSystem 1.0 |
2 |
| - |
3 |
| -name txt2html |
4 |
| -version 1.35 |
5 |
| -categories textproc |
6 |
| -license BSD |
7 |
| -maintainers nomaintainer |
8 |
| -description Convert ASCII text to HTML |
9 |
| -homepage http://www.aigeek.com/txt2html/ |
10 |
| -platforms any |
11 |
| -supported_archs noarch |
12 |
| - |
13 |
| -long_description txt2html is a Perl program that converts plain text to \ |
14 |
| - HTML. It supports headings, lists, simple character \ |
15 |
| - markup, hyperlinking, and is highly customizable. It \ |
16 |
| - recognizes some of the structure of the source document \ |
17 |
| - (whitespace, typographic layout, etc.), and attempts to \ |
18 |
| - mark that structure explicitly using HTML. |
19 |
| - |
20 |
| -master_sites sourceforge |
21 |
| - |
22 |
| -extract.suffix .tgz |
23 |
| -checksums md5 ba007af9d0681b3f493c84869b147071 |
24 |
| - |
25 |
| -use_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}.*" } |
| 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 | + |
| 3 | +PortSystem 1.0 |
| 4 | +PortGroup perl5 1.0 |
| 5 | +PortGroup github 1.0 |
| 6 | + |
| 7 | +github.setup resurrecting-open-source-projects txt2html 3.0 v |
| 8 | +revision 0 |
| 9 | +categories textproc |
| 10 | +license BSD |
| 11 | +maintainers nomaintainer |
| 12 | +homepage ${github.homepage} |
| 13 | +platforms any |
| 14 | +supported_archs noarch |
| 15 | + |
| 16 | +description Convert ASCII text to HTML |
| 17 | +long_description txt2html is a Perl program that converts plain text to \ |
| 18 | + HTML. It supports headings, lists, simple character \ |
| 19 | + markup, hyperlinking, and is highly customizable. It \ |
| 20 | + recognizes some of the structure of the source document \ |
| 21 | + (whitespace, typographic layout, etc.), and attempts to \ |
| 22 | + mark that structure explicitly using HTML. |
| 23 | + |
| 24 | +checksums md5 037f5fdfae92181d2bb7abfb443f6949 \ |
| 25 | + rmd160 fd91190626dbf6727fac8b027b8e8fa349168450 \ |
| 26 | + sha256 b66492715305315e6b8cee733bd0b6589194be45a62811788f910704b3cdee88 \ |
| 27 | + size 140568 |
| 28 | + |
| 29 | +perl5.use_module_build |
| 30 | + |
| 31 | +depends_lib-append \ |
| 32 | + port:p${perl5.major}-getopt-long \ |
| 33 | + port:p${perl5.major}-getopt-argvfile \ |
| 34 | + port:p${perl5.major}-yaml-syck |
| 35 | + |
| 36 | +# Also requires: Pod::Usage, Test::More but those should be in any |
| 37 | +# non-obsolete Perl's core modules. |
| 38 | + |
| 39 | +post-patch { |
| 40 | + reinplace "s|/usr/bin/env perl|${perl5.bin}|" ${worksrcpath}/scripts/${name} |
| 41 | +} |
| 42 | + |
| 43 | +use_configure no |
| 44 | +configure { system "cd ${worksrcpath} && \ |
| 45 | + '${perl5.bin}' './Build.PL' '--install_base' '${prefix}'" } |
| 46 | + |
| 47 | +build { system "cd ${worksrcpath} && \ |
| 48 | + '${perl5.bin}' '${worksrcpath}/Build'" } |
| 49 | + |
| 50 | +destroot { system "cd ${worksrcpath} && \ |
| 51 | + '${perl5.bin}' '${worksrcpath}/Build' 'install' \ |
| 52 | + 'destdir=${destroot}'" } |
| 53 | + |
| 54 | +post-destroot { system "mkdir '${destroot}/${prefix}/lib/perl5/${perl5.major}' && \ |
| 55 | + mv '${destroot}/${prefix}/lib/perl5/HTML' \ |
| 56 | + '${destroot}/${prefix}/lib/perl5/${perl5.major}'" |
| 57 | + system "mv '${destroot}/${prefix}/man/man1/txt2html.1pm' \ |
| 58 | + '${destroot}/${prefix}/share/man/man1/'" |
| 59 | + system "mv '${destroot}/${prefix}/man/man3/HTML::TextToHTML.3pm' \ |
| 60 | + '${destroot}/${prefix}/share/man/man3/'" } |
0 commit comments