summaryrefslogtreecommitdiff
blob: c5275947926bb8d3556af23e38f407cd07d7c0b9 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

JAVA_PKG_IUSE="doc source"

inherit java-pkg-2 java-pkg-simple

MY_PN="apache-${PN}"

DESCRIPTION="Apache Rat is a release audit tool, focused on licenses."
HOMEPAGE="https://creadur.apache.org/rat/"

SRC_URI="
	https://repo1.maven.org/maven2/org/apache/${PN}/${MY_PN}-core/${PV}/${MY_PN}-core-${PV}-sources.jar
	https://repo1.maven.org/maven2/org/apache/${PN}/${MY_PN}-tasks/${PV}/${MY_PN}-tasks-${PV}-sources.jar"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

CDEPEND="
	dev-java/ant-core:0
	dev-java/commons-io:1
	dev-java/commons-cli:1
	dev-java/commons-lang:2.1
	dev-java/commons-compress:0
	dev-java/commons-collections:0
"

RDEPEND="
	${CDEPEND}
	>=virtual/jre-1.6"

DEPEND="
	${CDEPEND}
	app-arch/unzip
	>=virtual/jdk-1.6"

JAVA_GENTOO_CLASSPATH="
	ant-core
	commons-io-1
	commons-cli-1
	commons-compress
	commons-lang-2.1
	commons-collections
"

src_install() {
	java-pkg-simple_src_install
	java-pkg_dolauncher "${MY_PN}" --main org.apache.rat.Report
}