/[gentoo-x86]/dev-java/java-gnome/java-gnome-0.7.1.ebuild
Gentoo

Contents of /dev-java/java-gnome/java-gnome-0.7.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.16 - (show annotations) (download)
Thu Mar 18 06:53:40 2004 UTC (10 years, 1 month ago) by zx
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
Bug fixes, plus marking stable on x86

1 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-0.7.1.ebuild,v 1.15 2004/02/21 04:53:30 zx Exp $
4
5 IUSE="gnome"
6
7 S=${WORKDIR}/${P}
8 DESCRIPTION="Java bindings for GNOME and GTK libraries that allow GNOME and GTK applications to be written in Java"
9 SRC_URI="mirror://sourceforge/java-gnome/java-gnome-0.7.1.tar.gz"
10 HOMEPAGE="http://java-gnome.sourceforge.net/"
11 DEPEND="virtual/glibc
12 gnome? ( >=gnome-base/gnome-libs-1.4 )
13 virtual/jdk
14 >=dev-java/jikes-1.0
15 =dev-java/java-gtk-0.7.1"
16 RDEPEND="$DEPEND"
17 SLOT="0.7"
18 LICENSE="LGPL-2.1"
19 KEYWORDS="x86 ~ppc ~sparc"
20
21 src_compile() {
22 local myconf
23
24 #JAVAC="`which jikes` -classpath $CLASSPATH:." \
25 ./configure \
26 --host=${CHOST} \
27 --prefix=/usr \
28 --infodir=/usr/share/info \
29 --mandir=/usr/share/man \
30 --with-java-prefix=$JAVA_HOME \
31 $myconf || die "./configure failed"
32
33 myclasspath=`java-config --full-classpath=java-gtk | sed "s/\:/\\\\\:/g"`
34
35 cp src/Makefile src/Makefile.orig
36 sed -e "s|CLASSPATH = tools\:.|CLASSPATH = ${myclasspath}\:tools\:.|" \
37 < src/Makefile.orig > src/Makefile
38
39 cp src/tools/Makefile src/tools/Makefile.orig
40 sed -e "s|CLASSPATH = .|CLASSPATH = ${myclasspath}\:.|" \
41 < src/tools/Makefile.orig > src/tools/Makefile
42
43 cp test/Makefile test/Makefile.orig
44 sed -e "s|CLASSPATH = ../lib/gtk.jar\:../lib/gnome.jar|CLASSPATH = ${myclasspath}\:.\:../lib/gtk.jar\:../lib/gnome.jar|" \
45 < test/Makefile.orig > test/Makefile
46
47 cp src/other/{Base*.java,GStringArray.java,GListString.java} src/gnu/gdk/
48
49 make || die
50 }
51
52 src_install () {
53 make prefix=${D}/usr install || die
54
55 mv ${D}/usr/doc ${D}/usr/share/
56
57 rm ${D}/usr/share/java-gtk/gtk.jar
58 rm ${D}/usr/share/java-gtk/gnome.jar
59
60 rm ${D}/usr/lib/libGTKJava.so*
61
62 rm ${D}/usr/lib/libGNOMEJava.so
63 dosym /usr/lib/libGNOMEJava.so.${PV} /usr/lib/libGNOMEJava.so
64
65 rm ${D}/usr/share/java-gnome/gtk*.jar
66
67 echo "/usr/share/java-gnome/gnome-${PV}.jar:" \
68 > ${D}/usr/share/java-gnome/classpath.env
69
70 }

  ViewVC Help
Powered by ViewVC 1.1.20