From: Patrice Clement Date: Wed, 30 Sep 2015 20:54:56 +0000 (+0000) Subject: dev-java/jackson-databind: Version bump. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ebbe62fba2cd5fa0ab6487934c49edd090f61ed5;p=gentoo.git dev-java/jackson-databind: Version bump. Package-Manager: portage-2.2.18 Signed-off-by: Patrice Clement --- diff --git a/dev-java/jackson-databind/Manifest b/dev-java/jackson-databind/Manifest index a49e1ebc0428..a3f637ce0630 100644 --- a/dev-java/jackson-databind/Manifest +++ b/dev-java/jackson-databind/Manifest @@ -1 +1,2 @@ DIST jackson-databind-2.5.1.tar.gz 914121 SHA256 7673a6650d4cd353d3dadfea0afaae30e33a9416550c21772a16ecf36fca1fee SHA512 72792495612143a4601999036a40b67658df5af43c8dde1408c48d4b19581b770442f36bf448a22e19fbc31dbaec2e4cae61b5c7ee7c6c939478083ce1e24131 WHIRLPOOL 92a0fd63e1cdc03da89c024c60c1f6cd2134800d749945daecf2568f1b40db94c83641d6d6219f2d4d70425a8d07d191be39e18b07af9fe0176e1bcc595fde06 +DIST jackson-databind-2.5.2.tar.gz 919612 SHA256 960c0fedccf88d89affc6004e8b93200cfe56bff8e056f0346aad992a33c9492 SHA512 28aa0759de0d8936209425cade805299dca84707fa1d1a641289eff4f735617aa06d8dfab0deb5a2d177ec533ed9ceb3d85dc26dbcbed24155272351018ce19a WHIRLPOOL 817a58345277aabd4a6759d1bda3ab477987879a287e7ad39a292d5f92bc53328e19f1bf1ab14d77262123af44cab7aacdab8784cdd50925142b72f563d4e829 diff --git a/dev-java/jackson-databind/jackson-databind-2.5.2.ebuild b/dev-java/jackson-databind/jackson-databind-2.5.2.ebuild new file mode 100644 index 000000000000..1aca01e4bdb7 --- /dev/null +++ b/dev-java/jackson-databind/jackson-databind-2.5.2.ebuild @@ -0,0 +1,66 @@ +# 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 eutils java-pkg-2 java-pkg-simple + +DESCRIPTION="High-performance JSON processor" +HOMEPAGE="https://github.com/FasterXML/jackson-databind" +SRC_URI="https://github.com/FasterXML/${PN}/archive/${PN}-${PV}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="test" # 27/1306 failures :( + +CDEPEND="~dev-java/jackson-${PV}:${SLOT} + ~dev-java/jackson-annotations-${PV}:${SLOT}" +RDEPEND=">=virtual/jre-1.5 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.5 + ${CDEPEND} + test? ( + dev-java/cglib:3 + dev-java/groovy:0 + dev-java/junit:4 + )" + +S="${WORKDIR}/${PN}-${P}/src" +JAVA_SRC_DIR="main/java" +JAVA_GENTOO_CLASSPATH="jackson-${SLOT},jackson-annotations-${SLOT}" + +java_prepare() { + epatch "${FILESDIR}/real-cglib.patch" + + sed -e 's:@package@:com.fasterxml.jackson.databind.cfg:g' \ + -e "s:@projectversion@:${PV}:g" \ + -e 's:@projectgroupid@:com.fasterxml.jackson.core:g' \ + -e 's:@projectartifactid@:jackson-databind:g' \ + "${S}/main/java/com/fasterxml/jackson/databind/cfg/PackageVersion.java.in" \ + > "${S}/main/java/com/fasterxml/jackson/databind/cfg/PackageVersion.java" || die + + # Requires newer JScience. Could be any class but they chose this! + rm "${S}/test/java/com/fasterxml/jackson/databind/deser/TestNoClassDefFoundDeserializer.java" || die +} + +src_install() { + java-pkg-simple_src_install + dodoc ../README.md ../release-notes/{CREDITS,VERSION} +} + +src_test() { + cd test/java || die + + local CP=".:../resources:${S}/${PN}.jar:$(java-pkg_getjars --with-dependencies cglib-2.2,groovy,junit-4,${JAVA_GENTOO_CLASSPATH})" + local TESTS=$(find * -name "Test*.java") + TESTS="${TESTS//.java}" + TESTS="${TESTS//\//.}" + + ejavac -cp "${CP}" -d . $(find * -name "*.java") + ejunit4 -classpath "${CP}" ${TESTS} +}