summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-11-26 16:54:54 +0000
committerJames Le Cuirot <chewi@gentoo.org>2016-11-26 22:22:09 +0000
commitabd4dacc0a493f9bea5c1197bf1c28bbe2918f50 (patch)
tree1acb54fbc25a0f3e02464ef0190d43176d974897
parentdev-java/jackson-databind: Version bump to 2.8.5 (diff)
downloadgentoo-abd4dacc0a493f9bea5c1197bf1c28bbe2918f50.tar.gz
gentoo-abd4dacc0a493f9bea5c1197bf1c28bbe2918f50.tar.bz2
gentoo-abd4dacc0a493f9bea5c1197bf1c28bbe2918f50.zip
dev-java/jackson-module-jaxb-annotations: Version bump to 2.8.5
Package-Manager: portage-2.3.2
-rw-r--r--dev-java/jackson-module-jaxb-annotations/Manifest1
-rw-r--r--dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.8.5.ebuild69
2 files changed, 70 insertions, 0 deletions
diff --git a/dev-java/jackson-module-jaxb-annotations/Manifest b/dev-java/jackson-module-jaxb-annotations/Manifest
index 9100850bd2c..32a9cea5b12 100644
--- a/dev-java/jackson-module-jaxb-annotations/Manifest
+++ b/dev-java/jackson-module-jaxb-annotations/Manifest
@@ -1,2 +1,3 @@
DIST jackson-module-jaxb-annotations-2.5.1.tar.gz 42922 SHA256 86e9acabc3d65cb4e28c1e4df73075648c7250405f434c09c7f75eb800a17f3a SHA512 0d877b02664ca7b1c5d6ba245b369536a5acd015382e8f46c66fc69e64b4bfb25caf6be0f6bb8bd52609e5da0b510a642ace8651853aa4b8d11681b3499abe1a WHIRLPOOL 0f00532687558e86479b739ff6f080ebf57e648fc4269128e617b128bfc37310c7329aae4a35f8149b5348d550f9481a3ae379cad3ddeac7f68ebb1578dab094
DIST jackson-module-jaxb-annotations-2.5.2.tar.gz 43096 SHA256 b1f4c902f24fd71fe3669f74a371c697e9b77887af50725e9d6eee1e8a966f54 SHA512 9d3f23f00e143ac116f8d570eff5679792d82cc47a5051696f6b2496739092d2a9f24cb9fe35c00c1f965f1305dc39e21f70fea19bb9a9a82312f7cc64a19f85 WHIRLPOOL 3cb4b4dc7096005c02f7e4481999156bd8e4bd2cd56f839c738b5bff1122f4c0dab2c9492a99e5092e3ff1cc723dd082c9ce723baa5e98815ab44eaf5cafae6b
+DIST jackson-module-jaxb-annotations-2.8.5.tar.gz 45855 SHA256 d8e77a8c27263b5442dc04e173e8dbfdbc447bb0e12eaf7c1bc8272bd846392f SHA512 952d7fe785d7393645350a6f5e119a2af142b316b9367a612531a93e7ce3c125d0c520a149d0e032bf876edda179f521c02d76dbd0b2f6b613c9f82e048672df WHIRLPOOL bdad98be37d5c5635a3116509f3eb93324606f3fcdd084d7c1729798eb626cfd08209cb699f26511edd03b8e440a324fb85946db1caa4b65642eb5d60cae1bc8
diff --git a/dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.8.5.ebuild b/dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.8.5.ebuild
new file mode 100644
index 00000000000..5fc73a4910a
--- /dev/null
+++ b/dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-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="JAXB alternative to native Jackson annotations"
+HOMEPAGE="https://github.com/FasterXML/jackson-module-jaxb-annotations"
+SRC_URI="https://github.com/FasterXML/${PN}/archive/${P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="2"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+CP_DEPEND="~dev-java/jackson-${PV}:${SLOT}
+ ~dev-java/jackson-annotations-${PV}:${SLOT}
+ ~dev-java/jackson-databind-${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.module.jaxb:g' \
+ -e "s:@projectversion@:${PV}:g" \
+ -e 's:@projectgroupid@:com.fasterxml.jackson.module:g' \
+ -e 's:@projectartifactid@:jackson-module-jaxb-annotations:g' \
+ "${JAVA_SRC_DIR}/com/fasterxml/jackson/module/jaxb/PackageVersion.java.in" \
+ > "${JAVA_SRC_DIR}/com/fasterxml/jackson/module/jaxb/PackageVersion.java" || die
+
+ # Requires jax-rs, which isn't packaged yet.
+ rm "src/test/java/com/fasterxml/jackson/module/jaxb/introspect"/{Content,TestPropertyVisibility}.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" ! -path "*/failing/*")
+ TESTS="${TESTS//.java}"
+ TESTS="${TESTS//\//.}"
+
+ ejavac -cp "${CP}" -d . $(find * -name "*.java")
+ ejunit4 -classpath "${CP}" ${TESTS}
+}