1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc source"
8 inherit java-pkg-2 java-pkg-simple
10 DESCRIPTION="Utilities and widgets to integrate Swing GUIs with web applications"
11 HOMEPAGE="https://java.net/projects/swingx-ws/"
12 SRC_URI="http://central.maven.org/maven2/org/swinglabs/${PN}/${PV}/${P}-sources.jar"
15 KEYWORDS="~amd64 ~x86"
18 dev-java/commons-httpclient:3
24 dev-java/swingx-beaninfo:0
26 dev-java/xml-commons-external:1.4"
40 # Fixes for newer swingx-beaninfo.
41 sed -i "s:BeanInfoSupport:org.jdesktop.beans.\0:g" org/jdesktop/swingx/*.java || die
42 find -name "*.java" -exec sed -i -r "s:org\.jdesktop\.swingx\.(editors|BeanInfoSupport|EnumerationValue):org.jdesktop.beans.\1:g" {} + || die
44 # GraphicsUtilities moved in later SwingX versions.
45 sed -i "s:org\.jdesktop\.swingx\.graphics\.GraphicsUtilities:org.jdesktop.swingx.util.GraphicsUtilities:g" \
46 org/jdesktop/swingx/mapviewer/AbstractTileFactory.java || die
48 java-pkg-2_src_prepare
52 java-pkg-simple_src_compile
53 java-pkg_addres ${PN}.jar .