diff options
Diffstat (limited to 'dev-java/jrobin')
-rw-r--r-- | dev-java/jrobin/Manifest | 5 | ||||
-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, 86 insertions, 0 deletions
diff --git a/dev-java/jrobin/Manifest b/dev-java/jrobin/Manifest new file mode 100644 index 000000000000..b6d9584694ef --- /dev/null +++ b/dev-java/jrobin/Manifest @@ -0,0 +1,5 @@ +DIST jrobin-1.6.0-1.tar.gz 7340700 SHA256 0e00afc9b0fdd45bd7e62b3857fc7bd40f08e5f0cf155e0ba614cdabe58fcf5b SHA512 c5428906bf975f6c31f90185da3f0cbcaaff74d68e35e37b5e425340899fe01290d3d9813f1ecd60bd599512e3d62f635de290db9a9a1bd45292ac9c187b15c7 WHIRLPOOL b83007fb4aea92aaad62842b56b4e3bff98ce6ee509684536176420869228c8a86057f03bcebc2a1a637a9ffd2ba794d05756cc479901fff2765ced352ef5d25 +EBUILD jrobin-1.6.0-r1.ebuild 1568 SHA256 8e99798ba588aa74a905fcbe7d98a63803eeb416f85536c7f19fc7d2838d66b6 SHA512 42f36f0be9c58a03e86632a99dcdfeb404e84c17aab715fc00ed9b2b5bd175c9ecf764bd82165caac56e715f51ff573547d043ee29a3548d5c7865aea3d626f2 WHIRLPOOL 670fa93a6a0af7c281acefe5c69a3af2ec120a4844454610cee2159a386747094def161b1bc43d054039a680b296eeb379ff4eb08f9e26383a7d8c7888068475 +MISC ChangeLog 2665 SHA256 2e76d3722c01f20e69a9546eb95746b696a02ff78b2f83be4835760e1fd8bad5 SHA512 5c23e173e417d4e851555c0a551d0cb2f713063bdbe2129378958430e87a6ca0e0a75d1c73b879bba0102972f14478fa907484cd59cb87d714d27bcbdfd2b14b WHIRLPOOL 2a749b63666436a6f40db23fbcc3b5929d574419bd831ac7c3d43370a1390c6f921a69e3139a6328ba62d08767bf04fa5c76ab8570e720f995dbb99a5c1706ab +MISC ChangeLog-2015 1382 SHA256 a41e8e824671a63394f277c101e44e6a2aa4881acfb9f6165fb468c3e1aad946 SHA512 62792c918557e84eef599b8d42aa6bd2e8f01ea27ab65cf6d2072caed26094003fece0767ac60095ce8ba53390c74d38a6a5afaa7e1e93c6ff934f3852600de6 WHIRLPOOL 775fefe5b2a3ffd6574ea2f8981596cac9267e62e4aa137d0d6b3e20a2b03d03adfa99c571b419fd462d47d08f9f836a970f7d914c41aa7f904af40cb1f99871 +MISC metadata.xml 602 SHA256 efa158b2406206084560f1a29abfcdc7eff23308afebfac8941cfaed8260b6ac SHA512 38a6b1ecf0ebe88c64718f48d77cf459f11facc7b422cda53630da3ae9d040de0fd004e4ea571d93bc9f8f315e8f0c65cfc16d0f57c399174198facd98613d37 WHIRLPOOL 6d75cb9fca43176581f389109b34e584fdfeb5244f7ed1c9ecdccde95bb6250746c419c02e37ab379dbe6d2193133e799ba6bc0d9af7357b1cbb7bf7bd67ff84 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> |