diff options
author | Sebastian Pipping <sebastian@pipping.org> | 2013-02-16 11:17:28 +0100 |
---|---|---|
committer | Sebastian Pipping <sebastian@pipping.org> | 2013-02-16 20:12:11 +0100 |
commit | 8b82fc2d1ca1f10cecb6221725f761950f5cf871 (patch) | |
tree | 896146607ee437cc7cf043f1a1b8043566258bb3 /dev-java | |
parent | dev-java/laf-widget: 3.0 (diff) | |
download | betagarden-8b82fc2d1ca1f10cecb6221725f761950f5cf871.tar.gz betagarden-8b82fc2d1ca1f10cecb6221725f761950f5cf871.tar.bz2 betagarden-8b82fc2d1ca1f10cecb6221725f761950f5cf871.zip |
dev-java/swingx: 0.8.20070125-r1
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/swingx/Manifest | 1 | ||||
-rw-r--r-- | dev-java/swingx/files/swingx-0.8.20070125-SubstanceMonthViewUI.patch | 31 | ||||
-rw-r--r-- | dev-java/swingx/metadata.xml | 8 | ||||
-rw-r--r-- | dev-java/swingx/swingx-0.8.20070125-r1.ebuild | 60 |
4 files changed, 100 insertions, 0 deletions
diff --git a/dev-java/swingx/Manifest b/dev-java/swingx/Manifest new file mode 100644 index 0000000..74b4799 --- /dev/null +++ b/dev-java/swingx/Manifest @@ -0,0 +1 @@ +DIST swingx-0.8.20070125.tar.xz 641952 SHA256 ef68abb3310bc28a24cf15237056d74bdb4818e24132c9503e7e4cda9c19c1c3 SHA512 84d062f1e04981f489aed5c5ebe94aaeb96360b4d5adf9654f451c20acbebe78a9d91be321febf685464640c28ff33b9a7cb72971df49b18019fdc9c9550a39e WHIRLPOOL 94dd7c3503da710e3198b431d184bc5e63d027a23492c570e158074557ddc2ffce5ce7f68944fff26e4353928482beff0a6c705e316d0b219fc61d68cb94ed34 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 +} |