aboutsummaryrefslogtreecommitdiff
blob: 1ee0f85102ec81f9f1c2e4c7582c38667831c1ed (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

# WARNING WARNING
# Upstream source unversioned

JAVA_PKG_IUSE="source"

inherit java-pkg-2 java-ant-2

DESCRIPTION="Annotations for Concurrency"
HOMEPAGE="http://www.jcip.net/"
SRC_URI="http://www.jcip.net/${PN}-src.jar"

LICENSE="CCPL-Attribution-ShareAlike-2.5"
#Confirm license before entering tree.
SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE=""

RDEPEND=">=virtual/jre-1.5"
DEPEND=">=virtual/jdk-1.5
	app-arch/unzip"

S="${WORKDIR}"

src_compile() {
	mkdir -p build
	ejavac -d build $(find net -name '*.java')
	jar -cf "${PN}.jar" -C build net
}
src_install() {
	java-pkg_dojar "${PN}.jar"
	use source && java-pkg_dosrc net
}