summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/laf-widget/Manifest1
-rw-r--r--dev-java/laf-widget/files/laf-widget-3.0-jar-names.patch27
-rw-r--r--dev-java/laf-widget/laf-widget-3.0.ebuild54
-rw-r--r--dev-java/laf-widget/metadata.xml8
4 files changed, 90 insertions, 0 deletions
diff --git a/dev-java/laf-widget/Manifest b/dev-java/laf-widget/Manifest
new file mode 100644
index 0000000..dc1dd9e
--- /dev/null
+++ b/dev-java/laf-widget/Manifest
@@ -0,0 +1 @@
+DIST laf-widget-3.0.tar.bz2 11790486 SHA256 dc5122881090bd8ceaee90682beb03a4cf8318ffcfd5322eea9b63fb83780025 SHA512 1347b1850cfb30d276da6e0e70f3012603bd201ce64c8149659ed7b2f6879ef1cbb7bf3e09a1dc501a27bb722aa1db6b1b9f1d8a8a4c0989cc2f254bd87b02de WHIRLPOOL 381750c1b05c1ff5f0646027281bf6b8d32dbadeb36632fd548827ef7ecef05e80f69b1317df0bf81fff3a8ef6881ac97f419bea943ed429ab68293dedd5c45a
diff --git a/dev-java/laf-widget/files/laf-widget-3.0-jar-names.patch b/dev-java/laf-widget/files/laf-widget-3.0-jar-names.patch
new file mode 100644
index 0000000..d177680
--- /dev/null
+++ b/dev-java/laf-widget/files/laf-widget-3.0-jar-names.patch
@@ -0,0 +1,27 @@
+From dd77bb797ef2ee603b8908a1edda220e629fb3de Mon Sep 17 00:00:00 2001
+From: Sebastian Pipping <sebastian@pipping.org>
+Date: Sat, 16 Feb 2013 07:48:17 +0100
+Subject: [PATCH] Fix .jar dependencies
+
+---
+ build.xml | 3 +-
+ 1 file changed, 2 insertions(+), 1 deletions(-)
+
+diff --git a/build.xml b/build.xml
+index 9f78618..ae348aa 100644
+--- a/build.xml
++++ b/build.xml
+@@ -64,8 +64,9 @@
+
+ <path id="laf-widget.module.classpath">
+ <path refid="${module.jdk.classpath.laf-widget}" />
+- <pathelement location="${laf-widget.lib.dir}/asm-all-2.2.2.jar" />
++ <pathelement location="${laf-widget.lib.dir}/asm.jar" />
++ <pathelement location="${laf-widget.lib.dir}/asm-commons.jar" />
+ <pathelement location="${laf-widget.lib.dir}/ant.jar" />
+ </path>
+
+ <patternset id="excluded.from.module.laf-widget" />
+--
+1.8.1.2
+
diff --git a/dev-java/laf-widget/laf-widget-3.0.ebuild b/dev-java/laf-widget/laf-widget-3.0.ebuild
new file mode 100644
index 0000000..48d1645
--- /dev/null
+++ b/dev-java/laf-widget/laf-widget-3.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+
+inherit eutils java-pkg-2 java-ant-2
+
+DESCRIPTION="Support for common ''feel'' widgets in look-and-feel libraries"
+HOMEPAGE="http://java.net/projects/laf-widget"
+SRC_URI="http://www.hartwork.org/public/${P}.tar.bz2"
+# i.e. a snapshot of https://svn.java.net/svn/laf-widget~svn/tags/release_3_0_daffodil/
+
+LICENSE="BSD"
+SLOT="3.0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND="dev-java/ant-core:0
+ dev-java/asm:2.2"
+
+DEPEND=">=virtual/jdk-1.5 ${COMMON_DEPEND}"
+RDEPEND=">=virtual/jre-1.5 ${COMMON_DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-jar-names.patch
+
+ rm -v lib/*.jar || die
+ java-pkg_jar-from ant-core ant.jar lib/ant.jar || die
+ java-pkg_jar-from asm-2.2 asm.jar lib/asm.jar || die
+ java-pkg_jar-from asm-2.2 asm-commons.jar lib/asm-commons.jar|| die
+
+ # Fix java home
+ sed \
+ -e 's|\(<property name="jdk\.home\.java_version_1\.5\.0" value="\)[^"]\+\(" />\)|\1'"${JAVA_HOME}\2|" \
+ -i build.xml || die
+
+ # Remove hard-coded memory limits
+ sed \
+ -e 's|memoryMaximumSize="[^"]*" *||g' \
+ -i build.xml || die
+
+ java-pkg-2_src_prepare
+
+ mkdir -p build/classes || die
+}
+
+src_compile() {
+ eant || die
+}
+
+src_install() {
+ java-pkg_dojar drop/laf-widget*.jar || die
+}
diff --git a/dev-java/laf-widget/metadata.xml b/dev-java/laf-widget/metadata.xml
new file mode 100644
index 0000000..16bcc9f
--- /dev/null
+++ b/dev-java/laf-widget/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>