aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-01-01 16:29:11 +0100
committerHorea Christian <chr@chymera.eu>2021-01-03 17:13:51 -0500
commit680c7787192159fd45db3b72a04247916de3b798 (patch)
treea37de7c4ce74489c03493779895d104d570c8851 /dev-java/jgraphx/jgraphx-4.2.2.ebuild
parentnet-misc/cernbox-client: Drop old version. (diff)
downloadsci-680c7787192159fd45db3b72a04247916de3b798.tar.gz
sci-680c7787192159fd45db3b72a04247916de3b798.tar.bz2
sci-680c7787192159fd45db3b72a04247916de3b798.zip
dev-java/jgraphx: EAPI bump, version bump
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Signed-off-by: Horea Christian <chr@chymera.eu>
Diffstat (limited to 'dev-java/jgraphx/jgraphx-4.2.2.ebuild')
-rw-r--r--dev-java/jgraphx/jgraphx-4.2.2.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-java/jgraphx/jgraphx-4.2.2.ebuild b/dev-java/jgraphx/jgraphx-4.2.2.ebuild
new file mode 100644
index 000000000..de4e6ab36
--- /dev/null
+++ b/dev-java/jgraphx/jgraphx-4.2.2.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+JAVA_PKG_IUSE="doc source"
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Open-source graph component for Java"
+HOMEPAGE="https://github.com/jgraph"
+SRC_URI="https://github.com/jgraph/jgraphx/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="doc examples source"
+
+DEPEND=">=virtual/jdk-1.7"
+RDEPEND=">=virtual/jre-1.7"
+
+src_prepare() {
+ default
+ # don't do javadoc always
+ sed -i \
+ -e 's/depends="doc"/depends="compile"/' \
+ build.xml || die "sed failed"
+ rm -rf doc/api 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
+}