2003-06-20 18:27:08 +02:00
|
|
|
# New ports collection makefile for: xmlto
|
|
|
|
# Date created: 2003-06-05
|
|
|
|
# Whom: Sergei Kolobov <sergei@kolobov.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= xmlto
|
2008-07-22 04:00:58 +02:00
|
|
|
PORTVERSION= 0.0.21
|
2003-06-20 18:27:08 +02:00
|
|
|
CATEGORIES= textproc
|
2008-07-22 04:00:58 +02:00
|
|
|
MASTER_SITES= https://fedorahosted.org/releases/x/m/xmlto/
|
2003-06-20 18:27:08 +02:00
|
|
|
|
[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
|
|
|
MAINTAINER= matthias.andree@gmx.de
|
2003-06-20 18:27:08 +02:00
|
|
|
COMMENT= Front-end to an XSL toolchain
|
|
|
|
|
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 \
|
|
|
|
${XSL_DIR}:${PORTSDIR}/textproc/docbook-xsl
|
|
|
|
RUN_DEPENDS= ${BUILD_DEPENDS}
|
|
|
|
|
2008-07-22 04:00:58 +02:00
|
|
|
OPTIONS= PASSIVETEX "Enable PassiveTeX support for DVI/PS/PDF" OFF \
|
|
|
|
FOP "Add dependency on FOP" OFF \
|
|
|
|
LIBPAPER "Add dependency on libpaper" OFF \
|
|
|
|
DBLATEX "Add dependency on Dblatex (EXPERIMENTAL)" OFF
|
2003-06-20 18:27:08 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-bash=${BASH_CMD} --with-getopt=${GETOPT_CMD}
|
|
|
|
|
|
|
|
BASH_CMD= ${LOCALBASE}/bin/bash
|
|
|
|
GETOPT_CMD= ${LOCALBASE}/bin/getopt
|
2003-07-09 06:43:19 +02:00
|
|
|
XSL_DIR= ${LOCALBASE}/share/xsl/docbook
|
2003-06-20 18:27:08 +02:00
|
|
|
|
|
|
|
MAN1= xmlif.1 xmlto.1
|
[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
|
|
|
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
|
2003-06-20 18:27:08 +02:00
|
|
|
|
2008-07-22 04:00:58 +02:00
|
|
|
.if defined(WITH_FOP)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/fop:${PORTSDIR}/textproc/fop
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_LIBPAPER)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/paperconf:${PORTSDIR}/print/libpaper
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_DBLATEX)
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/dblatex:${PORTSDIR}/textproc/dblatex
|
|
|
|
.endif
|
|
|
|
|
2003-12-12 22:11:13 +01:00
|
|
|
post-patch:
|
2008-07-22 04:00:58 +02:00
|
|
|
@${REINPLACE_CMD} -E -e 's,/usr/bin/(dblatex|fop|links|lynx|paperconf|w3m),${LOCALBASE}/bin/\1,g' \
|
|
|
|
${WRKSRC}/xmlto.in \
|
|
|
|
${WRKSRC}/format/docbook/txt
|
2008-05-07 11:23:11 +02:00
|
|
|
.if !defined(WITH_PASSIVETEX)
|
|
|
|
@${REINPLACE_CMD} -e '/format\/fo\//d' ${WRKSRC}/Makefile.in
|
2003-06-20 18:27:08 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
[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
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${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>
|