public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/betagarden:master commit in: dev-java/swingx/, dev-java/swingx/files/
@ 2013-02-17  4:43 Sebastian Pipping
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Pipping @ 2013-02-17  4:43 UTC (permalink / raw
  To: gentoo-commits

commit:     8b82fc2d1ca1f10cecb6221725f761950f5cf871
Author:     Sebastian Pipping <sebastian <AT> pipping <DOT> org>
AuthorDate: Sat Feb 16 10:17:28 2013 +0000
Commit:     Sebastian Pipping <sping <AT> gentoo <DOT> org>
CommitDate: Sat Feb 16 19:12:11 2013 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=8b82fc2d

dev-java/swingx: 0.8.20070125-r1

---
 .../swingx-0.8.20070125-SubstanceMonthViewUI.patch |   31 ++++++++++
 dev-java/swingx/metadata.xml                       |    8 +++
 dev-java/swingx/swingx-0.8.20070125-r1.ebuild      |   60 ++++++++++++++++++++
 3 files changed, 99 insertions(+), 0 deletions(-)

diff --git a/dev-java/swingx/files/swingx-0.8.20070125-SubstanceMonthViewUI.patch b/dev-java/swingx/files/swingx-0.8.20070125-SubstanceMonthViewUI.patch
new file mode 100644
index 0000000..58e3e8a
--- /dev/null
+++ b/dev-java/swingx/files/swingx-0.8.20070125-SubstanceMonthViewUI.patch
@@ -0,0 +1,31 @@
+From cc1ee1f8752f41db9b1fbc9e3b51c9ffeeee96fb Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 16 Feb 2013 19:53:55 +0100
+Subject: [PATCH] Fix access in BasicMonthViewUI for
+ org.jvnet.substance.swingx.SubstanceMonthViewUI
+
+---
+ src/java/org/jdesktop/swingx/plaf/basic/BasicMonthViewUI.java | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/java/org/jdesktop/swingx/plaf/basic/BasicMonthViewUI.java b/src/java/org/jdesktop/swingx/plaf/basic/BasicMonthViewUI.java
+index d42abb2..75e2091 100644
+--- a/src/java/org/jdesktop/swingx/plaf/basic/BasicMonthViewUI.java
++++ b/src/java/org/jdesktop/swingx/plaf/basic/BasicMonthViewUI.java
+@@ -84,8 +84,11 @@ public class BasicMonthViewUI extends MonthViewUI {
+     private MouseListener mouseListener;
+     private MouseMotionListener mouseMotionListener;
+     private Handler handler;
+-    private ImageIcon monthUpImage;
+-    private ImageIcon monthDownImage;
++
++    // "protected" needed for org.jvnet.substance.swingx.SubstanceMonthViewUI
++    protected ImageIcon monthUpImage;
++    protected ImageIcon monthDownImage;
++
+     private Rectangle dirtyRect = new Rectangle();
+     private Rectangle bounds = new Rectangle();
+     private Font derivedFont;
+-- 
+1.8.1.2
+

diff --git a/dev-java/swingx/metadata.xml b/dev-java/swingx/metadata.xml
new file mode 100644
index 0000000..16bcc9f
--- /dev/null
+++ b/dev-java/swingx/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer>
+		<email>sping@gentoo.org</email>
+		<name>Sebastian Pipping</name>
+	</maintainer>
+</pkgmetadata>

diff --git a/dev-java/swingx/swingx-0.8.20070125-r1.ebuild b/dev-java/swingx/swingx-0.8.20070125-r1.ebuild
new file mode 100644
index 0000000..6a5161d
--- /dev/null
+++ b/dev-java/swingx/swingx-0.8.20070125-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+
+inherit eutils java-pkg-2
+
+DESCRIPTION="SwingLabs Swing Component Extensions"
+HOMEPAGE="http://java.net/projects/swingx"
+SRC_URI="http://www.hartwork.org/public/${P}.tar.xz"
+# i.e. a snapshot of https://svn.java.net/svn/swingx~svn/tags/jw_before_default_swingx_renderer_25jan2007/
+
+LICENSE="|| ( LGPL-2.1 BSD ) Apache-2.0"
+SLOT="0.8"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="dev-java/swing-worker:0
+	dev-java/batik:1.7"
+
+DEPEND=">=virtual/jdk-1.5 ${COMMON_DEPEND}"
+RDEPEND=">=virtual/jre-1.5 ${COMMON_DEPEND}"
+
+S=${WORKDIR}/jw_before_default_swingx_renderer_25jan2007
+
+src_compile() {
+	epatch "${FILESDIR}"/${P}-SubstanceMonthViewUI.patch
+
+	local swing_worker_jar=$(java-pkg_getjar swing-worker swing-worker.jar)
+	local batik_jar=$(java-pkg_getjar batik-1.7 batik-all.jar)
+
+	find . -type f -name '*.java' | fgrep -v /src/test/ | while read i ; do
+		local source=${i##./}
+		local binary=${source%%.java}.class
+		[[ -e "${binary}" ]] && continue
+
+		echo "  JAVAC   ${binary}"
+		ejavac -classpath "src/java/:src/beaninfo/:${swing_worker_jar}:${batik_jar}" "${i}" || die
+	done
+}
+
+src_install() {
+	local jar_input=jar_input
+
+	find -type f \( \
+			-name '*.class' \
+			-o -name '*.gif' \
+			-o -name '*.png' \
+			-o -name '*.html' \
+			-o -name '*.properties' \) \
+			| fgrep -v /src/test/ | while read i ; do
+		local dir_part="$(dirname "${i}" | sed 's,^\./src/[^/]\+/,,')"
+		mkdir -p "${jar_input}/${dir_part}" || die
+		cp --no-clobber "${i}" "${jar_input}/${dir_part}/" || die
+	done
+
+	( cd "${jar_input}" && jar cf ../${PN}.jar . ) || die
+	java-pkg_dojar ${PN}.jar || die
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] proj/betagarden:master commit in: dev-java/swingx/, dev-java/swingx/files/
@ 2014-06-25 11:15 Justin Lecher
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Lecher @ 2014-06-25 11:15 UTC (permalink / raw
  To: gentoo-commits

commit:     4a0234dee7a7c0d4946e5eeafc00d7d4f06089ef
Author:     Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 25 11:14:57 2014 +0000
Commit:     Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Jun 25 11:14:57 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=4a0234de

Readd dev-java/swingx because dev-java/substance depends on it

Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>

---
 .../swingx-0.8.20070125-SubstanceMonthViewUI.patch | 31 +++++++++++
 dev-java/swingx/metadata.xml                       |  8 +++
 dev-java/swingx/swingx-0.8.20070125-r1.ebuild      | 60 ++++++++++++++++++++++
 3 files changed, 99 insertions(+)

diff --git a/dev-java/swingx/files/swingx-0.8.20070125-SubstanceMonthViewUI.patch b/dev-java/swingx/files/swingx-0.8.20070125-SubstanceMonthViewUI.patch
new file mode 100644
index 0000000..58e3e8a
--- /dev/null
+++ b/dev-java/swingx/files/swingx-0.8.20070125-SubstanceMonthViewUI.patch
@@ -0,0 +1,31 @@
+From cc1ee1f8752f41db9b1fbc9e3b51c9ffeeee96fb Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 16 Feb 2013 19:53:55 +0100
+Subject: [PATCH] Fix access in BasicMonthViewUI for
+ org.jvnet.substance.swingx.SubstanceMonthViewUI
+
+---
+ src/java/org/jdesktop/swingx/plaf/basic/BasicMonthViewUI.java | 7 +++++--
+ 1 file changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/src/java/org/jdesktop/swingx/plaf/basic/BasicMonthViewUI.java b/src/java/org/jdesktop/swingx/plaf/basic/BasicMonthViewUI.java
+index d42abb2..75e2091 100644
+--- a/src/java/org/jdesktop/swingx/plaf/basic/BasicMonthViewUI.java
++++ b/src/java/org/jdesktop/swingx/plaf/basic/BasicMonthViewUI.java
+@@ -84,8 +84,11 @@ public class BasicMonthViewUI extends MonthViewUI {
+     private MouseListener mouseListener;
+     private MouseMotionListener mouseMotionListener;
+     private Handler handler;
+-    private ImageIcon monthUpImage;
+-    private ImageIcon monthDownImage;
++
++    // "protected" needed for org.jvnet.substance.swingx.SubstanceMonthViewUI
++    protected ImageIcon monthUpImage;
++    protected ImageIcon monthDownImage;
++
+     private Rectangle dirtyRect = new Rectangle();
+     private Rectangle bounds = new Rectangle();
+     private Font derivedFont;
+-- 
+1.8.1.2
+

diff --git a/dev-java/swingx/metadata.xml b/dev-java/swingx/metadata.xml
new file mode 100644
index 0000000..16bcc9f
--- /dev/null
+++ b/dev-java/swingx/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer>
+		<email>sping@gentoo.org</email>
+		<name>Sebastian Pipping</name>
+	</maintainer>
+</pkgmetadata>

diff --git a/dev-java/swingx/swingx-0.8.20070125-r1.ebuild b/dev-java/swingx/swingx-0.8.20070125-r1.ebuild
new file mode 100644
index 0000000..6a5161d
--- /dev/null
+++ b/dev-java/swingx/swingx-0.8.20070125-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+
+inherit eutils java-pkg-2
+
+DESCRIPTION="SwingLabs Swing Component Extensions"
+HOMEPAGE="http://java.net/projects/swingx"
+SRC_URI="http://www.hartwork.org/public/${P}.tar.xz"
+# i.e. a snapshot of https://svn.java.net/svn/swingx~svn/tags/jw_before_default_swingx_renderer_25jan2007/
+
+LICENSE="|| ( LGPL-2.1 BSD ) Apache-2.0"
+SLOT="0.8"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="dev-java/swing-worker:0
+	dev-java/batik:1.7"
+
+DEPEND=">=virtual/jdk-1.5 ${COMMON_DEPEND}"
+RDEPEND=">=virtual/jre-1.5 ${COMMON_DEPEND}"
+
+S=${WORKDIR}/jw_before_default_swingx_renderer_25jan2007
+
+src_compile() {
+	epatch "${FILESDIR}"/${P}-SubstanceMonthViewUI.patch
+
+	local swing_worker_jar=$(java-pkg_getjar swing-worker swing-worker.jar)
+	local batik_jar=$(java-pkg_getjar batik-1.7 batik-all.jar)
+
+	find . -type f -name '*.java' | fgrep -v /src/test/ | while read i ; do
+		local source=${i##./}
+		local binary=${source%%.java}.class
+		[[ -e "${binary}" ]] && continue
+
+		echo "  JAVAC   ${binary}"
+		ejavac -classpath "src/java/:src/beaninfo/:${swing_worker_jar}:${batik_jar}" "${i}" || die
+	done
+}
+
+src_install() {
+	local jar_input=jar_input
+
+	find -type f \( \
+			-name '*.class' \
+			-o -name '*.gif' \
+			-o -name '*.png' \
+			-o -name '*.html' \
+			-o -name '*.properties' \) \
+			| fgrep -v /src/test/ | while read i ; do
+		local dir_part="$(dirname "${i}" | sed 's,^\./src/[^/]\+/,,')"
+		mkdir -p "${jar_input}/${dir_part}" || die
+		cp --no-clobber "${i}" "${jar_input}/${dir_part}/" || die
+	done
+
+	( cd "${jar_input}" && jar cf ../${PN}.jar . ) || die
+	java-pkg_dojar ${PN}.jar || die
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-06-25 11:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-25 11:15 [gentoo-commits] proj/betagarden:master commit in: dev-java/swingx/, dev-java/swingx/files/ Justin Lecher
  -- strict thread matches above, loose matches on Subject: below --
2013-02-17  4:43 Sebastian Pipping

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox