1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Update to new upstream 0.0.23

- Change maintainer's email address
- Unconditionally depend on libpaper
- Depend on w3m (required by xmlto for certain output formats)
- Rearrange OPTIONS display
- Change way how CONFIGURE_ARGS are set, to track upstream changes
- Set MAKE_JOBS_UNSAFE (because it is)
- Simplified passivetex-related xmlto installation now possible after upstream
  fixes
- Better choice of default backend

Submitted by: mandree (maintainer)
Approved by: garga (mentor)
This commit is contained in:
Matthias Andree 2009-12-23 17:28:25 +00:00
parent 9fc3bb8021
commit 65cf7c3bf3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=246504
3 changed files with 39 additions and 34 deletions

View File

@ -6,32 +6,36 @@
#
PORTNAME= xmlto
PORTVERSION= 0.0.21
PORTVERSION= 0.0.23
CATEGORIES= textproc
MASTER_SITES= https://fedorahosted.org/releases/x/m/xmlto/
MAINTAINER= matthias.andree@gmx.de
MAINTAINER= mandree@FreeBSD.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
${XSL_DIR}:${PORTSDIR}/textproc/docbook-xsl \
paperconf:${PORTSDIR}/print/libpaper \
w3m:${PORTSDIR}/www/w3m
RUN_DEPENDS= ${BUILD_DEPENDS}
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
MAKE_JOBS_UNSAFE= yes
OPTIONS= DBLATEX "Add dependency on Dblatex" OFF \
FOP "Add dependency on FOP (needs Java)" OFF \
PASSIVETEX "Add dependency on PassiveTeX" OFF
USE_BZIP2= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-bash=${BASH_CMD} --with-getopt=${GETOPT_CMD}
CONFIGURE_ARGS= BASH=${BASH_CMD} GETOPT=${GETOPT_CMD} PDFXMLTEX=${PDFXMLTEX_CMD}
BASH_CMD= ${LOCALBASE}/bin/bash
GETOPT_CMD= ${LOCALBASE}/bin/getopt
XSL_DIR= ${LOCALBASE}/share/xsl/docbook
PDFXMLTEX_CMD= ${LOCALBASE}/bin/pdftex
MAN1= xmlif.1 xmlto.1
PORTDOCS= AUTHORS COPYING ChangeLog NEWS THANKS
@ -43,31 +47,22 @@ PORTDOCS= AUTHORS COPYING ChangeLog NEWS THANKS
.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
.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
CONFIGURE_ARGS+= --with-backend=fop
.endif
.if defined(WITH_DBLATEX)
RUN_DEPENDS+= ${LOCALBASE}/bin/dblatex:${PORTSDIR}/textproc/dblatex
.if !defined(WITH_FOP)
CONFIGURE_ARGS+= --with-backend=dblatex
.endif
.endif
post-patch:
@${REINPLACE_CMD} -E -e 's,/usr/bin/(dblatex|fop|links|lynx|paperconf|w3m),${LOCALBASE}/bin/\1,g' \
${WRKSRC}/xmlto.in \
${WRKSRC}/format/docbook/txt
.if !defined(WITH_PASSIVETEX)
@${REINPLACE_CMD} -e '/format\/fo\//d' ${WRKSRC}/Makefile.in
.endif
cd ${WRKSRC} && ${FIND} . -type f -exec ${REINPLACE_CMD} -i '' -e 's/type -t/which/;' '{}' '+'
.if !defined(NOPORTDOCS)
post-install:

View File

@ -1,3 +1,3 @@
MD5 (xmlto-0.0.21.tar.bz2) = cc2039dedc81f1a56b06e5fdac6f7570
SHA256 (xmlto-0.0.21.tar.bz2) = b6435ce111c7578126b6cdcfbd67a229bd27ae3391225d6a1f52dc22b0597049
SIZE (xmlto-0.0.21.tar.bz2) = 99554
MD5 (xmlto-0.0.23.tar.bz2) = 3001d6bb2bbc2c8f6c2301f05120f074
SHA256 (xmlto-0.0.23.tar.bz2) = a9ffb2760ded55924708cf42f575aaa87cf38fce4d9019ad287213303a8cb1c4
SIZE (xmlto-0.0.23.tar.bz2) = 105201

View File

@ -18,15 +18,25 @@ bin/xmlto
%%DATADIR%%/format/docbook/htmlhelp
%%DATADIR%%/format/docbook/javahelp
@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
%%DATADIR%%/format/xhtml1/dvi
%%DATADIR%%/format/xhtml1/fo
%%DATADIR%%/format/xhtml1/pdf
%%DATADIR%%/format/xhtml1/ps
%%DATADIR%%/format/xhtml1/txt
%%DATADIR%%/format/xhtml1/awt
%%DATADIR%%/format/xhtml1/mif
%%DATADIR%%/format/xhtml1/pcl
%%DATADIR%%/format/xhtml1/svg
@dirrm %%DATADIR%%/format/xhtml1
%%DATADIR%%/format/fo/awt
%%DATADIR%%/format/fo/dvi
%%DATADIR%%/format/fo/mif
%%DATADIR%%/format/fo/pcl
%%DATADIR%%/format/fo/pdf
%%DATADIR%%/format/fo/ps
%%DATADIR%%/format/fo/svg
%%DATADIR%%/format/fo/txt
@dirrm %%DATADIR%%/format/fo
@dirrm %%DATADIR%%/format
%%DATADIR%%/xmlto.mak
@dirrm %%DATADIR%%