diff options
Diffstat (limited to 'sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild')
-rw-r--r-- | sci-physics/jaxodraw/jaxodraw-1.3.2.ebuild | 35 |
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 + } |