summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/jvyaml/jvyaml-0.2.1-r1.ebuild')
-rw-r--r--dev-java/jvyaml/jvyaml-0.2.1-r1.ebuild48
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-java/jvyaml/jvyaml-0.2.1-r1.ebuild b/dev-java/jvyaml/jvyaml-0.2.1-r1.ebuild
new file mode 100644
index 000000000000..09deaf74efdc
--- /dev/null
+++ b/dev-java/jvyaml/jvyaml-0.2.1-r1.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jvyaml/jvyaml-0.2.1-r1.ebuild,v 1.1 2007/03/08 05:54:25 nichoj Exp $
+
+inherit java-pkg-2 java-ant-2 eutils
+
+DESCRIPTION="Java YAML parser and emitter"
+HOMEPAGE="https://jvyaml.dev.java.net/"
+SRC_URI="https://${PN}.dev.java.net/files/documents/5215/41455/${PN}-src-${PV}.tar.gz"
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="source test"
+DEPEND=">=virtual/jdk-1.4
+ test? (
+ dev-java/ant
+ dev-java/junit
+ )
+ !test? (
+ dev-java/ant-core
+ )
+ source? ( app-arch/zip )"
+RDEPEND=">=virtual/jre-1.4"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ # https://jvyaml.dev.java.net/issues/show_bug.cgi?id=6
+ epatch ${FILESDIR}/${PN}-0.2-tests.patch
+
+ # https://jvyaml.dev.java.net/issues/show_bug.cgi?id=5
+ epatch ${FILESDIR}/${P}-tests.patch
+
+ cd lib
+ rm *.jar
+ use test && java-pkg_jar-from --build-only junit
+}
+
+src_install() {
+ java-pkg_dojar lib/${PN}.jar
+ dodoc README
+ dodoc CREDITS
+ use source && java-pkg_dosrc src/*
+}
+
+src_test() {
+ eant test
+}