2013-09-21 01:17:30 +02:00
|
|
|
# Created by: Peter Johnson <johnson.peter@gmail.com>
|
2007-02-26 12:19:33 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= dblatex
|
2016-10-05 19:28:29 +02:00
|
|
|
PORTVERSION= 0.3.9
|
2007-02-26 12:19:33 +01:00
|
|
|
CATEGORIES= textproc
|
2009-08-22 02:37:17 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
|
2007-02-26 12:19:33 +01:00
|
|
|
|
2015-05-17 18:31:51 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2007-02-26 12:19:33 +01:00
|
|
|
COMMENT= DocBook to LaTeX/ConTeXt Publishing
|
|
|
|
|
2016-10-05 19:28:29 +02:00
|
|
|
LICENSE= GPLv2+
|
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/share/texmf-dist/tex/generic/ifxetex/ifxetex.sty:print/texlive-texmf
|
|
|
|
RUN_DEPENDS= xsltproc:textproc/libxslt \
|
|
|
|
docbook-xml>0:textproc/docbook-xml
|
2007-02-26 12:19:33 +01:00
|
|
|
|
2014-10-26 10:35:46 +01:00
|
|
|
USES= tar:bzip2 python:2
|
|
|
|
USE_PYTHON= distutils autoplist
|
Make print/tex-dvipsk a runtime dependency.
Two reasons for this:
1. Document builds can fail without it even when using pdftex.
From dblatex -d -D:
Build uwm-pc-user-guide.pdf
pdflatex failed
Unexpected error occured
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/dbtexmf/core/dbtex.py", line 332, in compile
donefiles = self._compile()
File "/usr/local/lib/python2.7/site-packages/dbtexmf/core/dbtex.py", line 400, in _compile
self.make_bin()
File "/usr/local/lib/python2.7/site-packages/dbtexmf/core/dbtex.py", line 317, in make_bin
batch=self.texbatch)
File "/usr/local/lib/python2.7/site-packages/dbtexmf/dblatex/runtex.py", line 113, in compile
self.texer.compile(texfile)
File "/usr/local/lib/python2.7/site-packages/dbtexmf/dblatex/grubber/texbuilder.py", line 73, in compile
raise OSError("%s compilation failed" % self.tex.program)
OSError: pdflatex compilation failed
/tmp/tmpe0bJK0 not removed
From tail -n 11 /tmp/tmpe0bJK0/uwm-pc-user-guide.log:
Here is how much of TeX's memory you used:
22571 strings out of 493117
331796 string characters out of 6138550
659827 words of memory out of 5000000
19593 multiletter control sequences out of 15000+600000
89643 words of font info for 150 fonts, out of 8000000 for 9000
1141 hyphenation exceptions out of 8191
48i,21n,51p,484b,2429s stack positions out of 5000i,2500n,10000p,300000b,80000s
!pdfTeX error: pdflatex (file 8r.enc): cannot open encoding file for reading
==> Fatal error occurred, no output PDF file produced!
2. dvips is a valid backend to specify with dblatex -b.
PR: 201592
Submitted by: Jason Bacon <bacon4000@gmail.com>
MFH: 2016Q1
2016-03-04 11:54:06 +01:00
|
|
|
USE_TEX= dvipsk:run tex
|
2015-09-03 16:09:17 +02:00
|
|
|
NO_ARCH= yes
|
2007-02-26 12:19:33 +01:00
|
|
|
|
2016-01-27 10:23:42 +01:00
|
|
|
PYDISTUTILS_INSTALLARGS+= --catalogs=${LOCALBASE}/share/xml/catalog.ports \
|
|
|
|
--prefix=${PREFIX}
|
2015-05-17 18:31:51 +02:00
|
|
|
|
2013-12-29 12:45:46 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2012-04-12 02:07:26 +02:00
|
|
|
|
2007-02-26 12:19:33 +01:00
|
|
|
post-patch:
|
2008-09-27 16:23:33 +02:00
|
|
|
@${REINPLACE_CMD} -e "s,share/man/man1,man/man1,g" ${WRKSRC}/setup.py
|
2007-02-26 12:19:33 +01:00
|
|
|
|
2015-09-03 16:09:17 +02:00
|
|
|
post-patch-DOCS-off:
|
|
|
|
@${REINPLACE_CMD} -e '/pdfdocs),/d ; /htmldoc)/d' ${WRKSRC}/setup.py
|
|
|
|
|
2015-05-17 18:31:51 +02:00
|
|
|
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
|
2013-12-29 12:45:46 +01:00
|
|
|
|
2015-05-17 18:31:51 +02:00
|
|
|
.include <bsd.port.mk>
|