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/snakeyaml/Manifest | 5 ++++ dev-java/snakeyaml/metadata.xml | 11 +++++++ dev-java/snakeyaml/snakeyaml-1.16.ebuild | 49 ++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 dev-java/snakeyaml/Manifest create mode 100644 dev-java/snakeyaml/metadata.xml create mode 100644 dev-java/snakeyaml/snakeyaml-1.16.ebuild (limited to 'dev-java/snakeyaml') diff --git a/dev-java/snakeyaml/Manifest b/dev-java/snakeyaml/Manifest new file mode 100644 index 000000000000..953a1b2570fe --- /dev/null +++ b/dev-java/snakeyaml/Manifest @@ -0,0 +1,5 @@ +DIST snakeyaml-1.16.tar.bz2 234954 SHA256 cc85e6c5e21ce16b84d2d8f73e145ce285a9f6e73b34fd22ed7859ff6ab1a4eb SHA512 77ef0b1fa2ebe7ab1618745c407436ac6965159e29e1271b0d571006b967bcd94658eb3a8047180ea7c3160eb66ecbac1f24414537a24a81c11fb735ce65e3a4 WHIRLPOOL 68e898d6142d7fa3c5a801e6772f1cbd4caf173f1ba84c4244a11d92b6d6d180e69df9fba2ce9c63337df90baa492851728dccd00201fd5c8abc640ec6e28d72 +EBUILD snakeyaml-1.16.ebuild 1306 SHA256 bdf03c198fbf207301765be5affe3e5dfbf148923b7c5a688c9d4a1222a8061d SHA512 c01f82279a4990f1d6a23790d5c3eb69ffe996836fd1c594cc30bc72612398187b7ff2b8643e4593a79cdb9142ccfb536f6980e1d1818da0b57edbe5bed8f746 WHIRLPOOL 5c5bb6b2815f5179ec27eb41cd415d73b547f3d1b859dc6ca471e96ab36f7f635fc28c4f52179b3b94308f43a207650b9a5d3b14caea92bedf700e95b10875aa +MISC ChangeLog 4760 SHA256 13df2c43dbd528107c28a9f667a970e34c5437644000f2262a8c54175bd2669b SHA512 a79c4464fea9c23a3943775b819b149d53636b55d6cafa42f30ea70c89b610a4c4bde15847b6a16d1c3e7c85cda3abf6392b4039d7979d4ffa4067cf43b3c093 WHIRLPOOL 5535cfa828653b469adf25e15f5d5a88e36f45d49fa38323d6229604b2ff55445dad0849f3f9f002891430c57eb458523e05a99fd5e024bc526aa70d7e2f80b8 +MISC ChangeLog-2015 1034 SHA256 ea8edf2a26197d20064016eeaf181e66965b66b0452b6f453a43e6db04a7bb3e SHA512 91f7172b3932926778879459d5ec6bd106fb29ccb4805f0b2007d00022a74202057d09b0e9644299a9e99785aa97e8250055d62d4231fde067fa735543b7615b WHIRLPOOL e46f444c9ceac5ac54f4f31a458ee29d85f2bf6981003c8e4df12762c1248b32903e057faf4acb653e8628b3b05e598afdf9fc5980e232cf1051625a590262e3 +MISC metadata.xml 320 SHA256 26be08ac182ce0d41828c0e2cef4d5ff99b2d983e4c0658efd8cf5c30e93fa24 SHA512 149372d821a11d3dfce7ec38ddb98c9b5b5e64c513fdd1e27b74dce17f398eec6d24b5a61ad62fb5e6e0ee31f206f1ed005db953f5f2358177f1a1d56420d5cc WHIRLPOOL 93b79f420ed8a86c1905dd3c25a0b59ec396ba62df540e890fe4a0bf10eab45078dbed2f0dbfc91d827d33cfcdb8de1c6e2acdc3a322f493f17386ccfc261560 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 @@ + + + + + java@gentoo.org + Java + + + asomov/snakeyaml + + 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} +} -- cgit v1.2.3