summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2004-11-07 06:43:19 +0000
committerMamoru Komachi <usata@gentoo.org>2004-11-07 06:43:19 +0000
commit8d3c9874296c34b3006d80fa23122f9ff2a4521f (patch)
treeac524b02ef31dacf3f48420c93ae964057ac63ac /app-text/jadetex/jadetex-3.13.ebuild
parentLICENSE fix (Manifest recommit) (diff)
downloadgentoo-2-8d3c9874296c34b3006d80fa23122f9ff2a4521f.tar.gz
gentoo-2-8d3c9874296c34b3006d80fa23122f9ff2a4521f.tar.bz2
gentoo-2-8d3c9874296c34b3006d80fa23122f9ff2a4521f.zip
Fixed compile error with tetex-beta (>=tetex-2.96 and >=ptex-3.1.4.20041026). This closes bug #70152.
Diffstat (limited to 'app-text/jadetex/jadetex-3.13.ebuild')
-rw-r--r--app-text/jadetex/jadetex-3.13.ebuild36
1 files changed, 23 insertions, 13 deletions
diff --git a/app-text/jadetex/jadetex-3.13.ebuild b/app-text/jadetex/jadetex-3.13.ebuild
index b652070ad3b3..016d6d73356e 100644
--- a/app-text/jadetex/jadetex-3.13.ebuild
+++ b/app-text/jadetex/jadetex-3.13.ebuild
@@ -1,6 +1,8 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/jadetex/jadetex-3.13.ebuild,v 1.2 2004/09/22 00:27:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/jadetex/jadetex-3.13.ebuild,v 1.3 2004/11/07 06:43:19 usata Exp $
+
+inherit latex-package
DESCRIPTION="TeX macros used by Jade TeX output"
HOMEPAGE="http://jadetex.sourceforge.net/"
@@ -11,13 +13,24 @@ SLOT="0"
KEYWORDS="~alpha ~arm ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
-DEPEND=">=app-text/openjade-1.3.1
- virtual/tetex"
+# virtual/tetex comes from latex-package
+DEPEND=">=app-text/openjade-1.3.1"
+
+has_tetex_3() {
+ if has_version '>=app-text/tetex-2.96' || has_version '>=app-text/ptex-3.1.4.20041026' ; then
+ true
+ else
+ false
+ fi
+}
src_compile() {
addwrite /usr/share/texmf/ls-R
addwrite /usr/share/texmf/fonts
addwrite /var/cache/fonts
+
+ has_tetex_3 && sed -i -e "s:tex -ini:latex -ini:" Makefile || die
+
emake || die
}
@@ -33,16 +46,13 @@ src_install() {
doman *.1
dodir /usr/bin
- dosym /usr/bin/virtex /usr/bin/jadetex
- dosym /usr/bin/pdfvirtex /usr/bin/pdfjadetex
+ if has_tetex_3 ; then
+ dosym /usr/bin/latex /usr/bin/jadetex
+ dosym /usr/bin/pdftex /usr/bin/pdfjadetex
+ else
+ dosym /usr/bin/virtex /usr/bin/jadetex
+ dosym /usr/bin/pdfvirtex /usr/bin/pdfjadetex
+ fi
dohtml -r doc/*
}
-
-pkg_postinst () {
- mktexlsr
-}
-
-pkg_postrm () {
- mktexlsr
-}