summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@gentoo.org>2005-03-29 06:10:39 +0000
committerSaleem Abdulrasool <compnerd@gentoo.org>2005-03-29 06:10:39 +0000
commit41a9ba1ac73f888176a421a9497526abffb314b4 (patch)
tree59e3a8b51dccde65c9095334275e0305a8f28ae2 /dev-java/swidgets/swidgets-0.1.ebuild
parentFixed bug #58157 (xine-ui desktop / depend fixes). Thanks to Diego for the e... (diff)
downloadhistorical-41a9ba1ac73f888176a421a9497526abffb314b4.tar.gz
historical-41a9ba1ac73f888176a421a9497526abffb314b4.tar.bz2
historical-41a9ba1ac73f888176a421a9497526abffb314b4.zip
The widgets! Oh my, the widgets!
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'dev-java/swidgets/swidgets-0.1.ebuild')
-rw-r--r--dev-java/swidgets/swidgets-0.1.ebuild54
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-java/swidgets/swidgets-0.1.ebuild b/dev-java/swidgets/swidgets-0.1.ebuild
new file mode 100644
index 000000000000..a088d2a91ba4
--- /dev/null
+++ b/dev-java/swidgets/swidgets-0.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/swidgets/swidgets-0.1.ebuild,v 1.1 2005/03/29 06:10:39 compnerd Exp $
+
+inherit java-pkg
+
+DESCRIPTION="Various reusable SWING components"
+HOMEPAGE="http://swidgets.tigris.org"
+SRC_URI="http://swidgets.tigris.org/files/documents/1472/18566/swidgets-${PV}-src.zip"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="jikes"
+
+DEPEND="${RDEPEND}
+ virtual/jdk
+ app-arch/unzip"
+RDEPEND="virtual/jre
+ dev-java/toolbar"
+
+src_unpack() {
+ unpack ${A} || die "Unpack failed!"
+
+ # Remove the CVS directories
+ find . -name 'CVS' | xargs rmdir
+
+ # Remove the unneeded directory
+ mv src/org ${S}
+ rm -rf src
+
+ # Copy the build.xml
+ cp ${FILESDIR}/build.xml ${S} || die "Unable to copy the build file!"
+}
+
+src_compile() {
+ cd ${S}
+
+ touch build.properties
+ echo "src=." >> build.properties
+ echo "dest=dest" >> build.properties
+ echo "build=build" >> build.properties
+ echo "version=${PV}" >> build.properties
+ echo "classpath=$(java-config -p toolbar)" >> build.properties
+
+ local antflags=""
+ $(use jikes) && antflags="${antflags} -Dbuild.compiler=jikes"
+
+ ant ${antflags} -f build.xml || die "Compile failed!"
+}
+
+src_install() {
+ java-pkg_dojar dest/swidgets-${PV}.jar
+}