summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2007-03-03 17:45:03 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2007-03-03 17:45:03 +0000
commitf9f6aa509026846e8fe0ad068d3145df9cc9a6bc (patch)
treefa8d9ccdfa71a6d9e576181bfa4531dd4b92cf09 /sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild
parentImprove einfo explanation for enblend and sift USE flags for bug 141617. Than... (diff)
downloadhistorical-f9f6aa509026846e8fe0ad068d3145df9cc9a6bc.tar.gz
historical-f9f6aa509026846e8fe0ad068d3145df9cc9a6bc.tar.bz2
historical-f9f6aa509026846e8fe0ad068d3145df9cc9a6bc.zip
Fix bug #168729 - installing axodraw.sty.
Package-Manager: portage-2.1.2-r13
Diffstat (limited to 'sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild')
-rw-r--r--sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild35
1 files changed, 31 insertions, 4 deletions
diff --git a/sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild b/sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild
index 674ac1ecbbe8..85b688e6596d 100644
--- a/sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild
+++ b/sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild,v 1.3 2006/10/14 20:41:34 nichoj Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild,v 1.4 2007/03/03 17:45:03 nelchael Exp $
inherit java-pkg-2 java-ant-2 versionator eutils
@@ -13,10 +13,11 @@ SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}_src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE="doc source"
+IUSE="doc source tetex"
DEPEND=">=virtual/jdk-1.4
- dev-java/ant"
+ dev-java/ant
+ tetex? ( virtual/tetex )"
RDEPEND=">=virtual/jre-1.4"
S="${WORKDIR}/JaxoDraw-${MY_PV}"
@@ -44,4 +45,30 @@ src_install() {
java-pkg_dolauncher "${PN}" --main JaxoDraw.JaxoDraw
+ if use tetex; then
+ dodir /usr/share/texmf/tex/latex/misc/
+ insinto /usr/share/texmf/tex/latex/misc/
+ doins "${S}/etc/axodraw.sty"
+ fi
+
+}
+
+tex_regen() {
+ if use tetex; then
+ einfo "Regenerating TeX database..."
+ /usr/bin/mktexlsr /usr/share/texmf /var/spool/texmf > /dev/null
+ eend $?
+ fi
+}
+
+pkg_postinst() {
+
+ tex_regen
+
+}
+
+pkg_postrm() {
+
+ tex_regen
+
}