2013-01-06 14:01:45 +01:00
|
|
|
# Created by: Sergei Kolobov <sergei@kolobov.com>
|
2003-06-20 18:27:08 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= xmlto
|
2012-02-09 02:18:20 +01:00
|
|
|
PORTVERSION= 0.0.25
|
2013-10-26 00:32:09 +02:00
|
|
|
PORTREVISION= 2
|
2003-06-20 18:27:08 +02:00
|
|
|
CATEGORIES= textproc
|
2013-10-26 00:32:09 +02:00
|
|
|
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}
|
2003-06-20 18:27:08 +02:00
|
|
|
|
2009-12-23 18:28:25 +01:00
|
|
|
MAINTAINER= mandree@FreeBSD.org
|
2003-06-20 18:27:08 +02:00
|
|
|
COMMENT= Front-end to an XSL toolchain
|
|
|
|
|
2013-10-24 00:12:47 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2007-01-31 20:48:12 +01:00
|
|
|
BUILD_DEPENDS= ${BASH_CMD}:${PORTSDIR}/shells/bash \
|
2003-06-20 18:27:08 +02:00
|
|
|
${GETOPT_CMD}:${PORTSDIR}/misc/getopt \
|
|
|
|
xmllint:${PORTSDIR}/textproc/libxml2 \
|
|
|
|
xsltproc:${PORTSDIR}/textproc/libxslt \
|
2009-12-23 18:28:25 +01:00
|
|
|
${XSL_DIR}:${PORTSDIR}/textproc/docbook-xsl \
|
|
|
|
paperconf:${PORTSDIR}/print/libpaper \
|
2010-07-05 15:21:04 +02:00
|
|
|
w3m:${PORTSDIR}/www/w3m \
|
2014-02-18 15:50:34 +01:00
|
|
|
${LOCALBASE}/share/xml/docbook/4.2:${PORTSDIR}/textproc/docbook-xml
|
2011-03-21 16:55:15 +01:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2003-06-20 18:27:08 +02:00
|
|
|
|
2013-10-26 00:32:09 +02:00
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
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
|
2003-06-20 18:27:08 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2009-12-23 18:28:25 +01:00
|
|
|
CONFIGURE_ARGS= BASH=${BASH_CMD} GETOPT=${GETOPT_CMD} PDFXMLTEX=${PDFXMLTEX_CMD}
|
2013-10-07 22:48:03 +02:00
|
|
|
MAKE_ENV+= HOME=/dev/null
|
2003-06-20 18:27:08 +02:00
|
|
|
|
|
|
|
BASH_CMD= ${LOCALBASE}/bin/bash
|
|
|
|
GETOPT_CMD= ${LOCALBASE}/bin/getopt
|
2003-07-09 06:43:19 +02:00
|
|
|
XSL_DIR= ${LOCALBASE}/share/xsl/docbook
|
2009-12-23 18:28:25 +01:00
|
|
|
PDFXMLTEX_CMD= ${LOCALBASE}/bin/pdftex
|
2003-06-20 18:27:08 +02:00
|
|
|
|
2013-10-24 00:12:47 +02:00
|
|
|
PORTDOCS= AUTHORS ChangeLog NEWS THANKS
|
|
|
|
# these documentation files do not convey information useful for
|
|
|
|
# the FreeBSD port at this time, or are provided by the ports framework:
|
|
|
|
# PORTDOCS+= COPYING FAQ README
|
[PATCH] textproc/xmlto: important fixes, general overhaul, take maintainership
Supersedes: ports/123952 - please close that one, in favour
of this one. (Note, if that one should have been committed
before this one, please bump PORTREVISION to 2!)
Changes that were already in ports/123952:
- Fix all scripts that use cp -a to instead use cp -PpR,
fixing output formats such as html, html-nochunks and others.
- Take maintainership of port.
Additional changes since ports/123952, a.k.a. "overhaul":
- Drop non-functional passivetex autodetection
- Make WITH_PASSIVETEX an official OPTION (default: OFF, as previously)
- Add COPYING ChangeLog THANKS to PORTDOCS
- Use PORTDOCS instead of pkg-plist
- Properly depend on print/passivetex (so the build system doesn't get away
with just TeX installed but PassiveTeX missing)
- Fix bug (missing "export USE_BACKEND"), amending to files/patch-xmlto.in,
reported, with fix, by Ondrej Vasik; the bug rendered "xmlto txt ..." unusable
- Complete pkg-plist for WITH_PASSIVETEX case, it missed some files;
thus fixing packages.
- Mention Ondrej Vasik, current xmlto maintainer, in pkg-descr.
Dropped from ports/123952 (i. e. deliberately omitted from this PR,
and not part of 0.0.20):
- Move files/patch-xmlto.in into post-patch section of Makefile
but keep the file.
PR: ports/123979
Submitted by: Matthias Andree <matthias.andree@gmx.de>
2008-05-28 14:40:05 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2013-01-06 14:01:45 +01:00
|
|
|
.if ${PORT_OPTIONS:MPASSIVETEX}
|
2013-10-26 00:32:09 +02:00
|
|
|
USE_TEX+= xmltex
|
[PATCH] textproc/xmlto: important fixes, general overhaul, take maintainership
Supersedes: ports/123952 - please close that one, in favour
of this one. (Note, if that one should have been committed
before this one, please bump PORTREVISION to 2!)
Changes that were already in ports/123952:
- Fix all scripts that use cp -a to instead use cp -PpR,
fixing output formats such as html, html-nochunks and others.
- Take maintainership of port.
Additional changes since ports/123952, a.k.a. "overhaul":
- Drop non-functional passivetex autodetection
- Make WITH_PASSIVETEX an official OPTION (default: OFF, as previously)
- Add COPYING ChangeLog THANKS to PORTDOCS
- Use PORTDOCS instead of pkg-plist
- Properly depend on print/passivetex (so the build system doesn't get away
with just TeX installed but PassiveTeX missing)
- Fix bug (missing "export USE_BACKEND"), amending to files/patch-xmlto.in,
reported, with fix, by Ondrej Vasik; the bug rendered "xmlto txt ..." unusable
- Complete pkg-plist for WITH_PASSIVETEX case, it missed some files;
thus fixing packages.
- Mention Ondrej Vasik, current xmlto maintainer, in pkg-descr.
Dropped from ports/123952 (i. e. deliberately omitted from this PR,
and not part of 0.0.20):
- Move files/patch-xmlto.in into post-patch section of Makefile
but keep the file.
PR: ports/123979
Submitted by: Matthias Andree <matthias.andree@gmx.de>
2008-05-28 14:40:05 +02:00
|
|
|
.endif
|
2003-06-20 18:27:08 +02:00
|
|
|
|
2013-01-06 14:01:45 +01:00
|
|
|
.if ${PORT_OPTIONS:MFOP}
|
2012-02-09 02:18:20 +01:00
|
|
|
RUN_DEPENDS+= fop>=0.90:${PORTSDIR}/textproc/fop
|
2009-12-23 18:28:25 +01:00
|
|
|
CONFIGURE_ARGS+= --with-backend=fop
|
2008-07-22 04:00:58 +02:00
|
|
|
.endif
|
|
|
|
|
2013-01-06 14:01:45 +01:00
|
|
|
.if ${PORT_OPTIONS:MDBLATEX}
|
2008-07-22 04:00:58 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/dblatex:${PORTSDIR}/textproc/dblatex
|
2013-01-06 14:01:45 +01:00
|
|
|
.if ! ${PORT_OPTIONS:MFOP}
|
2009-12-23 18:28:25 +01:00
|
|
|
CONFIGURE_ARGS+= --with-backend=dblatex
|
|
|
|
.endif
|
2008-07-22 04:00:58 +02:00
|
|
|
.endif
|
|
|
|
|
2003-12-12 22:11:13 +01:00
|
|
|
post-patch:
|
2013-01-06 14:01:45 +01:00
|
|
|
@# get rid of nonstandard "type" option -t:
|
2009-12-23 18:28:25 +01:00
|
|
|
cd ${WRKSRC} && ${FIND} . -type f -exec ${REINPLACE_CMD} -i '' -e 's/type -t/which/;' '{}' '+'
|
2013-01-06 14:01:45 +01:00
|
|
|
@# get rid of GNU-make-ism (BSD make defines $< only in suffix rules)
|
2012-08-01 00:07:27 +02:00
|
|
|
${REINPLACE_CMD} -e '/^GEN_MANPAGE/{s/\$$</$$>/;}' ${WRKSRC}/Makefile.in
|
2003-06-20 18:27:08 +02:00
|
|
|
|
|
|
|
post-install:
|
2013-10-26 00:32:09 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/xhtml2fo.xsl ${STAGEDIR}${DATADIR}/
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-10-07 22:48:03 +02:00
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
2003-06-20 18:27:08 +02:00
|
|
|
.endif
|
|
|
|
|
[PATCH] textproc/xmlto: important fixes, general overhaul, take maintainership
Supersedes: ports/123952 - please close that one, in favour
of this one. (Note, if that one should have been committed
before this one, please bump PORTREVISION to 2!)
Changes that were already in ports/123952:
- Fix all scripts that use cp -a to instead use cp -PpR,
fixing output formats such as html, html-nochunks and others.
- Take maintainership of port.
Additional changes since ports/123952, a.k.a. "overhaul":
- Drop non-functional passivetex autodetection
- Make WITH_PASSIVETEX an official OPTION (default: OFF, as previously)
- Add COPYING ChangeLog THANKS to PORTDOCS
- Use PORTDOCS instead of pkg-plist
- Properly depend on print/passivetex (so the build system doesn't get away
with just TeX installed but PassiveTeX missing)
- Fix bug (missing "export USE_BACKEND"), amending to files/patch-xmlto.in,
reported, with fix, by Ondrej Vasik; the bug rendered "xmlto txt ..." unusable
- Complete pkg-plist for WITH_PASSIVETEX case, it missed some files;
thus fixing packages.
- Mention Ondrej Vasik, current xmlto maintainer, in pkg-descr.
Dropped from ports/123952 (i. e. deliberately omitted from this PR,
and not part of 0.0.20):
- Move files/patch-xmlto.in into post-patch section of Makefile
but keep the file.
PR: ports/123979
Submitted by: Matthias Andree <matthias.andree@gmx.de>
2008-05-28 14:40:05 +02:00
|
|
|
.include <bsd.port.post.mk>
|