summaryrefslogtreecommitdiff
blob: 49bd4a4d83dcee9a41f53b884f4f223d63318575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/java-getopt/java-getopt-1.0.10.ebuild,v 1.1.1.1 2005/11/30 09:47:19 chriswhite Exp $

inherit java-pkg

DESCRIPTION="Java command line option parser"
HOMEPAGE="http://www.urbanophile.com/arenn/hacking/download.html"
SRC_URI="ftp://ftp.urbanophile.com/pub/arenn/software/sources/java-getopt-${PV}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="1"
DEPEND=">=virtual/jdk-1.2
	dev-java/ant-core"
RDEPEND=">=virtual/jre-1.2"
KEYWORDS="amd64 ppc x86"
IUSE=""

S=${WORKDIR}

src_compile() {
	mv gnu/getopt/buildx.xml build.xml
	ant all || die "failed to build"
}

src_install() {
	java-pkg_dojar build/lib/gnu.getopt.jar
	java-pkg_dohtml -r build/api/*
	dodoc gnu/getopt/COPYING.LIB gnu/getopt/ChangeLog gnu/getopt/README
}