summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-11-24 23:08:21 +0000
committerJames Le Cuirot <chewi@gentoo.org>2016-11-26 22:22:08 +0000
commitc338039d52bec424b5b1de9205ee94b40f895939 (patch)
tree8c1b8554aa14b971d9609ea9f35ad661e49c96be
parentdev-java/jackson-annotations: Version bump to 2.8.5 (diff)
downloadgentoo-c338039d52bec424b5b1de9205ee94b40f895939.tar.gz
gentoo-c338039d52bec424b5b1de9205ee94b40f895939.tar.bz2
gentoo-c338039d52bec424b5b1de9205ee94b40f895939.zip
dev-java/jackson-databind: Version bump to 2.8.5
Package-Manager: portage-2.3.2
-rw-r--r--dev-java/jackson-databind/Manifest1
-rw-r--r--dev-java/jackson-databind/jackson-databind-2.8.5.ebuild69
2 files changed, 70 insertions, 0 deletions
diff --git a/dev-java/jackson-databind/Manifest b/dev-java/jackson-databind/Manifest
index a3f637ce0630..fb9edbd08ad0 100644
--- a/dev-java/jackson-databind/Manifest
+++ b/dev-java/jackson-databind/Manifest
@@ -1,2 +1,3 @@
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
+DIST jackson-databind-2.8.5.tar.gz 1093933 SHA256 375f20c52fef47473c1b5ef414ebb5f1a38abbe69592d6193657a84709641d1c SHA512 6935b469804fc14a5d2e562c80449c4e3368256358b8ed2a0d5a0bf2bcea47385ef19a708b94f25e450f42f6f70e868d6fc79f22cdc2fb6f88a4faf35bfc3cb7 WHIRLPOOL ced41007e87cd9d7b65e6421a5d2a8299ab87ad0ec333b3426e075e42e4b7fab10693f62eaa3b7718f704a3be347dbce24b56be5764dbe9b90a6cf6c46825223
diff --git a/dev-java/jackson-databind/jackson-databind-2.8.5.ebuild b/dev-java/jackson-databind/jackson-databind-2.8.5.ebuild
new file mode 100644
index 000000000000..b70828ba7aa9
--- /dev/null
+++ b/dev-java/jackson-databind/jackson-databind-2.8.5.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple
+
+DESCRIPTION="Data-binding functionality and tree-model for the Java Jackson data 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="test"
+RESTRICT="test" # Missing deps.
+
+CP_DEPEND="~dev-java/jackson-${PV}:${SLOT}
+ ~dev-java/jackson-annotations-${PV}:${SLOT}"
+
+RDEPEND=">=virtual/jre-1.7
+ ${CP_DEPEND}"
+
+DEPEND=">=virtual/jdk-1.7
+ ${CP_DEPEND}
+ test? ( dev-java/junit:4 )"
+
+S="${WORKDIR}/${PN}-${P}"
+JAVA_SRC_DIR="src/main/java"
+
+src_prepare() {
+ default
+
+ 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' \
+ "${JAVA_SRC_DIR}/com/fasterxml/jackson/databind/cfg/PackageVersion.java.in" \
+ > "${JAVA_SRC_DIR}/com/fasterxml/jackson/databind/cfg/PackageVersion.java" || die
+
+ # Requires newer JScience. Could be any class but they chose this!
+ rm "${S}/src/test/java/com/fasterxml/jackson/databind/introspect/NoClassDefFoundWorkaroundTest.java" || die
+
+ java-pkg-2_src_prepare
+}
+
+src_compile() {
+ java-pkg-simple_src_compile
+ java-pkg_addres ${PN}.jar src/main/resources
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ dodoc README.md release-notes/{CREDITS,VERSION}
+}
+
+src_test() {
+ cd src/test/java || die
+
+ local CP=".:../resources:${S}/${PN}.jar:$(java-pkg_getjars 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}
+}