blob: cbd78fd1e37f9417456d44a711da356aadd6d532 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=2
JAVA_PKG_IUSE="doc examples source"
inherit eutils java-pkg-2 java-ant-2
MY_PN="piccolo"
DESCRIPTION="A Structured 2D Graphics Framework"
HOMEPAGE="https://code.google.com/p/piccolo2d/"
SRC_URI="http://piccolo2d.googlecode.com/files/Piccolo2D.Java-${PV}.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
COMMON_DEPS="
dev-java/swt:3.5
java-virtuals/jdk-with-com-sun
"
RDEPEND=">=virtual/jre-1.4
${COMMON_DEPS}"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
${COMMON_DEPS}"
S="${WORKDIR}/${MY_PN}-${PV}"
# Needs X11
RESTRICT="test"
java_prepare() {
find -name '*.jar' -print -delete
epatch "${FILESDIR}/1.2.1-font-api.patch"
}
JAVA_ANT_REWRITE_CLASSPATH="true"
EANT_GENTOO_CLASSPATH="swt-3.5,jdk-with-com-sun"
EANT_BUILD_TARGET="${MY_PN} extras"
EANT_GENTOO_CLASSPATH_EXTRA="build/${MY_PN}.jar:build/${MY_PN}x.jar"
EANT_DOC_TARGET="api"
EANT_TEST_TARGET="runtests"
src_install() {
java-pkg_dojar build/*.jar
dodoc Readme.txt ReleaseNotes.txt || die
use doc && java-pkg_dojavadoc doc/api
use source && java-pkg_dosrc extras/edu src/edu
use examples && java-pkg_doexamples examples
}
|