summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-11-24 22:49:18 +0000
committerJames Le Cuirot <chewi@gentoo.org>2016-11-26 22:22:07 +0000
commita179892c2c56ac3a94bc0bf8132392e00c9ec03b (patch)
tree9d57cfccb26df0144f212015d1739b7aad332c70 /dev-java
parentdev-python/oauth2client: clean up old. (diff)
downloadgentoo-a179892c2c56ac3a94bc0bf8132392e00c9ec03b.tar.gz
gentoo-a179892c2c56ac3a94bc0bf8132392e00c9ec03b.tar.bz2
gentoo-a179892c2c56ac3a94bc0bf8132392e00c9ec03b.zip
dev-java/jackson: Version bump to 2.8.5
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jackson/Manifest1
-rw-r--r--dev-java/jackson/jackson-2.8.5.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-java/jackson/Manifest b/dev-java/jackson/Manifest
index 87c3c5d969d5..41a7200375ef 100644
--- a/dev-java/jackson/Manifest
+++ b/dev-java/jackson/Manifest
@@ -1,3 +1,4 @@
DIST jackson-core-2.5.1.tar.gz 267908 SHA256 576a103f24abedba09e83cd5fa6d2a00a25deec627e29e1d8e9c38382a057f85 SHA512 bb2c3f25eb76d4acd5fed0d5d666af572f6e66b6eb0cb37b26da405d8230b92204d9b6282dda2c2c16fd3059da9aa1c0f9a4a93b3be73e99f0277befd0d6e499 WHIRLPOOL b089c0e37153ad63dcc6af705d57a2a35124b35db283761b40c0558af42b1009b58232eec99fbb1c79ea2896f21f687af226ab604d2bf4eab8d4f365563c69e7
DIST jackson-core-2.5.2.tar.gz 269203 SHA256 ce73ab90268238edb4b400206f2e33912966bf91755b76696e0eb5842fdf5e91 SHA512 65e4569818906989d1239e4aad2fe12b20f068f786bd7cb19da0e69ab7e4776b7b385a0cbaae50f95d98766a3e249f32aab9bac59947c42179330ed68279a024 WHIRLPOOL 4484c981fb2f7a7243ed3ae511f36166adb12dabc8d075861af7a3b0c12c448927d366d0e29d80d7ff94a154fbc54df771f6a68866d53d68fa4d158d9a2e5eab
+DIST jackson-core-2.8.5.tar.gz 338770 SHA256 59df45170cef4426de96da6bef8c82441ff23a9480be955cc2b5f23e9b3a8544 SHA512 43a2a7959b182ecf3a805d138bb1d49e1dd496d9a36274f5d9f2cdec5f06d02b1cde0e932216768689609faec2bd3f8d7747c61db2a12d0ae68bf22e87a4782c WHIRLPOOL c2499163f7a9f37dc473357256d42e214f4d7ecb7b0fc7222f535c7544d3a52689e46feca266b92f34b6633fbe721a2eebce3676a161af5f5630fb2c7666c3ca
DIST jackson-core-lgpl-1.9.13-sources.jar 240367 SHA256 f4dad3a1b9a20fbcfd375034309e717e16740c3d770725037f165ef2cfe852bd SHA512 eae08be1f72e868a41423a67abc0af4b63365cb98bdebff4178c8b89fdfaf24324aacec1c95b1bb3d04da0b18c2fe05c87fbe6601a52c9cdbf4a8d3de3457542 WHIRLPOOL bbf02776cfef330e6283569ba0caca323846cd4562c80e6671a6e47e4afead5fc5c5e7cca95feb9d461e560285fab301f65f33cadab1ef039ece78a6fc39e8f5
diff --git a/dev-java/jackson/jackson-2.8.5.ebuild b/dev-java/jackson/jackson-2.8.5.ebuild
new file mode 100644
index 000000000000..bd497c3bb69b
--- /dev/null
+++ b/dev-java/jackson/jackson-2.8.5.ebuild
@@ -0,0 +1,59 @@
+# 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="High-performance JSON processor"
+HOMEPAGE="https://github.com/FasterXML/jackson-core"
+SRC_URI="https://github.com/FasterXML/${PN}-core/archive/${PN}-core-${PV}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="2"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+RDEPEND=">=virtual/jre-1.7"
+DEPEND=">=virtual/jdk-1.7
+ test? ( dev-java/junit:4 )"
+
+S="${WORKDIR}/${PN}-core-${PN}-core-${PV}"
+JAVA_SRC_DIR="src/main/java"
+
+src_prepare() {
+ default
+
+ sed -e 's:@package@:com.fasterxml.jackson.core.json:g' \
+ -e "s:@projectversion@:${PV}:g" \
+ -e 's:@projectgroupid@:com.fasterxml.jackson.core:g' \
+ -e 's:@projectartifactid@:jackson-core:g' \
+ "${JAVA_SRC_DIR}/com/fasterxml/jackson/core/json/PackageVersion.java.in" \
+ > "${JAVA_SRC_DIR}/com/fasterxml/jackson/core/json/PackageVersion.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)"
+ local TESTS=$(find * -name "Test*.java")
+ TESTS="${TESTS//.java}"
+ TESTS="${TESTS//\//.}"
+
+ ejavac -cp "${CP}" -d . $(find * -name "*.java")
+ ejunit4 -classpath "${CP}" ${TESTS}
+}