summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-11-26 17:04:27 +0000
committerJames Le Cuirot <chewi@gentoo.org>2016-11-26 22:22:09 +0000
commit196f58235278ee889f47673b2ac8530b3950c476 (patch)
tree1740ed07b95d0cf8bac480755c6c9c183bc83a79
parentdev-java/jackson-module-jaxb-annotations: Version bump to 2.8.5 (diff)
downloadgentoo-196f58235278ee889f47673b2ac8530b3950c476.tar.gz
gentoo-196f58235278ee889f47673b2ac8530b3950c476.tar.bz2
gentoo-196f58235278ee889f47673b2ac8530b3950c476.zip
dev-java/jackson-dataformat-yaml: Version bump to 2.8.5
Package-Manager: portage-2.3.2
-rw-r--r--dev-java/jackson-dataformat-yaml/Manifest1
-rw-r--r--dev-java/jackson-dataformat-yaml/jackson-dataformat-yaml-2.8.5.ebuild72
2 files changed, 73 insertions, 0 deletions
diff --git a/dev-java/jackson-dataformat-yaml/Manifest b/dev-java/jackson-dataformat-yaml/Manifest
index a9fd89ab37a..4972037a4cc 100644
--- a/dev-java/jackson-dataformat-yaml/Manifest
+++ b/dev-java/jackson-dataformat-yaml/Manifest
@@ -1 +1,2 @@
DIST jackson-dataformat-yaml-2.5.1.tar.gz 38346 SHA256 b0e8644b475b33c9bda87018620edf3409712d7eb1e01a6b6d342e32667b88de SHA512 b18fc58ff73f5c6a22ab1763dea7fe924848b82e1a12353b671fd28935b5e8371f15507fcf16f3a7638392d23b8ee934aab2ebf82d5c287c2658bfe77d8728a8 WHIRLPOOL c2ee03dca4beba49da15aec2f54b455906685c969ba270925d6af36952b25ca77b0f8b6dfdfca60babb1dcc4e29653f0e9409d62dcdf67d8b06e4fd4fce921bb
+DIST jackson-dataformat-yaml-2.8.5.tar.gz 44789 SHA256 4e407ce43534a3a0343764025e23ffcc58275b03de6d606e9436a046f4c99246 SHA512 e2c8163150647bf5071aeb4cb38b8273cf9cd1f8ed36bc6dfef4a82ef762f30449aa4b813821648e8216768a2b4c2a00964b86977114ee2a4526cab6a690d9cb WHIRLPOOL bb7c76fc1ad7678df63a21543d7ee00598521c4eee23003ace89036dca42c44d73d694fd3c9afee8c829284545e777e8ecc318f78f40bc6ef19ec1fb80a3197d
diff --git a/dev-java/jackson-dataformat-yaml/jackson-dataformat-yaml-2.8.5.ebuild b/dev-java/jackson-dataformat-yaml/jackson-dataformat-yaml-2.8.5.ebuild
new file mode 100644
index 00000000000..1816ed581ee
--- /dev/null
+++ b/dev-java/jackson-dataformat-yaml/jackson-dataformat-yaml-2.8.5.ebuild
@@ -0,0 +1,72 @@
+# 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="YAML data format extension for Jackson"
+HOMEPAGE="https://github.com/FasterXML/jackson-dataformat-yaml"
+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-databind-${PV}:${SLOT}
+ >=dev-java/snakeyaml-1.16:0"
+
+RDEPEND=">=virtual/jre-1.7
+ ${CP_DEPEND}"
+
+DEPEND=">=virtual/jdk-1.7
+ ${CP_DEPEND}
+ test? (
+ ~dev-java/jackson-annotations-${PV}:${SLOT}
+ dev-java/junit:4
+ )"
+
+S="${WORKDIR}/${PN}-${P}"
+JAVA_SRC_DIR="src/main/java"
+
+src_prepare() {
+ default
+
+ sed -e 's:@package@:com.fasterxml.jackson.dataformat.yaml:g' \
+ -e "s:@projectversion@:${PV}:g" \
+ -e 's:@projectgroupid@:com.fasterxml.jackson.dataformat:g' \
+ -e 's:@projectartifactid@:jackson-dataformat-yaml:g' \
+ "${JAVA_SRC_DIR}/com/fasterxml/jackson/dataformat/yaml/PackageVersion.java.in" \
+ > "${JAVA_SRC_DIR}/com/fasterxml/jackson/dataformat/yaml/PackageVersion.java" || die
+
+ # Requires OPS4J Pax Exam, which isn't packaged yet.
+ rm "src/test/java/com/fasterxml/jackson/dataformat/yaml/failsafe/OSGiIT.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 jackson-annotations-${SLOT},junit-4,${JAVA_GENTOO_CLASSPATH})"
+ local TESTS=$(find * -name "*Test*.java" ! -name "*TestBase*" ! -path "*/failing/*")
+ TESTS="${TESTS//.java}"
+ TESTS="${TESTS//\//.}"
+
+ ejavac -cp "${CP}" -d . $(find * -name "*.java")
+ ejunit4 -classpath "${CP}" ${TESTS}
+}