summaryrefslogtreecommitdiff
path: root/dev-java/snakeyaml
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/snakeyaml
parent30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff)
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/snakeyaml')
-rw-r--r--dev-java/snakeyaml/Manifest3
-rw-r--r--dev-java/snakeyaml/metadata.xml11
-rw-r--r--dev-java/snakeyaml/snakeyaml-1.16.ebuild49
3 files changed, 63 insertions, 0 deletions
diff --git a/dev-java/snakeyaml/Manifest b/dev-java/snakeyaml/Manifest
new file mode 100644
index 000000000000..67062f475acc
--- /dev/null
+++ b/dev-java/snakeyaml/Manifest
@@ -0,0 +1,3 @@
+DIST snakeyaml-1.16.tar.bz2 234954 BLAKE2B dea06c3501ceab4e92b4d125dc882ce7b7773d67ac5526fdf39fafb421f339fe892cfd3f8e80e413aa080fecbc94425842ccabd099d97e1c705eab7025c489e9 SHA512 77ef0b1fa2ebe7ab1618745c407436ac6965159e29e1271b0d571006b967bcd94658eb3a8047180ea7c3160eb66ecbac1f24414537a24a81c11fb735ce65e3a4
+EBUILD snakeyaml-1.16.ebuild 1306 BLAKE2B 29ca20cd99f68ec36a984d8c7c5dcfaf921c97b5b57fa045a4b139c5c9de700142de748d2cf3455aff6bcb5c18db90fda8a7267faf36b32ad7ff25eeb63f21ec SHA512 c01f82279a4990f1d6a23790d5c3eb69ffe996836fd1c594cc30bc72612398187b7ff2b8643e4593a79cdb9142ccfb536f6980e1d1818da0b57edbe5bed8f746
+MISC metadata.xml 320 BLAKE2B f5e0df5b735f9728165a2b8a6cd9c5f6d0142878f75ace80705d73e6948654f4761ef4fa4715b23ae4f5d97ed25e2ab6aa72582a80790a3f7a13d8c59f73ad40 SHA512 149372d821a11d3dfce7ec38ddb98c9b5b5e64c513fdd1e27b74dce17f398eec6d24b5a61ad62fb5e6e0ee31f206f1ed005db953f5f2358177f1a1d56420d5cc
diff --git a/dev-java/snakeyaml/metadata.xml b/dev-java/snakeyaml/metadata.xml
new file mode 100644
index 000000000000..8d37abe52245
--- /dev/null
+++ b/dev-java/snakeyaml/metadata.xml
@@ -0,0 +1,11 @@
+<?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>
+ <upstream>
+ <remote-id type="bitbucket">asomov/snakeyaml</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-java/snakeyaml/snakeyaml-1.16.ebuild b/dev-java/snakeyaml/snakeyaml-1.16.ebuild
new file mode 100644
index 000000000000..d0e257b8771e
--- /dev/null
+++ b/dev-java/snakeyaml/snakeyaml-1.16.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-pkg-simple vcs-snapshot
+
+DESCRIPTION="A YAML 1.1 parser and emitter for Java 5"
+HOMEPAGE="https://bitbucket.org/asomov/snakeyaml"
+SRC_URI="https://bitbucket.org/asomov/${PN}/get/v${PV}.tar.bz2 -> ${P}.tar.bz2"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="test"
+
+DEPEND=">=virtual/jdk-1.6
+ test? (
+ dev-java/joda-time:0
+ dev-java/junit:4 )"
+
+RDEPEND=">=virtual/jre-1.6"
+
+S="${WORKDIR}/${P}"
+JAVA_SRC_DIR="src/main/java"
+
+java_prepare() {
+ # Remove some tests with tricky dependencies.
+ rm -rv src/test/java/{examples/SpringTest.java,org/yaml/snakeyaml/{emitter/template/VelocityTest.java,issues/issue9}} || die
+}
+
+src_install() {
+ java-pkg-simple_src_install
+ dodoc README.md src/etc/announcement.msg
+}
+
+src_test() {
+ local DIR="src/test/java"
+ local CP="${DIR}/../resources:${DIR}:${PN}.jar:$(java-pkg_getjars joda-time,junit-4)"
+
+ local TESTS=$(find "${DIR}" -name "*Test.java" ! -name AbstractTest.java ! -name PyImportTest.java)
+ TESTS="${TESTS//src\/test\/java\/}"
+ TESTS="${TESTS//.java}"
+ TESTS="${TESTS//\//.}"
+
+ ejavac -cp "${CP}" -d "${DIR}" $(find "${DIR}" -name "*.java")
+ ejunit4 -classpath "${CP}" ${TESTS}
+}