svn commit: r386630 - head/textproc/dblatex

John Marino marino at FreeBSD.org
Sun May 17 16:31:52 UTC 2015


Author: marino
Date: Sun May 17 16:31:51 2015
New Revision: 386630
URL: https://svnweb.freebsd.org/changeset/ports/386630

Log:
  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)

Modified:
  head/textproc/dblatex/Makefile
  head/textproc/dblatex/pkg-descr

Modified: head/textproc/dblatex/Makefile
==============================================================================
--- head/textproc/dblatex/Makefile	Sun May 17 16:28:09 2015	(r386629)
+++ head/textproc/dblatex/Makefile	Sun May 17 16:31:51 2015	(r386630)
@@ -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 at gmail.com
+MAINTAINER=	ports at 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>

Modified: head/textproc/dblatex/pkg-descr
==============================================================================
--- head/textproc/dblatex/pkg-descr	Sun May 17 16:28:09 2015	(r386629)
+++ head/textproc/dblatex/pkg-descr	Sun May 17 16:31:51 2015	(r386630)
@@ -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/


More information about the svn-ports-all mailing list