aboutsummaryrefslogtreecommitdiff
path: root/textproc/xmlto
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2003-06-20 16:27:08 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2003-06-20 16:27:08 +0000
commitbbff107031a489b6c71ac8f2501f3ad14df3dfbc (patch)
tree71d50abc758ded40fdc2f90c9197122432927f95 /textproc/xmlto
parent106805a50c937c10caa786a061aeab948446b76b (diff)
downloadports-bbff107031a489b6c71ac8f2501f3ad14df3dfbc.tar.gz
ports-bbff107031a489b6c71ac8f2501f3ad14df3dfbc.zip
Notes
Diffstat (limited to 'textproc/xmlto')
-rw-r--r--textproc/xmlto/Makefile67
-rw-r--r--textproc/xmlto/distinfo1
-rw-r--r--textproc/xmlto/pkg-descr12
-rw-r--r--textproc/xmlto/pkg-plist25
4 files changed, 105 insertions, 0 deletions
diff --git a/textproc/xmlto/Makefile b/textproc/xmlto/Makefile
new file mode 100644
index 000000000000..d31423a453ea
--- /dev/null
+++ b/textproc/xmlto/Makefile
@@ -0,0 +1,67 @@
+# New ports collection makefile for: xmlto
+# Date created: 2003-06-05
+# Whom: Sergei Kolobov <sergei@kolobov.com>
+#
+# $FreeBSD$
+#
+
+# The following compile-time options are available:
+# WITH_PASSIVETEX Enable PassiveTex support for DVI/PDF/PS output
+
+PORTNAME= xmlto
+PORTVERSION= 0.0.14
+CATEGORIES= textproc
+MASTER_SITES= http://cyberelk.net/tim/data/xmlto/stable/
+
+MAINTAINER= sergei@kolobov.com
+COMMENT= Front-end to an XSL toolchain
+
+BUILD_DEPENDS= ${BASH_CMD}:${PORTSDIR}/shells/bash2 \
+ ${GETOPT_CMD}:${PORTSDIR}/misc/getopt \
+ xmllint:${PORTSDIR}/textproc/libxml2 \
+ xsltproc:${PORTSDIR}/textproc/libxslt \
+ ${XSL_DIR}:${PORTSDIR}/textproc/docbook-xsl
+RUN_DEPENDS= ${BUILD_DEPENDS}
+
+.if defined(WITH_PASSIVETEX) || exists(${PASSIVETEX})
+BUILD_DEPENDS+= ${PASSIVETEX}:${PORTSDIR}/print/passivetex
+PLIST_SUB= PASSIVETEX=""
+.else
+PLIST_SUB= PASSIVETEX="@comment "
+.endif
+
+USE_BZIP2= yes
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-bash=${BASH_CMD} --with-getopt=${GETOPT_CMD}
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+BASH_CMD= ${LOCALBASE}/bin/bash
+GETOPT_CMD= ${LOCALBASE}/bin/getopt
+PASSIVETEX= ${LOCALBASE}/share/texmf/tex/passivetex
+
+DOCBOOK_URL= http://www.oasis-open.org/docbook/xml
+DOCBOOK_DIR= ${LOCALBASE}/share/xml/docbook
+XSL_URL= http://docbook.sourceforge.net/release/xsl/current
+XSL_DIR= ${LOCALBASE}/share/xsl/docbook
+
+MAN1= xmlif.1 xmlto.1
+DOCS= AUTHORS NEWS
+
+do-patch:
+ ${REINPLACE_CMD} -e 's,/bin/bash,${BASH_CMD},' ${WRKSRC}/xmlto.in
+ ${REINPLACE_CMD} -e 's,${DOCBOOK_URL},${DOCBOOK_DIR},' \
+ ${WRKSRC}/doc/xml*.xml
+ ${REINPLACE_CMD} -e 's,${XSL_URL},${XSL_DIR},' \
+ ${WRKSRC}/format/docbook/*
+.if !defined(WITH_PASSIVETEX)
+ ${REINPLACE_CMD} -e '/format\/fo\//d' ${WRKSRC}/Makefile.in
+.endif
+
+.if !defined(NOPORTDOCS)
+post-install:
+ @${MKDIR} ${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/textproc/xmlto/distinfo b/textproc/xmlto/distinfo
new file mode 100644
index 000000000000..0509c71eae93
--- /dev/null
+++ b/textproc/xmlto/distinfo
@@ -0,0 +1 @@
+MD5 (xmlto-0.0.14.tar.bz2) = 834c7cce7210dd45c8a2c6a964b87bb4
diff --git a/textproc/xmlto/pkg-descr b/textproc/xmlto/pkg-descr
new file mode 100644
index 000000000000..539523f70465
--- /dev/null
+++ b/textproc/xmlto/pkg-descr
@@ -0,0 +1,12 @@
+xmlto is a front-end to an XSL toolchain. It chooses an appropriate
+stylesheet for the conversion you want and applies it using an external
+XSL-T processor. It also performs any necessary post-processing.
+
+Supported conversions from DocBook XML: dvi, fo, html, html-nochunks,
+htmlhelp, javahelp, man, pdf, ps, txt, xhtml, xhtml-nochunks.
+
+Currently the only XSL-T processor supported is xsltproc (textproc/libxslt).
+For DVI, PDF and PostScript output, PassiveTeX (print/passivetex) is required.
+
+Author: Tim Waugh <tim@cyberelk.net>
+WWW: http://cyberelk.net/tim/xmlto/
diff --git a/textproc/xmlto/pkg-plist b/textproc/xmlto/pkg-plist
new file mode 100644
index 000000000000..2a1d2a5d7769
--- /dev/null
+++ b/textproc/xmlto/pkg-plist
@@ -0,0 +1,25 @@
+bin/xmlif
+bin/xmlto
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/NEWS
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%DATADIR%%/format/docbook/dvi
+%%DATADIR%%/format/docbook/fo
+%%DATADIR%%/format/docbook/html
+%%DATADIR%%/format/docbook/html-nochunks
+%%DATADIR%%/format/docbook/xhtml
+%%DATADIR%%/format/docbook/xhtml-nochunks
+%%DATADIR%%/format/docbook/man
+%%DATADIR%%/format/docbook/pdf
+%%DATADIR%%/format/docbook/ps
+%%DATADIR%%/format/docbook/txt
+%%DATADIR%%/format/docbook/htmlhelp
+%%DATADIR%%/format/docbook/javahelp
+@dirrm %%DATADIR%%/format/docbook
+%%PASSIVETEX%%%%DATADIR%%/format/fo/dvi
+%%PASSIVETEX%%%%DATADIR%%/format/fo/pdf
+%%PASSIVETEX%%%%DATADIR%%/format/fo/ps
+%%PASSIVETEX%%@dirrm %%DATADIR%%/format/fo
+@dirrm %%DATADIR%%/format
+%%DATADIR%%/xmlto.mak
+@dirrm %%DATADIR%%