summaryrefslogtreecommitdiff
path: root/dev-java/jcommon
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/jcommon')
-rw-r--r--dev-java/jcommon/Manifest3
-rw-r--r--dev-java/jcommon/jcommon-1.0.23.ebuild56
-rw-r--r--dev-java/jcommon/metadata.xml11
3 files changed, 70 insertions, 0 deletions
diff --git a/dev-java/jcommon/Manifest b/dev-java/jcommon/Manifest
new file mode 100644
index 000000000000..eedf61e4f561
--- /dev/null
+++ b/dev-java/jcommon/Manifest
@@ -0,0 +1,3 @@
+DIST jcommon-1.0.23.zip 1373666 BLAKE2B 23c87cd18339ea8f5991933c1430464ca5a408d4d4afb42847ee8c3b941d8fd7ed9695af74ec9ff7fc5867758b826d49b5def73923e893910efc0a0d77f26f75 SHA512 c358239da8b1ddf53ce94bebb00b6518456aa921dd3aa84fc6a23144d499f14a85ba421cd71f3880e8d10153a6ab816f54c1fa872a4ab694ce3c7b8d69bc2a4b
+EBUILD jcommon-1.0.23.ebuild 1383 BLAKE2B 67fc5f1f71d9915e062ab99ef5be7196aec2a50a95159fe5384ce0d61683caea394e5dc3528673145e37873b7331a170fbc76326ed056a3d1ede36cbcf51d42c SHA512 e2d8b97a0503ea3cffb721208e698ba1347dd3c0a354efdc323bc81bafaec425d26aeadbd65c254cbb8c7889a34c6afe80d0d028fe6375ef96688d0a029cad73
+MISC metadata.xml 316 BLAKE2B a255fcd49db48318dbbe5e223eefb578f2d68535e239999075ad55de972afe80b62a85f2bffffb217b9bbfc41b86839daf0ccc077992778bcb87db3e3d71baed SHA512 23acc79c59e65a77790ff6b915c2727b53352e6c989aaa5d5936cc1a09fea10c15dc35e5133ef142da97af85770b44c3b33e28cefc4437de86afa5f3b3cf90fd
diff --git a/dev-java/jcommon/jcommon-1.0.23.ebuild b/dev-java/jcommon/jcommon-1.0.23.ebuild
new file mode 100644
index 000000000000..208f734743d6
--- /dev/null
+++ b/dev-java/jcommon/jcommon-1.0.23.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 java-ant-2 versionator
+
+MY_P=${PN}-$(replace_version_separator 3 -)
+DESCRIPTION="A collection of useful classes used by JFreeChart, JFreeReport and others"
+HOMEPAGE="http://www.jfree.org/jcommon"
+SRC_URI="mirror://sourceforge/jfreechart/${MY_P}.zip"
+
+LICENSE="LGPL-2"
+SLOT="1.0"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+IUSE="debug"
+
+DEPEND="
+ >=virtual/jdk-1.6
+ app-arch/unzip
+ test? ( dev-java/junit:4 )"
+RDEPEND=">=virtual/jre-1.6"
+
+S="${WORKDIR}"/"${MY_P}"
+
+java_prepare() {
+ find "${WORKDIR}" -name '*.jar' -print -delete || die
+
+ if ! use debug; then
+ antflags="-Dbuild.debug=false -Dbuild.optimize=true"
+ fi
+}
+
+src_compile() {
+ if ! use debug; then
+ antflags="-Dbuild.debug=false -Dbuild.optimize=true"
+ fi
+ eant -f ant/build.xml compile $(use_doc) $antflags
+}
+
+# No tests defined in build.xml. Let's turn them off.
+# src_test() {
+# java-pkg_jar-from --into lib junit-4
+# eant -f ant/build.xml compile-junit-tests
+# ejunit4 -cp "./lib/${P}-junit.jar:$(java-pkg_getjars junit-4)" \
+# org.jfree.junit.JCommonTestSuite
+# }
+
+src_install() {
+ java-pkg_newjar ${P}.jar ${PN}.jar
+ dodoc README.md
+ use doc && java-pkg_dojavadoc javadoc
+ use source && java-pkg_dosrc src/main/java/com src/main/java/org
+}
diff --git a/dev-java/jcommon/metadata.xml b/dev-java/jcommon/metadata.xml
new file mode 100644
index 000000000000..ba2158636f7e
--- /dev/null
+++ b/dev-java/jcommon/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">jfreechart</remote-id>
+ </upstream>
+</pkgmetadata>