diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2015-09-30 20:57:33 +0000 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2015-09-30 22:50:45 +0000 |
commit | 97ca2515670703e900a9bae97d342f950a874658 (patch) | |
tree | 8d31079f6d4fbf0372884cfbcf2a3bea937d5cfb /dev-java/jackson-module-jaxb-annotations | |
parent | dev-java/jackson-dataformat-xml: Version bump. (diff) | |
download | gentoo-97ca2515670703e900a9bae97d342f950a874658.tar.gz gentoo-97ca2515670703e900a9bae97d342f950a874658.tar.bz2 gentoo-97ca2515670703e900a9bae97d342f950a874658.zip |
dev-java/jackson-module-jaxb-annotations: Version bump.
Package-Manager: portage-2.2.18
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-java/jackson-module-jaxb-annotations')
-rw-r--r-- | dev-java/jackson-module-jaxb-annotations/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.5.2.ebuild | 61 |
2 files changed, 62 insertions, 0 deletions
diff --git a/dev-java/jackson-module-jaxb-annotations/Manifest b/dev-java/jackson-module-jaxb-annotations/Manifest index 6db68e57fe52..9100850bd2c2 100644 --- a/dev-java/jackson-module-jaxb-annotations/Manifest +++ b/dev-java/jackson-module-jaxb-annotations/Manifest @@ -1 +1,2 @@ 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 diff --git a/dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.5.2.ebuild b/dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.5.2.ebuild new file mode 100644 index 000000000000..d7ef1e7b303e --- /dev/null +++ b/dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.5.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +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" +IUSE="test" + +CDEPEND="~dev-java/jackson-${PV}:${SLOT} + ~dev-java/jackson-annotations-${PV}:${SLOT} + ~dev-java/jackson-databind-${PV}:${SLOT} + dev-java/stax2-api:0" +RDEPEND=">=virtual/jre-1.5 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.5 + ${CDEPEND} + test? ( dev-java/junit:4 )" + +S="${WORKDIR}/${PN}-${P}/src" +JAVA_SRC_DIR="main/java" +JAVA_GENTOO_CLASSPATH="jackson-${SLOT},jackson-annotations-${SLOT},jackson-databind-${SLOT}" + +java_prepare() { + 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' \ + "${S}/main/java/com/fasterxml/jackson/module/jaxb/PackageVersion.java.in" \ + > "${S}/main/java/com/fasterxml/jackson/module/jaxb/PackageVersion.java" || die + + # Requires jax-rs, which isn't packaged yet. + rm "${S}/test/java/com/fasterxml/jackson/module/jaxb/introspect"/{Content,TestPropertyVisibility}.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 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} +} |