1 | # $Id: Portfile,v 1.3 2005/03/08 08:26:40 blb Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python24 1.0 |
---|
5 | name py-asciidoc |
---|
6 | version 7.1.0 |
---|
7 | revision 0 |
---|
8 | categories-append textproc |
---|
9 | maintainers darwinports@opendarwin.org |
---|
10 | description Formatter/translator for text files to numerous formats |
---|
11 | long_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 | |
---|
20 | platforms darwin |
---|
21 | |
---|
22 | homepage http://www.methods.co.nz/asciidoc/ |
---|
23 | master_sites sourceforge:asciidoc |
---|
24 | distname asciidoc-${version} |
---|
25 | |
---|
26 | checksums md5 f23bb80417767ac4f0b8006e5a7e1f43 |
---|
27 | |
---|
28 | post-patch { |
---|
29 | reinplace "s|^#!/usr/bin/env python|#!${prefix}/bin/python|" \ |
---|
30 | ${worksrcpath}/asciidoc.py ${worksrcpath}/filters/code-filter.py |
---|
31 | } |
---|
32 | |
---|
33 | build {} |
---|
34 | |
---|
35 | destroot { |
---|
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 | |
---|