aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-05-18 00:31:51 +0800
committermarino <marino@FreeBSD.org>2015-05-18 00:31:51 +0800
commit0825ecd9a761f7b5ffc6432df973eb6072ba2e69 (patch)
tree093e70a51ea2fdd904dbf5485c090961deb227ee /textproc
parent246d668a6b3dae39e3adff6df9a547e1a9242bf5 (diff)
downloadfreebsd-ports-gnome-0825ecd9a761f7b5ffc6432df973eb6072ba2e69.tar.gz
freebsd-ports-gnome-0825ecd9a761f7b5ffc6432df973eb6072ba2e69.tar.zst
freebsd-ports-gnome-0825ecd9a761f7b5ffc6432df973eb6072ba2e69.zip
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)
Diffstat (limited to 'textproc')
-rw-r--r--textproc/dblatex/Makefile18
-rw-r--r--textproc/dblatex/pkg-descr2
2 files changed, 11 insertions, 9 deletions
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 <bsd.port.options.mk>
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 <bsd.port.pre.mk>
-
-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 <bsd.port.post.mk>
+.include <bsd.port.mk>
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/