blob: 77fadea22dd1f2127c57dfb060b105f1822bb3e1 (
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
36
37
38
39
40
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/java-dep-check/java-dep-check-0.3.ebuild,v 1.2 2009/08/02 10:30:15 maekke Exp $
EAPI=1
inherit java-pkg-2
DESCRIPTION="Java Dependency checker"
HOMEPAGE="http://www.gentoo.org/proj/en/java"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
COMMON_DEP="
dev-java/commons-cli:1
dev-java/asm:3"
RDEPEND=">=virtual/jre-1.5
${COMMON_DEP}"
DEPEND=">=virtual/jdk-1.5
${COMMON_DEP}"
S="${WORKDIR}"
src_unpack() {
cp "${FILESDIR}/Main-${PV}.java" Main.java || die
}
src_compile() {
ejavac -cp $(java-pkg_getjars asm-3,commons-cli-1) -encoding UTF-8 -d . Main.java
jar cf ${PN}.jar javadepchecker/*.class || die "jar failed"
}
src_install() {
java-pkg_dojar ${PN}.jar
java-pkg_dolauncher ${PN} --main javadepchecker.Main
}
|