diff options
Diffstat (limited to 'dev-java/jrobin')
-rw-r--r-- | dev-java/jrobin/Manifest | 3 | ||||
-rw-r--r-- | dev-java/jrobin/jrobin-1.6.0-r1.ebuild | 64 | ||||
-rw-r--r-- | dev-java/jrobin/metadata.xml | 17 |
3 files changed, 84 insertions, 0 deletions
diff --git a/dev-java/jrobin/Manifest b/dev-java/jrobin/Manifest new file mode 100644 index 000000000000..6b08b7583bf6 --- /dev/null +++ b/dev-java/jrobin/Manifest @@ -0,0 +1,3 @@ +DIST jrobin-1.6.0-1.tar.gz 7340700 BLAKE2B 2db142423c3ad0006609b31fed38a4121e942f1253a5b6ed8b10f83c71c9b9fbf271346bad1f419f7337871cd4e61e59a4117de79a07715557335458944fccea SHA512 c5428906bf975f6c31f90185da3f0cbcaaff74d68e35e37b5e425340899fe01290d3d9813f1ecd60bd599512e3d62f635de290db9a9a1bd45292ac9c187b15c7 +EBUILD jrobin-1.6.0-r1.ebuild 1568 BLAKE2B 30e3a3f247b510336509df2834362c71b905d54c1d633dcbc75b240ec4bd463762743a57da924a746498c98d04330f8bbbb44b12cffd15d6945fcaeb7eb80bcf SHA512 42f36f0be9c58a03e86632a99dcdfeb404e84c17aab715fc00ed9b2b5bd175c9ecf764bd82165caac56e715f51ff573547d043ee29a3548d5c7865aea3d626f2 +MISC metadata.xml 602 BLAKE2B 8bfff3b518c2aa5731032876ac38afa49f49049c11a74387aa9007742659dcd06697ad9fb1044a5a1f96a2799f7f19845e720e6566c26e216b60c5d2e50ab821 SHA512 38a6b1ecf0ebe88c64718f48d77cf459f11facc7b422cda53630da3ae9d040de0fd004e4ea571d93bc9f8f315e8f0c65cfc16d0f57c399174198facd98613d37 diff --git a/dev-java/jrobin/jrobin-1.6.0-r1.ebuild b/dev-java/jrobin/jrobin-1.6.0-r1.ebuild new file mode 100644 index 000000000000..2eee39fbc808 --- /dev/null +++ b/dev-java/jrobin/jrobin-1.6.0-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="JRobin is a 100% pure Java alternative to RRDTool" +HOMEPAGE="http://www.jrobin.org/" +SRC_URI="https://github.com/OpenNMS/${PN}/archive/${P}-1.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="test" + +RDEPEND=">=virtual/jre-1.6" +DEPEND=">=virtual/jdk-1.6 + test? ( dev-java/asm:4 + >=dev-java/cglib-3.1:3 + dev-java/easymock:3.2 + dev-java/junit:4 + dev-java/objenesis:0 )" + +S="${WORKDIR}/${PN}-${P}-1/src" +JAVA_SRC_DIR="main/java" + +java_prepare() { + find "${WORKDIR}" -name "*.jar" -delete || die + + # The tests need the resources in this directory for some reason. + mkdir -p test/java/target/classes || die + cd test/java/target/classes || die + ln -snf ../../../../main/resources/* . || die +} + +src_compile() { + java-pkg-simple_src_compile + jar uf "${PN}.jar" -C main/resources . || die +} + +src_install() { + java-pkg-simple_src_install + java-pkg_dolauncher "${PN}-rrdtool" --main org.jrobin.cmd.RrdCommander +} + +src_test() { + cd test/java || die + + local CP=".:${S}/${PN}.jar:$(java-pkg_getjars asm-4,cglib-3,easymock-3.2,junit-4,objenesis)" + local TESTS=$(find * -name "*Test.java") + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d . $(find * -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +} + +pkg_postinst() { + elog "The rrdtool executable has been installed as ${PN}-rrdtool to" + elog "avoid conflicting with net-analyzer/rrdtool." +} diff --git a/dev-java/jrobin/metadata.xml b/dev-java/jrobin/metadata.xml new file mode 100644 index 000000000000..485eb49b8399 --- /dev/null +++ b/dev-java/jrobin/metadata.xml @@ -0,0 +1,17 @@ +<?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> + <longdescription> + JRobin is a 100% pure Java alternative to RRDTool, with about exactly + the same specifications. If you provide the same data to RRDTool and + JRobin, you will get exactly the same results and graphs. All standard + RRDTool operations are supported. + </longdescription> + <upstream> + <remote-id type="github">OpenNMS/jrobin</remote-id> + </upstream> +</pkgmetadata> |