blob: b9844676df07ca9b31968cb391d8c6da9bf9f969 (
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
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI="5"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="Utilities and widgets to integrate Swing GUIs with web applications"
HOMEPAGE="https://java.net/projects/swingx-ws/"
SRC_URI="http://central.maven.org/maven2/org/swinglabs/${PN}/${PV}/${P}-sources.jar"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
CDEPEND="dev-java/commons-httpclient:3
dev-java/jdom:1.0
dev-java/json:0
dev-java/jtidy:0
dev-java/rome:0
dev-java/swingx:1.6
dev-java/swingx-beaninfo:0
dev-java/xerces:2
dev-java/xml-commons-external:1.4"
RDEPEND=">=virtual/jre-1.6
${CDEPEND}"
DEPEND=">=virtual/jdk-1.6
${CDEPEND}
app-arch/unzip"
JAVA_GENTOO_CLASSPATH="commons-httpclient-3,jdom-1.0,json,jtidy,rome,swingx-1.6,swingx-beaninfo,xerces-2,xml-commons-external-1.4"
java_prepare() {
# Fixes for newer swingx-beaninfo.
sed -i "s:BeanInfoSupport:org.jdesktop.beans.\0:g" org/jdesktop/swingx/*.java || die
find -name "*.java" -exec sed -i -r "s:org\.jdesktop\.swingx\.(editors|BeanInfoSupport|EnumerationValue):org.jdesktop.beans.\1:g" {} + || die
# GraphicsUtilities moved in later SwingX versions.
sed -i "s:org\.jdesktop\.swingx\.graphics\.GraphicsUtilities:org.jdesktop.swingx.util.GraphicsUtilities:g" \
org/jdesktop/swingx/mapviewer/AbstractTileFactory.java || die
}
src_compile() {
java-pkg-simple_src_compile
java-pkg_addres ${PN}.jar .
}
|