dev-java/jackson-databind: Version bump.
authorPatrice Clement <monsieurp@gentoo.org>
Wed, 30 Sep 2015 20:54:56 +0000 (20:54 +0000)
committerPatrice Clement <monsieurp@gentoo.org>
Wed, 30 Sep 2015 22:50:39 +0000 (22:50 +0000)
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
dev-java/jackson-databind/Manifest
dev-java/jackson-databind/jackson-databind-2.5.2.ebuild [new file with mode: 0644]

index a49e1ebc0428e865f43b864c55d1ef3b9efb0de7..a3f637ce0630ea3a7f9e6cb8064a062e5b686247 100644 (file)
@@ -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 (file)
index 0000000..1aca01e
--- /dev/null
@@ -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}
+}