1 | # $Id: Portfile 103749 2013-03-06 14:37:34Z jmr@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name txt2html |
---|
6 | version 1.35 |
---|
7 | categories textproc |
---|
8 | license BSD |
---|
9 | maintainers nomaintainer |
---|
10 | description Convert ASCII text to HTML |
---|
11 | homepage http://www.aigeek.com/txt2html/ |
---|
12 | platforms darwin |
---|
13 | supported_archs noarch |
---|
14 | |
---|
15 | long_description txt2html is a Perl program that converts plain text to \ |
---|
16 | HTML. It supports headings, lists, simple character \ |
---|
17 | markup, hyperlinking, and is highly customizable. It \ |
---|
18 | recognizes some of the structure of the source document \ |
---|
19 | (whitespace, typographic layout, etc.), and attempts to \ |
---|
20 | mark that structure explicitly using HTML. |
---|
21 | |
---|
22 | master_sites sourceforge |
---|
23 | |
---|
24 | extract.suffix .tgz |
---|
25 | checksums md5 ba007af9d0681b3f493c84869b147071 |
---|
26 | |
---|
27 | use_configure no |
---|
28 | post-configure { reinplace "s|/usr/share/misc|${prefix}/share/${name}|g" \ |
---|
29 | ${worksrcpath}/${name}.pl } |
---|
30 | |
---|
31 | build {} |
---|
32 | |
---|
33 | destroot { system "install -m 755 -d ${destroot}${prefix}/bin" |
---|
34 | system "install -m 755 ${worksrcpath}/${name}.pl \ |
---|
35 | ${destroot}${prefix}/bin/${name}" |
---|
36 | system "install -m 755 -d \ |
---|
37 | ${destroot}${prefix}/share/${name}" |
---|
38 | system "install -m 644 ${worksrcpath}/${name}.dict \ |
---|
39 | ${destroot}${prefix}/share/${name}" |
---|
40 | system "install -m 755 -d \ |
---|
41 | ${destroot}${prefix}/share/doc/${name}" |
---|
42 | system "install -m 644 ${worksrcpath}/* \ |
---|
43 | ${destroot}${prefix}/share/doc/${name}" |
---|
44 | system "rm ${destroot}${prefix}/share/doc/${name}/${name}.*" } |
---|