commit: 5c8ce9a7f2a29c875562216e08e494a7fef4a206 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> AuthorDate: Thu Feb 18 14:11:57 2016 +0000 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> CommitDate: Thu Feb 18 19:36:58 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c8ce9a7
dev-java/classmate: Version bump. Package-Manager: portage-2.2.26 dev-java/classmate/Manifest | 1 + dev-java/classmate/classmate-1.0.0.ebuild | 53 +++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/dev-java/classmate/Manifest b/dev-java/classmate/Manifest index ebf6994..6c53e31 100644 --- a/dev-java/classmate/Manifest +++ b/dev-java/classmate/Manifest @@ -1 +1,2 @@ DIST classmate-0.9.0.tar.gz 57752 SHA256 6667a959b282b037aaed328fca3131a89c7649a347a72e1d2d4dd40bc8b393f2 SHA512 7fb331c462458c8aab143f23c0d128a0e4e976f9d12bd181eb5658961b217bd1fe0871d056fc38bff794522c8b3118a2a017eab265afffc1d60b5580df1237a2 WHIRLPOOL ecfa56a57d07c1486f92c1a635d5b294b9664994504649a5234daff34935c0f42dc590f55ee1fa3a780399a923728a30e083a809871777e68e78deaf3f6dd45c +DIST classmate-1.0.0.tar.gz 57807 SHA256 eae6fe3a0736d7773856363f2cd176c44cf9bb679974f8fe3add214c16c2f1d3 SHA512 cf721c813674e295fa6c1fe897493d14926d025cab51896ea0cec69ae285a540123060c39e3515daeffa48d6975d060861bf3ca5340bb9273980fee6d92d73b5 WHIRLPOOL ed590fff997700c80c1f4735b809a01599f58112de25248fc626be295e097ac9e1930ce26c140226d3e867733cec58fa7cc7d826e9a57eea351c7dde126902f9 diff --git a/dev-java/classmate/classmate-1.0.0.ebuild b/dev-java/classmate/classmate-1.0.0.ebuild new file mode 100644 index 0000000..c67ee19 --- /dev/null +++ b/dev-java/classmate/classmate-1.0.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="Zero-dependency Java library for accurately introspecting type information" +HOMEPAGE="https://github.com/cowtowncoder/java-classmate/" +SRC_URI="https://github.com/cowtowncoder/java-classmate/archive/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +IUSE="" + +RDEPEND=" + >=virtual/jre-1.6" + +DEPEND=" + >=virtual/jdk-1.6 + test? ( + dev-java/junit:4 + )" + +S="${WORKDIR}/java-${PN}-${P}" + +JAVA_SRC_DIR="src/main/java" + +# This one test is buggy. +JAVA_RM_FILES=( + src/test/java/com/fasterxml/classmate/AnnotationsTest.java +) + +java_prepare() { + rm pom.xml || die +} + +src_test() { + testcp="${S}/${PN}.jar:$(java-pkg_getjars junit-4):target/tests" + + mkdir target/tests || die + ejavac -cp "${testcp}" -d target/tests $(find src/test/java -name "*.java") + + tests=$(find target/tests -name "*Test.class" -not -name "BaseTest.class" \ + | sed -e 's/target\/tests\///g' -e "s/\.class//" -e "s/\//./g" \ + | grep -vP '\$'); + ejunit4 -cp "${testcp}" ${tests} +}