/[gentoo-x86]/dev-java/jvyaml/jvyaml-0.2.1-r1.ebuild
Gentoo

Contents of /dev-java/jvyaml/jvyaml-0.2.1-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Mon May 7 16:20:17 2007 UTC (12 years, 11 months ago) by caster
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +6 -7 lines
Migrate to split-ant.
(Portage version: 2.1.2.7)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/jvyaml/jvyaml-0.2.1-r1.ebuild,v 1.4 2007/03/09 11:35:06 betelgeuse Exp $
4
5 JAVA_PKG_IUSE="source test"
6 inherit java-pkg-2 java-ant-2 eutils
7
8 DESCRIPTION="Java YAML parser and emitter"
9 HOMEPAGE="https://jvyaml.dev.java.net/"
10 SRC_URI="https://${PN}.dev.java.net/files/documents/5215/41455/${PN}-src-${PV}.tar.gz"
11 LICENSE="MIT"
12 SLOT="0"
13 KEYWORDS="~amd64 ~ppc ~x86"
14 IUSE=""
15
16 DEPEND=">=virtual/jdk-1.4
17 test? (
18 dev-java/ant-junit
19 =dev-java/junit-3*
20 )"
21 RDEPEND=">=virtual/jre-1.4"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 # https://jvyaml.dev.java.net/issues/show_bug.cgi?id=6
27 epatch "${FILESDIR}/${PN}-0.2-tests.patch"
28
29 # https://jvyaml.dev.java.net/issues/show_bug.cgi?id=5
30 epatch "${FILESDIR}/${P}-tests.patch"
31
32 cd lib
33 rm -v *.jar || die
34 use test && java-pkg_jar-from --build-only junit
35 }
36
37 #no javadoc target
38
39 src_install() {
40 java-pkg_dojar lib/${PN}.jar
41 dodoc README CREDITS || die
42 use source && java-pkg_dosrc src/*
43 }
44
45 src_test() {
46 ANT_TASKS="ant-junit" eant test
47 }

  ViewVC Help
Powered by ViewVC 1.1.20