[Midnightbsd-cvs] mports: textproc/xmlto: Intitial import of xmlto.

archite at midnightbsd.org archite at midnightbsd.org
Sun Jun 1 17:40:28 EDT 2008


Log Message:
-----------
Intitial import of xmlto.

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.

Added Files:
-----------
    mports/textproc/xmlto:
        Makefile (r1.1)
        distinfo (r1.1)
        pkg-descr (r1.1)
        pkg-plist (r1.1)
    mports/textproc/xmlto/files:
        patch-xmlto.in (r1.1)

-------------- next part --------------
--- /dev/null
+++ 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.
+
+Authors: Tim Waugh <tim at cyberelk.net>, Ondrej Vasik <ovasik at redhat.com>
+WWW:	 http://cyberelk.net/tim/software/xmlto/
--- /dev/null
+++ textproc/xmlto/pkg-plist
@@ -0,0 +1,33 @@
+ at comment $MidnightBSD: mports/textproc/xmlto/pkg-plist,v 1.1 2008/06/01 21:40:26 archite Exp $
+ at comment $FreeBSD: ports/textproc/xmlto/pkg-plist,v 1.4 2008/05/28 12:40:05 edwin Exp $
+bin/xmlif
+bin/xmlto
+%%DATADIR%%/format/docbook/awt
+%%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/mif
+%%DATADIR%%/format/docbook/pcl
+%%DATADIR%%/format/docbook/pdf
+%%DATADIR%%/format/docbook/ps
+%%DATADIR%%/format/docbook/svg
+%%DATADIR%%/format/docbook/txt
+%%DATADIR%%/format/docbook/htmlhelp
+%%DATADIR%%/format/docbook/javahelp
+ at dirrm %%DATADIR%%/format/docbook
+%%PASSIVETEX%%%%DATADIR%%/format/fo/awt
+%%PASSIVETEX%%%%DATADIR%%/format/fo/dvi
+%%PASSIVETEX%%%%DATADIR%%/format/fo/mif
+%%PASSIVETEX%%%%DATADIR%%/format/fo/pcl
+%%PASSIVETEX%%%%DATADIR%%/format/fo/pdf
+%%PASSIVETEX%%%%DATADIR%%/format/fo/ps
+%%PASSIVETEX%%%%DATADIR%%/format/fo/svg
+%%PASSIVETEX%%%%DATADIR%%/format/fo/txt
+%%PASSIVETEX%%@dirrm %%DATADIR%%/format/fo
+ at dirrm %%DATADIR%%/format
+%%DATADIR%%/xmlto.mak
+ at dirrm %%DATADIR%%
--- /dev/null
+++ textproc/xmlto/Makefile
@@ -0,0 +1,73 @@
+# New ports collection makefile for:	xmlto
+# Date created:		2003-06-05
+# Whom:			Sergei Kolobov <sergei at kolobov.com>
+#
+# $MidnightBSD: mports/textproc/xmlto/Makefile,v 1.1 2008/06/01 21:40:26 archite Exp $
+# $FreeBSD: ports/textproc/xmlto/Makefile,v 1.18 2008/05/28 12:40:05 edwin Exp $
+#
+
+PORTNAME=	xmlto
+PORTVERSION=	0.0.20
+PORTREVISION=	1
+CATEGORIES=	textproc
+MASTER_SITES=	http://cyberelk.net/tim/data/xmlto/stable/
+# Master Site is subject to change with 0.0.21 release
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Front-end to an XSL toolchain
+
+BUILD_DEPENDS=	${BASH_CMD}:${PORTSDIR}/shells/bash \
+		${GETOPT_CMD}:${PORTSDIR}/misc/getopt \
+		xmllint:${PORTSDIR}/textproc/libxml2 \
+		xsltproc:${PORTSDIR}/textproc/libxslt \
+		${XSL_DIR}:${PORTSDIR}/textproc/docbook-xsl
+RUN_DEPENDS=	${BUILD_DEPENDS}
+
+OPTIONS=	PASSIVETEX "Enable PassiveTeX support for DVI/PS/PDF" OFF
+
+USE_BZIP2=	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
+XSL_DIR=	${LOCALBASE}/share/xsl/docbook
+
+MAN1=		xmlif.1 xmlto.1
+PORTDOCS=	AUTHORS COPYING ChangeLog NEWS THANKS
+# these two documentation files do not convey information useful for
+# the FreeBSD port at this time:
+# PORTDOCS+=	FAQ README
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_PASSIVETEX)
+BUILD_DEPENDS+=	${LOCALBASE}/share/texmf-local/tex/passivetex/fotex.sty:${PORTSDIR}/print/passivetex
+RUN_DEPENDS+=	${LOCALBASE}/share/texmf-local/tex/passivetex/fotex.sty:${PORTSDIR}/print/passivetex
+PLIST_SUB=	PASSIVETEX=""
+.else
+PLIST_SUB=	PASSIVETEX="@comment "
+.endif
+
+post-patch:
+.for i in docbook/htmlhelp docbook/xhtml-nochunks docbook/javahelp \
+	docbook/html docbook/html-nochunks docbook/xhtml docbook/fo \
+	docbook/man fo/dvi fo/pdf
+	@${REINPLACE_CMD} -e 's|-a|-PpR|' ${WRKSRC}/format/${i}
+.endfor
+.if !defined(WITH_PASSIVETEX)
+	@${REINPLACE_CMD} -e '/format\/fo\//d' ${WRKSRC}/Makefile.in
+.endif
+
+post-build:
+	@${REINPLACE_CMD} -e 's,/usr/bin,${LOCALBASE}/bin,g' \
+		${WRKSRC}/format/docbook/txt
+
+.if !defined(NOPORTDOCS)
+post-install:
+	@${MKDIR} ${DOCSDIR}
+	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+.endif
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ textproc/xmlto/distinfo
@@ -0,0 +1,3 @@
+MD5 (xmlto-0.0.20.tar.bz2) = ab814ae352fc028862cbea9d676ab93b
+SHA256 (xmlto-0.0.20.tar.bz2) = 9ffa1971b9a61851a794caf6cd9f0c81290926cef9a790af845c310f169ce1e8
+SIZE (xmlto-0.0.20.tar.bz2) = 98388
--- /dev/null
+++ textproc/xmlto/files/patch-xmlto.in
@@ -0,0 +1,16 @@
+--- xmlto.in.orig	2008-01-17 10:39:02.000000000 +0100
++++ xmlto.in	2008-05-25 13:43:48.000000000 +0200
+@@ -1,4 +1,4 @@
+-#!/bin/bash
++#!@BASH@
+ # 
+ # @PACKAGE@ - apply an XSL stylesheet to an XML document
+ # Copyright (C) 2001, 2002, 2003  Tim Waugh <twaugh at redhat.com>
+@@ -326,6 +326,7 @@
+ # Ask the format script what stylesheet to use.
+ XSLT_PROCESSOR=xsltproc # We only know about xsltproc right now.
+ export XSLT_PROCESSOR
++export USE_BACKEND
+ if [ -z "$STYLESHEET" ]
+ then
+   STYLESHEET="$(${BASH} "$FORMAT" stylesheet)" || exit 1


More information about the Midnightbsd-cvs mailing list