commit:     7ad0e0642dbf8be6ff209ba2f26e2aeba38e07d7
Author:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
AuthorDate: Sun Oct  9 08:28:34 2016 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Oct  9 09:35:45 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ad0e064

dev-java/swingx-ws: bump jdom dependency from 1.0 to 0.

Package-Manager: portage-2.3.0

 .../swingx-ws/swingx-ws-1.0_p20110515-r1.ebuild    | 65 ++++++++++++++++++++++
 1 file changed, 65 insertions(+)

diff --git a/dev-java/swingx-ws/swingx-ws-1.0_p20110515-r1.ebuild 
b/dev-java/swingx-ws/swingx-ws-1.0_p20110515-r1.ebuild
new file mode 100644
index 00000000..8eeda25
--- /dev/null
+++ b/dev-java/swingx-ws/swingx-ws-1.0_p20110515-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+MY_P="${PN}-2011_05_15-src"
+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="mirror://sourceforge/bt747/Development/${MY_P}.zip"
+LICENSE="LGPL-2.1"
+SLOT="bt747"
+KEYWORDS="~amd64 ~x86"
+
+CDEPEND="
+       dev-java/jdom:0
+       dev-java/json:0
+       dev-java/rome:0
+       dev-java/jtidy:0
+       dev-java/xerces:2
+       dev-java/swingx:1.6
+       dev-java/swing-layout:1
+       dev-java/swingx-beaninfo:0
+       dev-java/commons-httpclient:3
+       dev-java/xml-commons-external:1.4"
+
+RDEPEND="
+       ${CDEPEND}
+       >=virtual/jre-1.6"
+
+DEPEND="
+       ${CDEPEND}
+       >=virtual/jdk-1.6"
+
+S="${WORKDIR}/${MY_P}/src"
+JAVA_SRC_DIR="beaninfo java"
+JAVA_GENTOO_CLASSPATH="commons-httpclient-3,jdom-1.0,json,jtidy,rome,swing-layout-1,swingx-1.6,swingx-beaninfo,xerces-2,xml-commons-external-1.4"
+
+java_prepare() {
+       java-pkg_clean "${WORKDIR}"
+
+       # SwingWorker has been built-in since Java 6.
+       find java -name "*.java" -exec sed -i -r 
"s:org\.jdesktop\.swingworker\.:javax.swing.:g" {} + || die
+
+       # Fixes for newer swingx-beaninfo.
+       sed -i "s:BeanInfoSupport:org.jdesktop.beans.\0:g" 
beaninfo/org/jdesktop/swingx/*.java || die
+       find beaninfo -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"
 \
+               java/org/jdesktop/swingx/mapviewer/AbstractTileFactory.java || 
die
+}
+
+src_compile() {
+       java-pkg-simple_src_compile
+
+       local DIR
+       for DIR in ${JAVA_SRC_DIR}; do
+               java-pkg_addres ${PN}.jar ${DIR}
+       done
+}

Reply via email to