source: trunk/dports/textproc/txt2tags/Portfile

Last change on this file was 154257, checked in by mf2k@…, 11 months ago

libpiano pianobar sane-backends sane-frontends txt2tags: Ports abandoned (#52241)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 154257 2016-10-25 13:31:50Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            txt2tags
6version         2.6
7categories      textproc
8maintainers     nomaintainer
9license         GPL-2
10supported_archs noarch
11
12description     A document generator: ONE source, MULTI targets
13long_description \
14    Txt2tags is a document generator. It reads a text file with minimal \
15    markup as **bold** and //italic// and converts it to the following \
16    formats: HTML, XHTML, SGML, LaTeX, Lout, Man page, MoinMoin, MagicPoint, \
17    PageMaker...
18
19homepage        http://txt2tags.org/
20platforms       darwin
21master_sites    googlecode:txt2tags
22extract.suffix  .tgz
23
24checksums       rmd160  2b8b3fdc29b898a46c011801a92b6872cf17d70e \
25                sha256  601467d7860f3cfb3d48050707c6277ff3ceb22fa7be4f5bd968de540ac5b05c
26
27use_configure   no
28depends_lib     port:python26
29
30build {
31    copy ${worksrcpath}/doc/manpage.man ${worksrcpath}/txt2tags.1
32}
33
34destroot {
35    xinstall -d ${destroot}${prefix}/share/doc/txt2tags
36    xinstall -m 0755 ${worksrcpath}/txt2tags ${destroot}${prefix}/bin/
37    fs-traverse file ${worksrcpath}/doc/ {
38        if {[file isfile ${file}]} {
39            copy ${file} ${destroot}${prefix}/share/doc/txt2tags/
40        }
41    }
42    xinstall -d ${destroot}${prefix}/share/txt2tags/
43    copy ${worksrcpath}/extras ${destroot}${prefix}/share/txt2tags/
44    copy ${worksrcpath}/samples ${destroot}${prefix}/share/txt2tags/
45    xinstall -m 0644 ${worksrcpath}/txt2tags.1 ${destroot}${prefix}/share/man/man1/
46    reinplace "s|#!/usr/bin/env python|#!${prefix}/bin/python2.6|" \
47        ${destroot}${prefix}/bin/txt2tags \
48        ${destroot}${prefix}/share/txt2tags/extras/gensite
49}
Note: See TracBrowser for help on using the repository browser.