summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/jaxodraw/ChangeLog7
-rw-r--r--sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild35
2 files changed, 36 insertions, 6 deletions
diff --git a/sci-physics/jaxodraw/ChangeLog b/sci-physics/jaxodraw/ChangeLog
index 6cc6e51e682f..508aea94f4ef 100644
--- a/sci-physics/jaxodraw/ChangeLog
+++ b/sci-physics/jaxodraw/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sci-physics/jaxodraw
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/jaxodraw/ChangeLog,v 1.3 2006/10/14 20:41:34 nichoj Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/jaxodraw/ChangeLog,v 1.4 2007/03/03 17:45:03 nelchael Exp $
+
+ 03 Mar 2007; Krzysiek Pawlik <nelchael@gentoo.org> jaxodraw-1.3.2.ebuild:
+ Fix bug #168729 - installing axodraw.sty.
14 Oct 2006; Joshua Nichols <nichoj@gentoo.org> jaxodraw-1.3.2.ebuild:
Keyworded ~amd64.
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
+
}