summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Pawlik <nelchael@gentoo.org>2010-04-02 18:13:40 +0000
committerKrzysztof Pawlik <nelchael@gentoo.org>2010-04-02 18:13:40 +0000
commitd3ef24c728ce2081c6fc1fa210623a52344cde39 (patch)
treebcb4047737c7a59eaa22118d1e61eef4cb4f218e /sci-physics
parentVersion bump. (diff)
downloadgentoo-2-d3ef24c728ce2081c6fc1fa210623a52344cde39.tar.gz
gentoo-2-d3ef24c728ce2081c6fc1fa210623a52344cde39.tar.bz2
gentoo-2-d3ef24c728ce2081c6fc1fa210623a52344cde39.zip
Version bump.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/jaxodraw/ChangeLog10
-rw-r--r--sci-physics/jaxodraw/jaxodraw-2.0.1.ebuild62
2 files changed, 70 insertions, 2 deletions
diff --git a/sci-physics/jaxodraw/ChangeLog b/sci-physics/jaxodraw/ChangeLog
index 43a1c4f873c0..c353d8cfc7b6 100644
--- a/sci-physics/jaxodraw/ChangeLog
+++ b/sci-physics/jaxodraw/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-physics/jaxodraw
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-physics/jaxodraw/ChangeLog,v 1.9 2009/04/07 19:35:48 serkan Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/jaxodraw/ChangeLog,v 1.10 2010/04/02 18:13:40 nelchael Exp $
+
+*jaxodraw-2.0.1 (02 Apr 2010)
+
+ 02 Apr 2010; Krzysztof Pawlik <nelchael@gentoo.org>
+ +jaxodraw-2.0.1.ebuild:
+ Version bump.
07 Apr 2009; Serkan Kaba <serkan@gentoo.org> jaxodraw-2.0.0:
Fix installation with source USE flag reported in bug #265243 by Robert
diff --git a/sci-physics/jaxodraw/jaxodraw-2.0.1.ebuild b/sci-physics/jaxodraw/jaxodraw-2.0.1.ebuild
new file mode 100644
index 000000000000..bb0a1019f915
--- /dev/null
+++ b/sci-physics/jaxodraw/jaxodraw-2.0.1.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-physics/jaxodraw/jaxodraw-2.0.1.ebuild,v 1.1 2010/04/02 18:13:40 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/net
+
+ 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
+}