diff options
author | anholt <anholt@FreeBSD.org> | 2006-02-15 10:22:31 +0800 |
---|---|---|
committer | anholt <anholt@FreeBSD.org> | 2006-02-15 10:22:31 +0800 |
commit | 7479a831c7ffa0b1a46e01f0dc90b68723198b2d (patch) | |
tree | 20d0625779a5f21c2c625993bc02b8e61c85f45f /textproc/asciidoc/Makefile | |
parent | 3e89935511dcf52e1631e2a38b546a95c749ebaa (diff) | |
download | freebsd-ports-gnome-7479a831c7ffa0b1a46e01f0dc90b68723198b2d.tar.gz freebsd-ports-gnome-7479a831c7ffa0b1a46e01f0dc90b68723198b2d.tar.zst freebsd-ports-gnome-7479a831c7ffa0b1a46e01f0dc90b68723198b2d.zip |
New port: asciidoc, a tool to create man, html, pdf, etc. from short, formatted
plain-text documents.
Diffstat (limited to 'textproc/asciidoc/Makefile')
-rw-r--r-- | textproc/asciidoc/Makefile | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/textproc/asciidoc/Makefile b/textproc/asciidoc/Makefile new file mode 100644 index 000000000000..898d3b62636c --- /dev/null +++ b/textproc/asciidoc/Makefile @@ -0,0 +1,57 @@ +# New ports collection makefile for: asciidoc +# Date created: 9 Feb 2006 +# Whom: anholt@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= asciidoc +PORTVERSION= 7.1.0 +CATEGORIES= textproc +MASTER_SITES= http://www.methods.co.nz/asciidoc/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= anholt@FreeBSD.org +COMMENT= A text document format for writing short documents and man pages + +USE_PYTHON= yes + +NO_BUILD= yes + +MAN1= a2x.1 asciidoc.1 + +pre-patch: + ${REINPLACE_CMD} \ + -e "s|/bin/bash|/usr/bin/env bash|g" \ + -e "s|/etc/asciidoc|${PREFIX}/etc/asciidoc|g" \ + ${WRKSRC}/a2x + ${REINPLACE_CMD} \ + -e "s|/etc/asciidoc|${PREFIX}/etc/asciidoc|g" \ + ${WRKSRC}/asciidoc.py + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/asciidoc.py ${PREFIX}/bin/asciidoc + ${INSTALL_SCRIPT} ${WRKSRC}/a2x ${PREFIX}/bin + ${MKDIR} ${PREFIX}/etc/asciidoc + ${INSTALL_DATA} ${WRKSRC}/*.conf ${PREFIX}/etc/asciidoc + ${MKDIR} ${PREFIX}/etc/asciidoc/filters + ${INSTALL_DATA} ${WRKSRC}/filters/code-filter.conf \ + ${PREFIX}/etc/asciidoc/filters + ${INSTALL_SCRIPT} ${WRKSRC}/filters/code-filter.py \ + ${PREFIX}/etc/asciidoc/filters + ${MKDIR} ${PREFIX}/etc/asciidoc/docbook-xsl + ${INSTALL_DATA} ${WRKSRC}/docbook-xsl/*.xsl \ + ${PREFIX}/etc/asciidoc/docbook-xsl + ${MKDIR} ${PREFIX}/etc/asciidoc/stylesheets + ${INSTALL_DATA} ${WRKSRC}/stylesheets/*.css \ + ${PREFIX}/etc/asciidoc/stylesheets + ${MKDIR} ${PREFIX}/etc/asciidoc/images/icons/callouts + ${INSTALL_DATA} ${WRKSRC}/images/icons/*.png \ + ${PREFIX}/etc/asciidoc/images/icons + ${INSTALL_DATA} ${WRKSRC}/images/icons/callouts/* \ + ${PREFIX}/etc/asciidoc/images/icons/callouts + ${INSTALL_MAN} ${WRKSRC}/doc/a2x.1 ${WRKSRC}/doc/asciidoc.1 \ + ${PREFIX}/man/man1 + +.include <bsd.port.mk> |