diff options
author | James Le Cuirot <chewi@gentoo.org> | 2016-01-13 21:54:29 +0000 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2016-01-13 22:00:59 +0000 |
commit | 06b877d738100fbf3444807eeeedb9cce409280e (patch) | |
tree | 50dc230662401d3fa8b3494b51ed4d427f5e38d4 /dev-java/snakeyaml | |
parent | www-client/chromium: dev channel bump (49.0.2618.8) (diff) | |
download | gentoo-06b877d738100fbf3444807eeeedb9cce409280e.tar.gz gentoo-06b877d738100fbf3444807eeeedb9cce409280e.tar.bz2 gentoo-06b877d738100fbf3444807eeeedb9cce409280e.zip |
dev-java/snakeyaml: Version bump to 1.16
Now includes working tests.
Package-Manager: portage-2.2.26
Diffstat (limited to 'dev-java/snakeyaml')
-rw-r--r-- | dev-java/snakeyaml/Manifest | 1 | ||||
-rw-r--r-- | dev-java/snakeyaml/metadata.xml | 3 | ||||
-rw-r--r-- | dev-java/snakeyaml/snakeyaml-1.16.ebuild | 50 |
3 files changed, 51 insertions, 3 deletions
diff --git a/dev-java/snakeyaml/Manifest b/dev-java/snakeyaml/Manifest index e84b1b91040c..e8cd3ec83262 100644 --- a/dev-java/snakeyaml/Manifest +++ b/dev-java/snakeyaml/Manifest @@ -1 +1,2 @@ DIST SnakeYAML-all-1.9.zip 9122570 SHA256 7c1090eb1b2e06f784dc424678f18d513dfe020fd2f0042c63217e09ae9a8853 SHA512 8b2fd5de8374b592b74f52cea66cbb7aed04892fecf7f994fc797fc9fdb185fed4fa02a1fe69e69f137acb01037f77ed18988b83d038bc425fa04186947dab19 WHIRLPOOL f7a9dcd644638b28a35a8a33d81455984455d1b55dddc057db17cb6e60589240331ab2beb56df4f6a81bbe6ff1fe2b63731eff6454b601b1a76ba5c2061baa7c +DIST snakeyaml-1.16.tar.bz2 234954 SHA256 cc85e6c5e21ce16b84d2d8f73e145ce285a9f6e73b34fd22ed7859ff6ab1a4eb SHA512 77ef0b1fa2ebe7ab1618745c407436ac6965159e29e1271b0d571006b967bcd94658eb3a8047180ea7c3160eb66ecbac1f24414537a24a81c11fb735ce65e3a4 WHIRLPOOL 68e898d6142d7fa3c5a801e6772f1cbd4caf173f1ba84c4244a11d92b6d6d180e69df9fba2ce9c63337df90baa492851728dccd00201fd5c8abc640ec6e28d72 diff --git a/dev-java/snakeyaml/metadata.xml b/dev-java/snakeyaml/metadata.xml index a37d95efc2a6..fb133c7e48b4 100644 --- a/dev-java/snakeyaml/metadata.xml +++ b/dev-java/snakeyaml/metadata.xml @@ -2,10 +2,7 @@ <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <herd>java</herd> - <longdescription lang="en"> - </longdescription> <upstream> - <remote-id type="google-code">snakeyaml</remote-id> <remote-id type="bitbucket">asomov/snakeyaml</remote-id> </upstream> </pkgmetadata> diff --git a/dev-java/snakeyaml/snakeyaml-1.16.ebuild b/dev-java/snakeyaml/snakeyaml-1.16.ebuild new file mode 100644 index 000000000000..cd31a3be8a66 --- /dev/null +++ b/dev-java/snakeyaml/snakeyaml-1.16.ebuild @@ -0,0 +1,50 @@ +# 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 vcs-snapshot + +DESCRIPTION="A YAML 1.1 parser and emitter for Java 5" +HOMEPAGE="https://bitbucket.org/asomov/snakeyaml" +SRC_URI="https://bitbucket.org/asomov/${PN}/get/v${PV}.tar.bz2 -> ${P}.tar.bz2" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +DEPEND=">=virtual/jdk-1.6 + test? ( + dev-java/joda-time:0 + dev-java/junit:4 )" + +RDEPEND=">=virtual/jre-1.6" + +S="${WORKDIR}/${P}" +JAVA_SRC_DIR="src/main/java" + +java_prepare() { + # Remove some tests with tricky dependencies. + rm -rv src/test/java/{examples/SpringTest.java,org/yaml/snakeyaml/{emitter/template/VelocityTest.java,issues/issue9}} || die +} + +src_install() { + java-pkg-simple_src_install + dodoc README.md src/etc/announcement.msg +} + +src_test() { + local DIR="src/test/java" + local CP="${DIR}/../resources:${DIR}:${PN}.jar:$(java-pkg_getjars joda-time,junit-4)" + + local TESTS=$(find "${DIR}" -name "*Test.java" ! -name AbstractTest.java ! -name PyImportTest.java) + TESTS="${TESTS//src\/test\/java\/}" + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d "${DIR}" $(find "${DIR}" -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +} |