summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Trygve Kalleberg <karltk@gentoo.org>2002-01-18 16:07:47 +0000
committerKarl Trygve Kalleberg <karltk@gentoo.org>2002-01-18 16:07:47 +0000
commit0f3a00cbf3ff18d4e116e502d8daf9c08093bfa1 (patch)
treefffa4ca2005f0418a8fe5d41e350c16c1b101d0f /dev-java/java-gnome
parentFixed incorrect SRC_URI and bugs in src_unpack (diff)
downloadgentoo-2-0f3a00cbf3ff18d4e116e502d8daf9c08093bfa1.tar.gz
gentoo-2-0f3a00cbf3ff18d4e116e502d8daf9c08093bfa1.tar.bz2
gentoo-2-0f3a00cbf3ff18d4e116e502d8daf9c08093bfa1.zip
GNOME bindings for Java
Diffstat (limited to 'dev-java/java-gnome')
-rw-r--r--dev-java/java-gnome/files/digest-java-gnome-0.7.11
-rw-r--r--dev-java/java-gnome/java-gnome-0.7.1.ebuild63
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-java/java-gnome/files/digest-java-gnome-0.7.1 b/dev-java/java-gnome/files/digest-java-gnome-0.7.1
new file mode 100644
index 000000000000..c0b22d21254f
--- /dev/null
+++ b/dev-java/java-gnome/files/digest-java-gnome-0.7.1
@@ -0,0 +1 @@
+MD5 618a470eb2ecb2d985cad2585aa3623a java-gnome-0.7.1.tar.gz 745472
diff --git a/dev-java/java-gnome/java-gnome-0.7.1.ebuild b/dev-java/java-gnome/java-gnome-0.7.1.ebuild
new file mode 100644
index 000000000000..42642eb0ddaf
--- /dev/null
+++ b/dev-java/java-gnome/java-gnome-0.7.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2001 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Maintainer: Tools Team <tools@gentoo.org>
+# Author: Karl Trygve Kalleberg <karltk@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-0.7.1.ebuild,v 1.1 2002/01/18 16:07:47 karltk Exp $
+
+S=${WORKDIR}/${P}
+DESCRIPTION="This is a sample skeleton ebuild file"
+SRC_URI="http://prdownloads.sourceforge.net/java-gnome/java-gnome-0.7.1.tar.gz"
+HOMEPAGE="http://java-gnome.sf.net"
+
+DEPEND="virtual/glibc
+ gnome? ( >=gnome-base/gnome-libs-1.4 )
+ virtual/jdk
+ >=dev-java/jikes-1.0
+ =dev-java/java-gtk-0.7.1"
+
+RDEPEND="$DEPEND"
+
+src_compile() {
+ local myconf
+
+ JAVAC="`which jikes` -classpath $CLASSPATH:." \
+ ./configure \
+ --host=${CHOST} \
+ --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --with-java-prefix=$JAVA_HOME \
+ $myconf || die "./configure failed"
+
+ cp src/Makefile src/Makefile.orig
+ sed -e "s:CLASSPATH = tools\:.:CLASSPATH = ${CLASSPATH}\:tools\:.:" \
+ < src/Makefile.orig > src/Makefile
+
+ cp src/tools/Makefile src/tools/Makefile.orig
+ sed -e "s:CLASSPATH = .:CLASSPATH = ${CLASSPATH}\:.:" \
+ < src/tools/Makefile.orig > src/tools/Makefile
+
+ cp test/Makefile test/Makefile.orig
+ sed -e "s:CLASSPATH = ../lib/gtk.jar\:../lib/gnome.jar:CLASSPATH = ${CLASSPATH}\:.\:../lib/gtk.jar\:../lib/gnome.jar:" \
+ < test/Makefile.orig > test/Makefile
+
+ emake || die
+}
+
+src_install () {
+ make prefix=${D}/usr install || die
+
+ mv ${D}/usr/doc ${D}/usr/share/
+
+ rm ${D}/usr/share/java-gtk/gtk.jar
+ rm ${D}/usr/share/java-gtk/gnome.jar
+
+ rm ${D}/usr/lib/libGTKJava.so*
+
+ rm ${D}/usr/lib/libGNOMEJava.so
+ dosym /usr/lib/libGNOMEJava.so.${PV} /usr/lib/libGNOMEJava.so
+
+ echo "/usr/share/java-gnome/gnome-${PV}.jar:" \
+ > ${D}/usr/share/java-gnome/classpath.env
+
+}