Created
January 11, 2009 20:33
-
-
Save tsukkee/45795 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: Portfile 44195 2008-12-23 18:48:45Z [email protected] $ | |
PortSystem 1.0 | |
name asciidoc | |
version 8.2.7 | |
categories textproc | |
maintainers boeyms openmaintainer | |
description Formatter/translator for text files to numerous formats | |
long_description \ | |
AsciiDoc is a text document format for writing short documents, \ | |
articles, books and UNIX man pages. AsciiDoc files can be translated to \ | |
HTML (with or without stylesheets), DocBook and LinuxDoc markup using \ | |
the asciidoc(1) command. AsciiDoc is highly configurable: both the \ | |
AsciiDoc source file syntax and the backend output markups (which can be \ | |
almost any type of SGML/XML markup) can be customized and extended by \ | |
the user. | |
platforms darwin | |
homepage http://www.methods.co.nz/asciidoc/ | |
master_sites sourceforge | |
checksums md5 f631c10bcf7216eaf6bc804c84ebb8e1 \ | |
sha1 ec784654f01f3aa71af6453c8985839010759fab \ | |
rmd160 d9b19b5bd90a7ee26b3d63ba8b5f6ce60841e62c | |
depends_run port:python25 port:getopt port:docbook-xml-4.2 port:fop-0.20 | |
use_configure no | |
# If you hava encoding problem with fetch, please write below settings in $HOME/.hgrc | |
# | |
# [defaults] | |
# add = --encoding=utf-8 | |
# clone = --encoding=utf-8 | |
# commit = --encoding=utf-8 | |
# init = --encoding=utf-8 | |
# pull = --encoding=utf-8 | |
# push = --encoding=utf-8 | |
# remove = --encoding=utf-8 | |
# revert = --encoding=utf-8 | |
# update = --encoding=utf-8 | |
# | |
fetch.type hg | |
hg.url http://hg.sharesource.org/asciidoc/ | |
hg.tag 8.2.7 | |
build {} | |
destroot { | |
xinstall -d \ | |
${destroot}${prefix}/share/${name} \ | |
${destroot}${prefix}/etc/${name}/images/ | |
xinstall -W ${worksrcpath} -m 755 asciidoc.py ${destroot}${prefix}/bin/${name} | |
xinstall -W ${worksrcpath} -m 755 a2x ${destroot}${prefix}/bin/a2x | |
eval file copy \ | |
[glob -d ${worksrcpath} *.conf] \ | |
${worksrcpath}/docbook-xsl \ | |
${worksrcpath}/filters \ | |
${worksrcpath}/javascripts \ | |
${worksrcpath}/stylesheets \ | |
${destroot}${prefix}/etc/${name}/ | |
file copy ${worksrcpath}/images/icons ${destroot}${prefix}/etc/${name}/images/ | |
# Note, doc and examples (per porthier(7)) should be in their own subdir | |
# of ${prefix}/share, but asciidoc has quite a few symlinks in the | |
# examples, so they go under ${prefix}/share/${name} to keep things working | |
file copy \ | |
${worksrcpath}/doc \ | |
${worksrcpath}/examples \ | |
${worksrcpath}/images \ | |
${worksrcpath}/javascripts \ | |
${worksrcpath}/stylesheets \ | |
${destroot}${prefix}/share/${name} | |
xinstall -W ${worksrcpath} \ | |
BUGS.txt \ | |
CHANGELOG.txt \ | |
COPYING \ | |
COPYRIGHT \ | |
INSTALL.txt \ | |
MANIFEST \ | |
README.txt \ | |
${destroot}${prefix}/share/${name} | |
xinstall -W ${worksrcpath} \ | |
doc/${name}.1.txt \ | |
doc/a2x.1.txt \ | |
${destroot}${prefix}/share/man/man1 | |
reinplace "s|^#!/usr/bin/env python|#!${prefix}/bin/python2.5|" \ | |
${destroot}${prefix}/bin/${name} \ | |
${destroot}${prefix}/etc/${name}/filters/code-filter.py | |
reinplace "s|/etc/${name}|${prefix}/etc/${name}|" \ | |
${destroot}${prefix}/bin/${name} ${destroot}${prefix}/bin/a2x | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment