Ticket #7332: Portfile

File Portfile, 1.7 KB (added by namely_void@…, 18 years ago)

new Portfile

Line 
1# $Id: Portfile,v 1.3 2005/03/08 08:26:40 blb Exp $
2
3PortSystem                      1.0
4PortGroup                       python24 1.0
5name                            py-asciidoc
6version                         7.1.0
7revision                        0
8categories-append               textproc
9maintainers                     darwinports@opendarwin.org
10description                     Formatter/translator for text files to numerous formats
11long_description \
12        AsciiDoc is a text document format for writing short documents, \
13        articles, books and UNIX man pages. AsciiDoc files can be translated to \
14        HTML (with or without stylesheets), DocBook and LinuxDoc markup using \
15        the asciidoc(1) command.  AsciiDoc is highly configurable: both the \
16        AsciiDoc source file syntax and the backend output markups (which can be \
17        almost any type of SGML/XML markup) can be customized and extended by \
18        the user.
19
20platforms                       darwin
21
22homepage                        http://www.methods.co.nz/asciidoc/
23master_sites                    sourceforge:asciidoc
24distname                        asciidoc-${version}
25
26checksums                       md5 f23bb80417767ac4f0b8006e5a7e1f43
27
28post-patch {
29        reinplace "s|^#!/usr/bin/env python|#!${prefix}/bin/python|" \
30                ${worksrcpath}/asciidoc.py ${worksrcpath}/filters/code-filter.py
31}
32
33build                           {}
34
35destroot {
36        cd ${worksrcpath}
37        xinstall -m 755 -d ${destroot}/${prefix}/share/${name}
38        eval file copy asciidoc.py [glob *.conf] filters images stylesheets \
39                ${destroot}/${prefix}/share/${name}
40        system "ln -s ${prefix}/share/${name}/asciidoc.py \
41                ${destroot}/${prefix}/bin/asciidoc"
42        xinstall -m 644 CHANGELOG COPYING COPYRIGHT README \
43                ${destroot}/${prefix}/share/doc/${name}
44        eval file copy [glob doc/*] ${destroot}/${prefix}/share/doc/${name}
45        eval file copy [glob examples/*] \
46                ${destroot}/${prefix}/share/doc/${name}/examples
47        xinstall -m 644 doc/asciidoc.1 \
48                ${destroot}/${prefix}/share/man/man1
49}
50