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

EAPI=4

JAVA_PKG_IUSE=""

inherit java-pkg-2 java-ant-2

DESCRIPTION="Provides a common base for graphical component to build a graphical console."
HOMEPAGE="http://dev.artenum.com/projects/jrosetta"
SRC_URI="http://maven.artenum.com/content/groups/public/com/artenum/${PN}/${PV}/${P}-sources.jar"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="source"

DEPEND=">=virtual/jdk-1.5
	app-arch/unzip
	${COMMON_DEPEND}"

RDEPEND=">=virtual/jre-1.5
	${COMMON_DEPEND}"

EANT_BUILD_TARGET="compile package"
JAVA_ANT_BSFIX_EXTRA_ARGS="--maven-cleaning"

java_prepare () {
	cp "${FILESDIR}/api-build.xml" modules/jrosetta-api/build.xml || die
	cp "${FILESDIR}/engine-build.xml" modules/jrosetta-engine/build.xml || die
	cp "${FILESDIR}/build.xml" . || die
	echo "${PV}" > modules/jrosetta-engine/src/main/resources/version.txt || die
}

src_install () {
	java-pkg_newjar "modules/jrosetta-api/target/jrosetta-api-${PV}.jar" \
	jrosetta-api.jar
	java-pkg_newjar "modules/jrosetta-engine/target/jrosetta-engine-${PV}.jar" \
	jrosetta-engine.jar
}