import of asciidoc-8.2.3

AsciiDoc is a text document format for writing short documents, articles, books
and UNIX man pages. AsciiDoc files can be translated to HTML and DocBook
markups using the asciidoc(1) command.
This commit is contained in:
robert 2007-10-08 14:39:04 +00:00
parent 58688b38e5
commit 896e966e25
5 changed files with 228 additions and 0 deletions

View File

@ -0,0 +1,66 @@
# $OpenBSD: Makefile,v 1.1.1.1 2007/10/08 14:39:04 robert Exp $
COMMENT= A text document format for writing documents and man pages
DISTNAME= asciidoc-8.2.3
CATEGORIES= textproc
MAINTAINER= Robert Nagy <robert@openbsd.org>
HOMEPAGE= http://www.methods.co.nz/asciidoc/
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}
MODULES= lang/python
RUN_DEPENDS= ::misc/gnugetopt \
::shells/bash \
::textproc/libxslt
NO_BUILD= Yes
NO_REGRESS= Yes
post-configure:
@perl -pi -e 's,/usr/bin/env python,/usr/bin/env ${MODPY_BIN},g' \
${WRKSRC}/asciidoc.py ${WRKSRC}/filters/*.py
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/asciidoc.py ${PREFIX}/bin/asciidoc
${INSTALL_SCRIPT} ${WRKSRC}/a2x ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/asciidoc.1 ${WRKSRC}/doc/a2x.1 \
${PREFIX}/man/man1
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/asciidoc \
${PREFIX}/share/examples/asciidoc/filters \
${PREFIX}/share/examples/asciidoc/docbook-xsl \
${PREFIX}/share/examples/asciidoc/stylesheets \
${PREFIX}/share/examples/asciidoc/javascripts \
${PREFIX}/share/examples/asciidoc/images/icons/callouts
${INSTALL_DATA} ${WRKSRC}/*.conf ${PREFIX}/share/examples/asciidoc
${INSTALL_DATA} ${WRKSRC}/filters/code-filter.conf \
${PREFIX}/share/examples/asciidoc/filters
${INSTALL_SCRIPT} ${WRKSRC}/filters/code-filter.py \
${WRKSRC}/filters/music2png.py \
${PREFIX}/share/examples/asciidoc/filters
${INSTALL_DATA} ${WRKSRC}/filters/*.conf \
${PREFIX}/share/examples/asciidoc/filters
${INSTALL_DATA} ${WRKSRC}/docbook-xsl/*.xsl \
${PREFIX}/share/examples/asciidoc/docbook-xsl
${INSTALL_DATA} ${WRKSRC}/stylesheets/*.css \
${PREFIX}/share/examples/asciidoc/stylesheets
${INSTALL_DATA} ${WRKSRC}/javascripts/*.js \
${PREFIX}/share/examples/asciidoc/javascripts
${INSTALL_DATA} ${WRKSRC}/images/icons/*.png \
${PREFIX}/share/examples/asciidoc/images/icons
${INSTALL_DATA} ${WRKSRC}/images/icons/callouts/* \
${PREFIX}/share/examples/asciidoc/images/icons/callouts
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (asciidoc-8.2.3.tar.gz) = QjivCzt/7wufqyVHMfmnFg==
RMD160 (asciidoc-8.2.3.tar.gz) = 9zJ6RjqoZsSNavJaRc57gf3Z3ws=
SHA1 (asciidoc-8.2.3.tar.gz) = xfJF48yY/HeFA34ntwAsf2sHG5Y=
SHA256 (asciidoc-8.2.3.tar.gz) = xF19o95Ry7zxrdLeE6vM3j0+e97D7IYnU8JIZcrg7B0=
SIZE (asciidoc-8.2.3.tar.gz) = 909401

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-a2x,v 1.1.1.1 2007/10/08 14:39:04 robert Exp $
--- a2x.orig Wed Jul 18 10:09:06 2007
+++ a2x Mon Oct 8 13:24:45 2007
@@ -220,14 +220,14 @@ function parse_options()
if [ -z "$*" ]; then
help; exit 0
fi
- require "getopt"
- getopt -T >/dev/null
+ require "gnugetopt"
+ gnugetopt -T >/dev/null
if [ $? -ne 4 ]; then
quit "enhanced getopt(1) required"
fi
short_opts="a:d:D:f:hnsv"
long_opts="attribute:,asciidoc-opts:,destination-dir:,doctype:,help,icons-dir:,dry-run,format:,copy,icons,skip-asciidoc,stylesheet:,version,verbose,xsltproc-opts:"
- args=$(getopt -o $short_opts -l $long_opts -n $BASENAME -- "$@" 2>/dev/null)
+ args=$(gnugetopt -o $short_opts -l $long_opts -n $BASENAME -- "$@" 2>/dev/null)
if [ $? -ne 0 ]; then
quit "invalid command options, run: a2x --help"
fi

View File

@ -0,0 +1,3 @@
AsciiDoc is a text document format for writing short documents, articles, books
and UNIX man pages. AsciiDoc files can be translated to HTML and DocBook
markups using the asciidoc(1) command.

133
textproc/asciidoc/pkg/PLIST Normal file
View File

@ -0,0 +1,133 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/10/08 14:39:04 robert Exp $
bin/a2x
bin/asciidoc
@man man/man1/a2x.1
@man man/man1/asciidoc.1
share/examples/asciidoc/
@sample ${SYSCONFDIR}/asciidoc/
share/examples/asciidoc/asciidoc.conf
@sample ${SYSCONFDIR}/asciidoc/asciidoc.conf
share/examples/asciidoc/docbook-xsl/
@sample ${SYSCONFDIR}/asciidoc/docbook-xsl/
share/examples/asciidoc/docbook-xsl/chunked.xsl
@sample ${SYSCONFDIR}/asciidoc/docbook-xsl/chunked.xsl
share/examples/asciidoc/docbook-xsl/common.xsl
@sample ${SYSCONFDIR}/asciidoc/docbook-xsl/common.xsl
share/examples/asciidoc/docbook-xsl/fo.xsl
@sample ${SYSCONFDIR}/asciidoc/docbook-xsl/fo.xsl
share/examples/asciidoc/docbook-xsl/htmlhelp.xsl
@sample ${SYSCONFDIR}/asciidoc/docbook-xsl/htmlhelp.xsl
share/examples/asciidoc/docbook-xsl/manpage.xsl
@sample ${SYSCONFDIR}/asciidoc/docbook-xsl/manpage.xsl
share/examples/asciidoc/docbook-xsl/xhtml.xsl
@sample ${SYSCONFDIR}/asciidoc/docbook-xsl/xhtml.xsl
share/examples/asciidoc/docbook.conf
@sample ${SYSCONFDIR}/asciidoc/docbook.conf
share/examples/asciidoc/filters/
@sample ${SYSCONFDIR}/asciidoc/filters/
share/examples/asciidoc/filters/code-filter.conf
@sample ${SYSCONFDIR}/asciidoc/filters/code-filter.conf
share/examples/asciidoc/filters/code-filter.py
@sample ${SYSCONFDIR}/asciidoc/filters/code-filter.py
share/examples/asciidoc/filters/music-filter.conf
@sample ${SYSCONFDIR}/asciidoc/filters/music-filter.conf
share/examples/asciidoc/filters/music2png.py
@sample ${SYSCONFDIR}/asciidoc/filters/music2png.py
share/examples/asciidoc/filters/source-highlight-filter.conf
@sample ${SYSCONFDIR}/asciidoc/filters/source-highlight-filter.conf
share/examples/asciidoc/help.conf
@sample ${SYSCONFDIR}/asciidoc/help.conf
share/examples/asciidoc/html4.conf
@sample ${SYSCONFDIR}/asciidoc/html4.conf
share/examples/asciidoc/images/
@sample ${SYSCONFDIR}/asciidoc/images/
share/examples/asciidoc/images/icons/
@sample ${SYSCONFDIR}/asciidoc/images/icons/
share/examples/asciidoc/images/icons/callouts/
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/
share/examples/asciidoc/images/icons/callouts/1.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/1.png
share/examples/asciidoc/images/icons/callouts/10.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/10.png
share/examples/asciidoc/images/icons/callouts/11.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/11.png
share/examples/asciidoc/images/icons/callouts/12.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/12.png
share/examples/asciidoc/images/icons/callouts/13.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/13.png
share/examples/asciidoc/images/icons/callouts/14.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/14.png
share/examples/asciidoc/images/icons/callouts/15.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/15.png
share/examples/asciidoc/images/icons/callouts/2.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/2.png
share/examples/asciidoc/images/icons/callouts/3.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/3.png
share/examples/asciidoc/images/icons/callouts/4.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/4.png
share/examples/asciidoc/images/icons/callouts/5.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/5.png
share/examples/asciidoc/images/icons/callouts/6.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/6.png
share/examples/asciidoc/images/icons/callouts/7.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/7.png
share/examples/asciidoc/images/icons/callouts/8.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/8.png
share/examples/asciidoc/images/icons/callouts/9.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/callouts/9.png
share/examples/asciidoc/images/icons/caution.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/caution.png
share/examples/asciidoc/images/icons/example.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/example.png
share/examples/asciidoc/images/icons/home.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/home.png
share/examples/asciidoc/images/icons/important.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/important.png
share/examples/asciidoc/images/icons/next.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/next.png
share/examples/asciidoc/images/icons/note.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/note.png
share/examples/asciidoc/images/icons/prev.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/prev.png
share/examples/asciidoc/images/icons/tip.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/tip.png
share/examples/asciidoc/images/icons/up.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/up.png
share/examples/asciidoc/images/icons/warning.png
@sample ${SYSCONFDIR}/asciidoc/images/icons/warning.png
share/examples/asciidoc/javascripts/
@sample ${SYSCONFDIR}/asciidoc/javascripts/
share/examples/asciidoc/javascripts/ASCIIMathML.js
@sample ${SYSCONFDIR}/asciidoc/javascripts/ASCIIMathML.js
share/examples/asciidoc/javascripts/LaTeXMathML.js
@sample ${SYSCONFDIR}/asciidoc/javascripts/LaTeXMathML.js
share/examples/asciidoc/javascripts/toc.js
@sample ${SYSCONFDIR}/asciidoc/javascripts/toc.js
share/examples/asciidoc/latex.conf
@sample ${SYSCONFDIR}/asciidoc/latex.conf
share/examples/asciidoc/linuxdoc.conf
@sample ${SYSCONFDIR}/asciidoc/linuxdoc.conf
share/examples/asciidoc/stylesheets/
@sample ${SYSCONFDIR}/asciidoc/stylesheets/
share/examples/asciidoc/stylesheets/docbook-xsl.css
@sample ${SYSCONFDIR}/asciidoc/stylesheets/docbook-xsl.css
share/examples/asciidoc/stylesheets/xhtml-deprecated-manpage.css
@sample ${SYSCONFDIR}/asciidoc/stylesheets/xhtml-deprecated-manpage.css
share/examples/asciidoc/stylesheets/xhtml-deprecated.css
@sample ${SYSCONFDIR}/asciidoc/stylesheets/xhtml-deprecated.css
share/examples/asciidoc/stylesheets/xhtml11-manpage.css
@sample ${SYSCONFDIR}/asciidoc/stylesheets/xhtml11-manpage.css
share/examples/asciidoc/stylesheets/xhtml11-quirks.css
@sample ${SYSCONFDIR}/asciidoc/stylesheets/xhtml11-quirks.css
share/examples/asciidoc/stylesheets/xhtml11.css
@sample ${SYSCONFDIR}/asciidoc/stylesheets/xhtml11.css
share/examples/asciidoc/text.conf
@sample ${SYSCONFDIR}/asciidoc/text.conf
share/examples/asciidoc/xhtml-deprecated-css.conf
@sample ${SYSCONFDIR}/asciidoc/xhtml-deprecated-css.conf
share/examples/asciidoc/xhtml-deprecated.conf
@sample ${SYSCONFDIR}/asciidoc/xhtml-deprecated.conf
share/examples/asciidoc/xhtml11-quirks.conf
@sample ${SYSCONFDIR}/asciidoc/xhtml11-quirks.conf
share/examples/asciidoc/xhtml11.conf
@sample ${SYSCONFDIR}/asciidoc/xhtml11.conf