From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-java/jackson-module-jaxb-annotations/Manifest | 5 ++ .../jackson-module-jaxb-annotations-2.8.5.ebuild | 68 ++++++++++++++++++++++ .../jackson-module-jaxb-annotations/metadata.xml | 12 ++++ 3 files changed, 85 insertions(+) create mode 100644 dev-java/jackson-module-jaxb-annotations/Manifest create mode 100644 dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.8.5.ebuild create mode 100644 dev-java/jackson-module-jaxb-annotations/metadata.xml (limited to 'dev-java/jackson-module-jaxb-annotations') diff --git a/dev-java/jackson-module-jaxb-annotations/Manifest b/dev-java/jackson-module-jaxb-annotations/Manifest new file mode 100644 index 000000000000..6460cc12034c --- /dev/null +++ b/dev-java/jackson-module-jaxb-annotations/Manifest @@ -0,0 +1,5 @@ +DIST jackson-module-jaxb-annotations-2.8.5.tar.gz 45855 SHA256 d8e77a8c27263b5442dc04e173e8dbfdbc447bb0e12eaf7c1bc8272bd846392f SHA512 952d7fe785d7393645350a6f5e119a2af142b316b9367a612531a93e7ce3c125d0c520a149d0e032bf876edda179f521c02d76dbd0b2f6b613c9f82e048672df WHIRLPOOL bdad98be37d5c5635a3116509f3eb93324606f3fcdd084d7c1729798eb626cfd08209cb699f26511edd03b8e440a324fb85946db1caa4b65642eb5d60cae1bc8 +EBUILD jackson-module-jaxb-annotations-2.8.5.ebuild 1868 SHA256 fac5e5532df9673a4a72a5d32e9710c40448b34157c52ceea98bf0c609188ebd SHA512 e0a3ad7674b84f0dd85bab3766cd218a137c71b1fcefd8fcf79e6627d5c9aa02d209d0addc29c3904984760aa36bfbf27e59f3f1e9862c0b0860e2b889813a6d WHIRLPOOL 3cfa497babf482ab5ecab020327a628635aa18267cf7e15f5cdb23620c392137b2c46107b2fc7654a02a7adfa6861d51876c895311eb40cec42b71953e061b4d +MISC ChangeLog 3182 SHA256 a975e4158ec23f1d406dbc6d38fdd7e5d8d26fe5fe36f3d3602c8e2007a22aa5 SHA512 9778b15c7e5471165bad41b2c310f9a12204a813d790233af9c3b5f0bcafc7f478d68b638e594ceb3d2358a472e49241ed710c99fe33f269fde036f45f130962 WHIRLPOOL 38007b0d52e4325cf750b99f3c0abd77a396508252b72d7a6b6e341191f5a0ce57cd0b3c0aa7e33c236cdbb354e5f54e106f14da73687107c6576e59bc16c68d +MISC ChangeLog-2015 573 SHA256 37fa9813935597533bb40c392badbe0aca64f2db2895b225ba7af7632784f058 SHA512 5f040a9c9f4df6418f969a7d8d12ba0a457661edd6cbfd71dc67a22e097648a0f99d48505df5429537a9e30064947ef8c5379e9780e1dd06d27db7b4fae9ab6f WHIRLPOOL 38b924b35e32e869c0cb89e71313c6dd60252a7e20204456847331e17f717d7f9c0daac29530269ae562e0e031b25506c4d5d3f091c2b18286684402973cbea6 +MISC metadata.xml 651 SHA256 7d41ad6ec3b310cc87f0e480de61fb00c11b17cfcbbbd7c24b70a8a896155811 SHA512 0d53c3d338f1544d637140952c101ade339acfd8e30a6bf76048ed0e5467f0a35344533186a4232c10a89d47cc46a7eca4b8a55751467d526ab573074a4e5b69 WHIRLPOOL c1ba3e00b6de44f63cddd17eb846b12117769475da58adbe2b9fef8baf5e71db85f8c151981bf2030cbb628d1f63b04f1650ef22bb9db8b5cae066b6f6a33963 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 000000000000..8064874cb093 --- /dev/null +++ b/dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.8.5.ebuild @@ -0,0 +1,68 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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} +} diff --git a/dev-java/jackson-module-jaxb-annotations/metadata.xml b/dev-java/jackson-module-jaxb-annotations/metadata.xml new file mode 100644 index 000000000000..761d7571d394 --- /dev/null +++ b/dev-java/jackson-module-jaxb-annotations/metadata.xml @@ -0,0 +1,12 @@ + + + + + java@gentoo.org + Java + + This Jackson extension module provides support for using JAXB (javax.xml.bind) annotations as an alternative to native Jackson annotations. It is most often used to make it easier to reuse existing data beans that used with JAXB framework to read and write XML. + + FasterXML/jackson-module-jaxb-annotations + + -- cgit v1.2.3