blob: 897b153ad72ec73214d151658bca16ff54d00ccc (
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
30
31
32
33
34
35
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/edtftpj/edtftpj-1.4.2.ebuild,v 1.4 2004/10/29 12:47:41 axxo Exp $
inherit java-pkg
DESCRIPTION="FTP client library written in Java"
SRC_URI="http://www.enterprisedt.com/products/edtftpj/download/${P}.tar.gz"
HOMEPAGE="http://www.enterprisedt.com"
LICENSE="LGPL-2"
KEYWORDS="~x86 ~sparc ~ppc ~amd64"
IUSE="jikes doc"
DEPEND="virtual/jdk
>=dev-java/ant-1.5"
RDEPEND="virtual/jdk"
SLOT="0"
src_compile() {
cd ${S}/src
local antflags="jar"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
use doc && antflags="${antflags} javadocs"
ant ${antflags} || die "compilation failed"
}
src_install() {
cd ${S}
use doc && java-pkg_dohtml -r build/doc/api
dodoc doc/*.TXT
insinto /usr/share/doc/${PF}
doins doc/*.pdf
mv ${S}/build/${P}.jar ${S}/build/${PN}.jar
java-pkg_dojar build/${PN}.jar
}
|