[Midnightbsd-cvs] mports [15632] U trunk/textproc/xmlto/pkg-plist: add extra conversion stylesheet
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Tue Nov 26 23:32:29 EST 2013
Revision: 15632
http://svnweb.midnightbsd.org/mports/?rev=15632
Author: laffer1
Date: 2013-11-26 23:32:28 -0500 (Tue, 26 Nov 2013)
Log Message:
-----------
add extra conversion stylesheet
Modified Paths:
--------------
trunk/textproc/xmlto/Makefile
trunk/textproc/xmlto/distinfo
trunk/textproc/xmlto/files/patch-xmlto.in
trunk/textproc/xmlto/pkg-plist
Added Paths:
-----------
trunk/textproc/xmlto/files/pkg-message.in
Property Changed:
----------------
trunk/textproc/xmlto/distinfo
trunk/textproc/xmlto/files/patch-xmlto.in
trunk/textproc/xmlto/pkg-plist
Modified: trunk/textproc/xmlto/Makefile
===================================================================
--- trunk/textproc/xmlto/Makefile 2013-11-27 04:27:15 UTC (rev 15631)
+++ trunk/textproc/xmlto/Makefile 2013-11-27 04:32:28 UTC (rev 15632)
@@ -2,8 +2,16 @@
PORTNAME= xmlto
PORTVERSION= 0.0.25
+PORTREVISION= 1
CATEGORIES= textproc
-MASTER_SITES= https://fedorahosted.org/releases/x/m/xmlto/
+MASTER_SITES= https://fedorahosted.org/releases/x/m/xmlto/:xmlto \
+ LOCAL/mandree/:xmlto \
+ http://www.antennahouse.com/XSLsample/sample-xsl-xhtml2fo/:xsl \
+ LOCAL/mandree/:xsl
+DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:xmlto \
+ xhtml2fo.xsl:xsl
+DIST_SUBDIR= ${PORTNAME}
+EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= ports at MidnightBSD.org
COMMENT= Front-end to an XSL toolchain
@@ -18,16 +26,19 @@
${LOCALBASE}/share/xml/docbook/4.2/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml
RUN_DEPENDS:= ${BUILD_DEPENDS}
-MAKE_JOBS_UNSAFE= yes
+SUB_FILES= pkg-message
-OPTIONS_DEFINE= DBLATEX FOP PASSIVETEX
-DBLATEX_DESC= Add dependency on Dblatex
-FOP_DESC= Add dependency on FOP (needs Java)
-PASSIVETEX_DESC= Add dependency on PassiveTeX
+OPTIONS_GROUP= BACKEND
+OPTIONS_GROUP_BACKEND= DBLATEX FOP PASSIVETEX
+BACKEND_DESC= Postprocessor backends to enable
+DBLATEX_DESC= Add dependency on DBlatex (DB for DocBook)
+FOP_DESC= Add dependency on FOP (requires Java)
+PASSIVETEX_DESC= Add dependency on XMLTeX/PassiveTeX
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= BASH=${BASH_CMD} GETOPT=${GETOPT_CMD} PDFXMLTEX=${PDFXMLTEX_CMD}
+MAKE_ENV+= HOME=/dev/null
BASH_CMD= ${LOCALBASE}/bin/bash
GETOPT_CMD= ${LOCALBASE}/bin/getopt
@@ -64,8 +75,11 @@
@# get rid of GNU-make-ism (BSD make defines $< only in suffix rules)
${REINPLACE_CMD} -e '/^GEN_MANPAGE/{s/\$$</$$>/;}' ${WRKSRC}/Makefile.in
+post-install:
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/xhtml2fo.xsl ${DATADIR}/
+
.if ${PORT_OPTIONS:MDOCS}
-post-install:
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
Modified: trunk/textproc/xmlto/distinfo
===================================================================
--- trunk/textproc/xmlto/distinfo 2013-11-27 04:27:15 UTC (rev 15631)
+++ trunk/textproc/xmlto/distinfo 2013-11-27 04:32:28 UTC (rev 15632)
@@ -1,2 +1,4 @@
-SHA256 (xmlto-0.0.25.tar.bz2) = 361cb70d5d0b4b753db00b67ed8bc1d53d0bc96c407d0310aefe854470b7e536
-SIZE (xmlto-0.0.25.tar.bz2) = 116496
+SHA256 (xmlto/xmlto-0.0.25.tar.bz2) = 361cb70d5d0b4b753db00b67ed8bc1d53d0bc96c407d0310aefe854470b7e536
+SIZE (xmlto/xmlto-0.0.25.tar.bz2) = 116496
+SHA256 (xmlto/xhtml2fo.xsl) = 51984c86eda98fc70c2c0fa887626f44311634c5e3d1053cd2ada8cd2543ebd6
+SIZE (xmlto/xhtml2fo.xsl) = 63786
Property changes on: trunk/textproc/xmlto/distinfo
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.5
\ No newline at end of property
Modified: trunk/textproc/xmlto/files/patch-xmlto.in
===================================================================
--- trunk/textproc/xmlto/files/patch-xmlto.in 2013-11-27 04:27:15 UTC (rev 15631)
+++ trunk/textproc/xmlto/files/patch-xmlto.in 2013-11-27 04:32:28 UTC (rev 15632)
@@ -1,5 +1,10 @@
---- ./xmlto.in.orig 2012-02-09 02:08:09.000000000 +0100
-+++ ./xmlto.in 2012-02-09 02:08:09.000000000 +0100
+This patch serves two purposes:
+
+#1 fix "noextensions" long option (accepted by upstream)
+#2 avoid that w3m or others pollute $HOME/
+
+--- ./xmlto.in.orig 2011-11-29 12:49:57.000000000 +0100
++++ ./xmlto.in 2013-10-07 23:52:57.000000000 +0200
@@ -262,7 +262,7 @@
# Process any options
@@ -9,3 +14,10 @@
-n xmlto -- x:m:o:p:v "$@")
[ $? != 0 ] && { usage; exit 1; }
eval set -- "$ARGS"
+@@ -611,4 +611,6 @@
+ # Extremely verbose
+ BASH="${BASH} -x"
+ fi
++make_temp -d temphome HOME || exit 1
++export HOME
+ ${BASH} "$FORMAT" post-process || exit 1
Property changes on: trunk/textproc/xmlto/files/patch-xmlto.in
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.3
\ No newline at end of property
Added: trunk/textproc/xmlto/files/pkg-message.in
===================================================================
--- trunk/textproc/xmlto/files/pkg-message.in (rev 0)
+++ trunk/textproc/xmlto/files/pkg-message.in 2013-11-27 04:32:28 UTC (rev 15632)
@@ -0,0 +1,9 @@
+For benefits of conversions away from XHTML1 through XSL-FO,
+a stylesheet xhtml2fo.xsl has been installed
+into %%DATADIR%%. Example use:
+
+ xmlto pdf -x %%DATADIR%%/xhtml2fo.xsl myXHTML1file.xml
+
+More style sheets for XHTML1 conversions can be found at
+<http://www.antennahouse.com/XSLsample/XSLsample.htm>
+under "Stylesheet for XHTML to XSL-FO transformation"
Modified: trunk/textproc/xmlto/pkg-plist
===================================================================
--- trunk/textproc/xmlto/pkg-plist 2013-11-27 04:27:15 UTC (rev 15631)
+++ trunk/textproc/xmlto/pkg-plist 2013-11-27 04:32:28 UTC (rev 15632)
@@ -1,5 +1,7 @@
bin/xmlif
bin/xmlto
+man/man1/xmlif.1.gz
+man/man1/xmlto.1.gz
%%DATADIR%%/format/docbook/awt
%%DATADIR%%/format/docbook/dvi
%%DATADIR%%/format/docbook/epub
@@ -34,6 +36,7 @@
%%DATADIR%%/format/xhtml1/ps
%%DATADIR%%/format/xhtml1/svg
%%DATADIR%%/format/xhtml1/txt
+%%DATADIR%%/xhtml2fo.xsl
%%DATADIR%%/xmlto.mak
@dirrm %%DATADIR%%/format/xhtml1
@dirrm %%DATADIR%%/format/fo
Property changes on: trunk/textproc/xmlto/pkg-plist
___________________________________________________________________
Deleted: cvs2svn:cvs-rev
## -1 +0,0 ##
-1.3
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list