diff options
author | James Le Cuirot <chewi@gentoo.org> | 2016-05-25 13:44:38 +0100 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2016-05-25 22:58:30 +0100 |
commit | 21ecc35f5ba74e4ea0f569aa887b5761522e62df (patch) | |
tree | 282d8ef939b206eea0868b96dcdd9e6db0a55c97 /dev-java/freehep-io | |
parent | kde-base/kdelibs: Remove 4.14.8 (diff) | |
download | gentoo-21ecc35f5ba74e4ea0f569aa887b5761522e62df.tar.gz gentoo-21ecc35f5ba74e4ea0f569aa887b5761522e62df.tar.bz2 gentoo-21ecc35f5ba74e4ea0f569aa887b5761522e62df.zip |
dev-java/freehep-io: Version bump to 2.2.2, EAPI bump, add tests
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'dev-java/freehep-io')
-rw-r--r-- | dev-java/freehep-io/Manifest | 2 | ||||
-rw-r--r-- | dev-java/freehep-io/freehep-io-2.0.2.ebuild | 25 | ||||
-rw-r--r-- | dev-java/freehep-io/freehep-io-2.2.2.ebuild | 37 | ||||
-rw-r--r-- | dev-java/freehep-io/metadata.xml | 3 |
4 files changed, 41 insertions, 26 deletions
diff --git a/dev-java/freehep-io/Manifest b/dev-java/freehep-io/Manifest index 0e3c38942d88..dfcfd9b06321 100644 --- a/dev-java/freehep-io/Manifest +++ b/dev-java/freehep-io/Manifest @@ -1 +1 @@ -DIST freehep-io-2.0.2-sources.jar 58815 SHA256 806f3404bb1d29a68d5bf198611ce1634cb3296f533430edababab35d77b19ea SHA512 a04e39ffeb69c215f897d09e1adeb083477cd54d1ea5e73bbbac7161c54d181db70d690e4684871eaf137ece3c056862f8ab8a460f6de91d3e072ac84d6c1e82 WHIRLPOOL 6b30c46840a99b5e9d13dde5ab474d51ba748ba1b4b2f795a45b1748e6e508ff8acb1a6485ff40fe57ad78e3cf1b733b3f81d1ea6e2f55d8b484b930b67c08f6 +DIST freehep-io-2.2.2.tar.gz 76935 SHA256 dd66232e8c484d35a732f05e04834d520a04769f4bc86c6eeaee764bf96f511b SHA512 1cc7cab3d9648b119aa8c637c84cd985adc0f9dd2cdd153021500831325d719ef5fa41d8964ccbeed3af95b87e09c4886597c0ede1370a209f6807932636b0ee WHIRLPOOL db39f0e68e17416d2893462c554983c8eaa8831e505b6868ce29c03ed6c2d99f446d5e752f6d6ac5cb69d9daf9c16720a1941bdbdaf8e985dab6c838497fe518 diff --git a/dev-java/freehep-io/freehep-io-2.0.2.ebuild b/dev-java/freehep-io/freehep-io-2.0.2.ebuild deleted file mode 100644 index b2b594afaead..000000000000 --- a/dev-java/freehep-io/freehep-io-2.0.2.ebuild +++ /dev/null @@ -1,25 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -JAVA_PKG_IUSE="" -GROUP_ID="org.freehep" -MAVEN2_REPOSITORIES="http://java.freehep.org/maven2" - -inherit java-pkg-2 java-mvn-src - -DESCRIPTION="High Energy Physics Java library - FreeHEP I/O Library" -HOMEPAGE="http://java.freehep.org/" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="" - -CDEPEND=">=dev-java/freehep-util-2.0.1 - dev-java/junit" -DEPEND=">=virtual/jdk-1.5 - ${CDEPEND}" -RDEPEND=">=virtual/jre-1.5 - ${CDEPEND}" -JAVA_GENTOO_CLASSPATH="freehep-util,junit" diff --git a/dev-java/freehep-io/freehep-io-2.2.2.ebuild b/dev-java/freehep-io/freehep-io-2.2.2.ebuild new file mode 100644 index 000000000000..ab28fb3da851 --- /dev/null +++ b/dev-java/freehep-io/freehep-io-2.2.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="High Energy Physics Java library - FreeHEP I/O Library" +HOMEPAGE="http://java.freehep.org/" +SRC_URI="https://github.com/freehep/${PN}/archive/${P}.tar.gz" +LICENSE="Apache-2.0 LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=">=virtual/jdk-1.7 + test? ( dev-java/junit:4 )" + +RDEPEND=">=virtual/jre-1.7" + +S="${WORKDIR}/${PN}-${P}" +JAVA_SRC_DIR="src/main/java" + +src_test() { + local DIR=src/test/java + local CP="${DIR}:${PN}.jar:$(java-pkg_getjars junit-4)" + local TESTS=$(find ${DIR} -name "*Test.java" ! -name "Abstract*") + TESTS="${TESTS//src\/test\/java\/}" + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d ${DIR} $(find ${DIR} -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +} diff --git a/dev-java/freehep-io/metadata.xml b/dev-java/freehep-io/metadata.xml index 952a4b9b605c..ff99e83575c0 100644 --- a/dev-java/freehep-io/metadata.xml +++ b/dev-java/freehep-io/metadata.xml @@ -5,4 +5,7 @@ <email>java@gentoo.org</email> <name>Java</name> </maintainer> + <upstream> + <remote-id type="github">freehep/freehep-io</remote-id> + </upstream> </pkgmetadata> |