blob: 73c145319daf88ba20c542fc1a9aa620a94c8def (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# 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-gtk/java-gtk-0.7.1.ebuild,v 1.3 2002/05/27 17:27:37 drobbins Exp $
S=${WORKDIR}/java-gnome-${PV}
DESCRIPTION="GTK+ bindings for Java"
SRC_URI="mirror://sourceforge/java-gnome/java-gnome-0.7.1.tar.gz"
HOMEPAGE="http://java-gnome.sf.net"
DEPEND="virtual/glibc
virtual/jdk
=x11-libs/gtk+-1.2*
>=dev-java/jikes-1.0"
RDEPEND="$DEPEND"
src_compile() {
local myconf
myconf="--with-gtk-only"
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/lib/libGTKJava.so
dosym /usr/lib/libGTKJava.so.${PV} /usr/lib/libGTKJava.so
echo "/usr/share/java-gtk/gtk-${PV}.jar:" \
> ${D}/usr/share/java-gtk/classpath.env
}
|