summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2009-02-22 12:53:13 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2009-02-22 12:53:13 +0000
commit2e106e69aab38314bcd2715d434ec5c0e8267b71 (patch)
treede72a01a96220788af9ff4ac62f3d936953126a9 /sci-physics/jaxodraw
parent Use system kjsembed (bug #253477) and make it an optional dependency. (diff)
downloadgentoo-2-2e106e69aab38314bcd2715d434ec5c0e8267b71.tar.gz
gentoo-2-2e106e69aab38314bcd2715d434ec5c0e8267b71.tar.bz2
gentoo-2-2e106e69aab38314bcd2715d434ec5c0e8267b71.zip
Version bump, see bug #259447.
(Portage version: 2.1.6.7/cvs/Linux x86_64)
Diffstat (limited to 'sci-physics/jaxodraw')
-rw-r--r--sci-physics/jaxodraw/ChangeLog9
-rw-r--r--sci-physics/jaxodraw/jaxodraw-2.0.0.ebuild62
2 files changed, 69 insertions, 2 deletions
diff --git a/sci-physics/jaxodraw/ChangeLog b/sci-physics/jaxodraw/ChangeLog
index 66e7e43bf715..5e7c0b636ea1 100644
--- a/sci-physics/jaxodraw/ChangeLog
+++ b/sci-physics/jaxodraw/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sci-physics/jaxodraw
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/jaxodraw/ChangeLog,v 1.6 2008/05/12 08:51:23 nelchael Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/jaxodraw/ChangeLog,v 1.7 2009/02/22 12:53:13 nelchael Exp $
+
+*jaxodraw-2.0.0 (22 Feb 2009)
+
+ 22 Feb 2009; Krzysiek Pawlik <nelchael@gentoo.org> +jaxodraw-2.0.0.ebuild:
+ Version bump, see bug #259447.
12 May 2008; Krzysiek Pawlik <nelchael@gentoo.org> jaxodraw-1.3.2.ebuild:
Rename tex USE flag, see bug #196745.
diff --git a/sci-physics/jaxodraw/jaxodraw-2.0.0.ebuild b/sci-physics/jaxodraw/jaxodraw-2.0.0.ebuild
new file mode 100644
index 000000000000..9169a12cd136
--- /dev/null
+++ b/sci-physics/jaxodraw/jaxodraw-2.0.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/jaxodraw/jaxodraw-2.0.0.ebuild,v 1.1 2009/02/22 12:53:13 nelchael Exp $
+
+JAVA_PKG_IUSE="doc source"
+WANT_ANT_TASKS="ant-trax"
+
+inherit java-pkg-2 java-ant-2 versionator eutils
+
+MY_PV=$(replace_version_separator 2 -)
+
+DESCRIPTION="Java program for drawing Feynman diagrams"
+HOMEPAGE="http://jaxodraw.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${PN}-${MY_PV}_src.tar.gz
+ http://downloads.sourceforge.net/jaxodraw/axodraw4j_2008_11_19.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="latex"
+
+DEPEND=">=virtual/jdk-1.4
+ latex? ( dev-texlive/texlive-pstricks )"
+RDEPEND=">=virtual/jre-1.4"
+
+S="${WORKDIR}/JaxoDraw-${MY_PV}"
+
+src_install() {
+ java-pkg_newjar build/${PN}-${MY_PV}.jar ${PN}.jar
+
+ doicon etc/OS/Linux/*.png
+ domenu etc/OS/Linux/${PN}.desktop
+
+ use source && java-pkg_dosrc src/main/java/JaxoDraw
+
+ dodoc src/doc/BUGS src/doc/CHANGELOG src/doc/README src/doc/TODO || die
+ use doc && java-pkg_dojavadoc build/javadoc
+
+ java-pkg_dolauncher "${PN}"
+
+ if use latex; then
+ dodir /usr/share/texmf/tex/latex/misc/
+ insinto /usr/share/texmf/tex/latex/misc/
+ doins "${S}/../axodraw4j.sty"
+ fi
+}
+
+tex_regen() {
+ if use latex; 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
+}