From 0825ecd9a761f7b5ffc6432df973eb6072ba2e69 Mon Sep 17 00:00:00 2001 From: marino Date: Sun, 17 May 2015 16:31:51 +0000 Subject: textproc/dblatex: Fix failure to invoke, reset maintainer The shebang "env python" won't work. Normally shebangfix would be used to fix this, but dblatex is actually built so we need to use sed in the post-install target to adjust it. While here, reset the maintainer. This PR is the fourth consecutive timeout. Also clean up the port. PR: 196617 Submitted by: holger (freyther.de) --- textproc/dblatex/Makefile | 18 ++++++++++-------- textproc/dblatex/pkg-descr | 2 +- 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'textproc') diff --git a/textproc/dblatex/Makefile b/textproc/dblatex/Makefile index dd241698a966..d2649dddf523 100644 --- a/textproc/dblatex/Makefile +++ b/textproc/dblatex/Makefile @@ -3,11 +3,11 @@ PORTNAME= dblatex PORTVERSION= 0.3.2 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= textproc MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION} -MAINTAINER= johnson.peter@gmail.com +MAINTAINER= ports@FreeBSD.org COMMENT= DocBook to LaTeX/ConTeXt Publishing BUILD_DEPENDS= ${LOCALBASE}/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty:${PORTSDIR}/print/texlive-texmf @@ -18,19 +18,21 @@ USES= tar:bzip2 python:2 USE_PYTHON= distutils autoplist USE_TEX= tex +PYDISTUTILS_INSTALLARGS+= --catalogs=${LOCALBASE}/share/xml/catalog.ports + OPTIONS_DEFINE= DOCS .include post-patch: .if ! ${PORT_OPTIONS:MDOCS} - @${REINPLACE_CMD} -e '/pdfdocs),/d' ${WRKSRC}/setup.py - @${REINPLACE_CMD} -e '/htmldoc)/d' ${WRKSRC}/setup.py + @${REINPLACE_CMD} -e '/pdfdocs),/d ; /htmldoc)/d' ${WRKSRC}/setup.py .endif @${REINPLACE_CMD} -e "s,share/man/man1,man/man1,g" ${WRKSRC}/setup.py -.include - -PYDISTUTILS_INSTALLARGS+= --catalogs=${PREFIX}/share/xml/catalog.ports +post-install: + # shebangfix can't be used because dblatex is built from scratch + ${REINPLACE_CMD} -e 's|/usr/bin/env python|${PREFIX}/bin/python2|' \ + ${STAGEDIR}${PREFIX}/bin/dblatex -.include +.include diff --git a/textproc/dblatex/pkg-descr b/textproc/dblatex/pkg-descr index 057b02b23fbf..c2682e6b89a4 100644 --- a/textproc/dblatex/pkg-descr +++ b/textproc/dblatex/pkg-descr @@ -13,4 +13,4 @@ stylesheets. (3) Post-processing is done by Python, to make publication faster, convert the images if needed, and do the whole compilation. -WWW: http://dblatex.sourceforge.net/ +WWW: http://dblatex.sourceforge.net/ -- cgit