summaryrefslogtreecommitdiff
path: root/dev-java/jackson-module-jaxb-annotations
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-07-14 21:03:06 +0100
commit8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch)
tree7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/jackson-module-jaxb-annotations
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/jackson-module-jaxb-annotations')
-rw-r--r--dev-java/jackson-module-jaxb-annotations/Manifest3
-rw-r--r--dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.8.5.ebuild68
-rw-r--r--dev-java/jackson-module-jaxb-annotations/metadata.xml12
3 files changed, 83 insertions, 0 deletions
diff --git a/dev-java/jackson-module-jaxb-annotations/Manifest b/dev-java/jackson-module-jaxb-annotations/Manifest
new file mode 100644
index 000000000000..ec01610a149c
--- /dev/null
+++ b/dev-java/jackson-module-jaxb-annotations/Manifest
@@ -0,0 +1,3 @@
+DIST jackson-module-jaxb-annotations-2.8.5.tar.gz 45855 BLAKE2B f122a325e546f958d04ad1ccc9c520efec42e7d6ab258591a8f5d84c61686fb24668d48326c262377a8f3046818f9cf22eb28440cf5564a0bfb06f884dd4822c SHA512 952d7fe785d7393645350a6f5e119a2af142b316b9367a612531a93e7ce3c125d0c520a149d0e032bf876edda179f521c02d76dbd0b2f6b613c9f82e048672df
+EBUILD jackson-module-jaxb-annotations-2.8.5.ebuild 1868 BLAKE2B 860fcf502d72d752974e09a1710f3662920343220fe054ceef462eea99b7362c4dedf353d4173c2b26457fe542ce27285f1c82dc4c673879d13dae546ee9888d SHA512 e0a3ad7674b84f0dd85bab3766cd218a137c71b1fcefd8fcf79e6627d5c9aa02d209d0addc29c3904984760aa36bfbf27e59f3f1e9862c0b0860e2b889813a6d
+MISC metadata.xml 651 BLAKE2B 2120b41a1d0a8fd0e9d1368e5988f4f62c9e770d50719bcd782253687756e1fd2a7587851e8d1b75497ecafed7dffed4f10637317feb1f4ebaa7bafb090796bd SHA512 0d53c3d338f1544d637140952c101ade339acfd8e30a6bf76048ed0e5467f0a35344533186a4232c10a89d47cc46a7eca4b8a55751467d526ab573074a4e5b69
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>java@gentoo.org</email>
+ <name>Java</name>
+ </maintainer>
+ <longdescription>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.</longdescription>
+ <upstream>
+ <remote-id type="github">FasterXML/jackson-module-jaxb-annotations</remote-id>
+ </upstream>
+</pkgmetadata>