diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-java/jackson-module-jaxb-annotations | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-java/jackson-module-jaxb-annotations')
3 files changed, 71 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..6db68e57fe52 --- /dev/null +++ b/dev-java/jackson-module-jaxb-annotations/Manifest @@ -0,0 +1 @@ +DIST jackson-module-jaxb-annotations-2.5.1.tar.gz 42922 SHA256 86e9acabc3d65cb4e28c1e4df73075648c7250405f434c09c7f75eb800a17f3a SHA512 0d877b02664ca7b1c5d6ba245b369536a5acd015382e8f46c66fc69e64b4bfb25caf6be0f6bb8bd52609e5da0b510a642ace8651853aa4b8d11681b3499abe1a WHIRLPOOL 0f00532687558e86479b739ff6f080ebf57e648fc4269128e617b128bfc37310c7329aae4a35f8149b5348d550f9481a3ae379cad3ddeac7f68ebb1578dab094 diff --git a/dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.5.1.ebuild b/dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.5.1.ebuild new file mode 100644 index 000000000000..d7ef1e7b303e --- /dev/null +++ b/dev-java/jackson-module-jaxb-annotations/jackson-module-jaxb-annotations-2.5.1.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} +} 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..47a80b4c0e9d --- /dev/null +++ b/dev-java/jackson-module-jaxb-annotations/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>java</herd> + <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> |