/[gentoo-x86]/dev-java/jsap/jsap-2.1.ebuild
Gentoo

Contents of /dev-java/jsap/jsap-2.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Apr 24 15:29:43 2010 UTC (4 years, 3 months ago) by grobian
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +2 -2 lines
Marked ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris, bug #314093
(Portage version: 2.2.00.15842-prefix/cvs/Darwin powerpc)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/jsap/jsap-2.1.ebuild,v 1.7 2010/02/09 20:29:21 josejx Exp $
4
5 JAVA_PKG_IUSE="doc source"
6 inherit eutils java-pkg-2 java-ant-2
7
8 DESCRIPTION="Java Simple Arguments Parser (JSAP)"
9 HOMEPAGE="http://sourceforge.net/projects/jsap"
10 MY_PN=JSAP
11 MY_P=${MY_PN}-${PV}
12 SRC_URI="mirror://sourceforge/${PN}/${MY_P}-src.tar.gz"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~sparc-solaris ~x86-solaris"
17 IUSE="test"
18
19 COMMON_DEP="
20 >=dev-java/ant-core-1.7.0
21 dev-java/xstream"
22
23 DEPEND=">=virtual/jdk-1.4
24 ${COMMON_DEP}
25 =dev-java/snip-0.11*
26 =dev-java/rundoc-0.11*
27 test? (
28 dev-java/ant-junit
29 =dev-java/junit-3.8*
30 )"
31
32 RDEPEND=">=virtual/jre-1.4
33 ${COMMON_DEP}"
34
35 S=${WORKDIR}/${MY_P}
36
37 src_unpack() {
38 unpack ${A}
39 cd "${S}"
40 epatch "${FILESDIR}/${P}-build.xml.patch"
41 java-ant_rewrite-classpath
42 cd "${S}/lib"
43
44 rm -v *.jar
45 }
46
47 EANT_BUILD_TARGET="jar"
48 EANT_JAVADOC_TARGET="javadoc"
49 EANT_ANT_TASKS="rundoc snip"
50 EANT_GENTOO_CLASSPATH="ant-core xstream"
51
52 src_test() {
53 ANT_TASKS="ant-junit rundoc snip" eant test
54 }
55
56 src_install() {
57 java-pkg_newjar dist/${MY_P}.jar
58
59 if use doc; then
60 dohtml doc/*.html
61 java-pkg_dojavadoc doc/javadoc
62 dosym /usr/share/doc/${PF}/html/api /usr/share/doc/${PF}/html/javadoc
63 fi
64
65 use source && java-pkg_dosrc src/java/com
66 }

  ViewVC Help
Powered by ViewVC 1.1.20