aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS├ębastien Fabbro <bicatali@gentoo.org>2010-02-25 17:24:00 +0000
committerS├ębastien Fabbro <bicatali@gentoo.org>2010-02-25 17:36:46 +0000
commit4f4a9f29a27aaf834f00ce9bec9a1a27ff43616a (patch)
tree66fbd23ce3103d641b14cc98820086ad595f7f10 /dev-java/jgraphx/jgraphx-1.2.0.7.ebuild
parentMore fixes introduced by Guillaume Horel. Disabling blind Debian patches unti... (diff)
downloadsci-4f4a9f29a27aaf834f00ce9bec9a1a27ff43616a.tar.gz
sci-4f4a9f29a27aaf834f00ce9bec9a1a27ff43616a.tar.bz2
sci-4f4a9f29a27aaf834f00ce9bec9a1a27ff43616a.zip
Version bumps for jgraphx
Diffstat (limited to 'dev-java/jgraphx/jgraphx-1.2.0.7.ebuild')
-rw-r--r--dev-java/jgraphx/jgraphx-1.2.0.7.ebuild44
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-java/jgraphx/jgraphx-1.2.0.7.ebuild b/dev-java/jgraphx/jgraphx-1.2.0.7.ebuild
new file mode 100644
index 000000000..d0bb4303c
--- /dev/null
+++ b/dev-java/jgraphx/jgraphx-1.2.0.7.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2 versionator
+
+MY_PV=$(replace_all_version_separators '_')
+
+DESCRIPTION="Open-source graph component for Java"
+SRC_URI="http://www.jgraph.com/downloads/jgraphx/archive/?dir=&download=${PN}-${MY_PV}.zip -> ${P}.zip"
+HOMEPAGE="http://www.jgraph.com/"
+IUSE="doc examples source"
+DEPEND=">=virtual/jdk-1.5
+ app-arch/unzip"
+RDEPEND=">=virtual/jre-1.5"
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ # don't do javadoc always
+ sed -i -e 's/depends="doc"/depends="compile"/' build.xml || \
+ die "sed failed"
+
+ rm -rf doc/api || die
+ rm lib/jgraphx.jar || die
+}
+
+EANT_BUILD_TARGET="build"
+EANT_DOC_TARGET="doc"
+
+src_install() {
+ java-pkg_dojar lib/${PN}.jar
+
+ use doc && java-pkg_dojavadoc docs/api
+ use source && java-pkg_dosrc src/org
+ use examples && java-pkg_doexamples examples
+}