summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-10-30 17:28:12 +0000
committerJames Le Cuirot <chewi@gentoo.org>2016-10-30 20:29:29 +0000
commit8b1651322a9283d4bab26f575f18ae6e961e0fee (patch)
tree4699092979946f841a47209ee765e6341932ac13 /dev-java/swingx-ws/swingx-ws-1.0-r1.ebuild
parentdev-java/swingx-ws: Fix jdom dependency (bug #597890), EAPI bump (diff)
downloadgentoo-8b1651322a9283d4bab26f575f18ae6e961e0fee.tar.gz
gentoo-8b1651322a9283d4bab26f575f18ae6e961e0fee.tar.bz2
gentoo-8b1651322a9283d4bab26f575f18ae6e961e0fee.zip
dev-java/swingx-ws: Restore 0 SLOT that monsieurp erroneously deleted
Package-Manager: portage-2.3.2
Diffstat (limited to 'dev-java/swingx-ws/swingx-ws-1.0-r1.ebuild')
-rw-r--r--dev-java/swingx-ws/swingx-ws-1.0-r1.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-java/swingx-ws/swingx-ws-1.0-r1.ebuild b/dev-java/swingx-ws/swingx-ws-1.0-r1.ebuild
new file mode 100644
index 000000000000..b187832b805d
--- /dev/null
+++ b/dev-java/swingx-ws/swingx-ws-1.0-r1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+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"
+
+CP_DEPEND="
+ dev-java/commons-httpclient:3
+ dev-java/jdom: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="
+ ${CP_DEPEND}
+ >=virtual/jre-1.6"
+
+DEPEND="
+ ${CP_DEPEND}
+ >=virtual/jdk-1.6
+ app-arch/unzip"
+
+src_prepare() {
+ default
+
+ # 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
+
+ java-pkg-2_src_prepare
+}
+
+src_compile() {
+ java-pkg-simple_src_compile
+ java-pkg_addres ${PN}.jar .
+}