Let this work with both texlive2009 and texlive2010.
The os.environ stuff is ok according to martynas@.
This commit is contained in:
parent
54a3496525
commit
70a1c41618
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.6 2010/11/20 19:56:48 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.7 2010/11/28 18:19:50 kili Exp $
|
||||
|
||||
COMMENT = convert DocBook to LaTeX, DVI, PostScript, and PDF
|
||||
DISTNAME = dblatex-0.3
|
||||
REVISION= 2
|
||||
REVISION= 3
|
||||
CATEGORIES = textproc
|
||||
|
||||
# GPLv2+
|
||||
|
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-lib_dbtexmf_dblatex_grubber_bibtex_py,v 1.1 2010/11/28 18:19:50 kili Exp $
|
||||
--- lib/dbtexmf/dblatex/grubber/bibtex.py.orig Mon Apr 5 02:07:53 2010
|
||||
+++ lib/dbtexmf/dblatex/grubber/bibtex.py Sun Nov 28 12:56:31 2010
|
||||
@@ -261,6 +261,7 @@ class BibTex(TexModule):
|
||||
if len(self.bst_path) != 1:
|
||||
os.environ["BSTINPUTS"] = string.join(self.bst_path +
|
||||
[os.getenv("BSTINPUTS", "")], ":")
|
||||
+ os.environ['TEXMFOUTPUT'] = dirname(self.base)
|
||||
rc = subprocess.call(["bibtex", self.base])
|
||||
if rc != 0:
|
||||
msg.info(_("There were errors making the bibliography."))
|
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-lib_dbtexmf_dblatex_grubber_index_py,v 1.1 2010/11/28 18:19:50 kili Exp $
|
||||
--- lib/dbtexmf/dblatex/grubber/index.py.orig Mon Apr 5 02:07:53 2010
|
||||
+++ lib/dbtexmf/dblatex/grubber/index.py Sun Nov 28 12:56:37 2010
|
||||
@@ -150,6 +150,7 @@ class Index(TexModule):
|
||||
env = {}
|
||||
|
||||
msg.debug(" ".join(cmd))
|
||||
+ os.environ['TEXMFOUTPUT'] = dirname(self.pbase)
|
||||
rc = subprocess.call(cmd)
|
||||
if (rc != 0):
|
||||
msg.error(_("could not make index %s") % self.target)
|
12
textproc/dblatex/patches/patch-xsl_url_xsl
Normal file
12
textproc/dblatex/patches/patch-xsl_url_xsl
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-xsl_url_xsl,v 1.1 2010/11/28 18:19:50 kili Exp $
|
||||
--- xsl/url.xsl.orig Mon Apr 5 02:07:53 2010
|
||||
+++ xsl/url.xsl Sat Nov 27 17:44:19 2010
|
||||
@@ -68,7 +68,7 @@
|
||||
<xsl:variable name="url2">
|
||||
<xsl:choose>
|
||||
<!-- Behaviour depending on the texlive version -->
|
||||
- <xsl:when test="contains($texlive.version, '2009')">
|
||||
+ <xsl:when test="$texlive.version >= 2009">
|
||||
<xsl:call-template name="string-replace">
|
||||
<xsl:with-param name="string" select="$url"/>
|
||||
<xsl:with-param name="from" select="'\'"/>
|
Loading…
Reference in New Issue
Block a user