blob: 082c0c7f00beb9a7e3f8162ff95a1154d9e38a80 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/java-gnome/java-gnome-2.6.0.1.ebuild,v 1.6 2004/07/20 14:08:36 axxo Exp $
inherit eutils
DESCRIPTION="Java bindings for GNOME and GTK libraries that allow GNOME and GTK applications to be written in Java"
SRC_URI="mirror://sourceforge/java-gnome/${P}.tar.bz2"
HOMEPAGE="http://java-gnome.sourceforge.net/"
DEPEND="virtual/libc
>=gnome-base/libgnome-2.6.0
>=gnome-base/libgnomeui-2.6.0
>=gnome-base/libgnomecanvas-2.6.0
=gnome-extra/libgtkhtml-2.6*
>=gnome-base/libglade-2.0
virtual/jdk
>=app-text/docbook-sgml-utils-0.6.12
x11-libs/vte
app-arch/zip"
SLOT="2.6"
LICENSE="LGPL-2.1"
KEYWORDS="~x86"
IUSE=""
src_unpack() {
unpack ${A}
cd ${S} && epatch ${FILESDIR}/gentoo-java-gnome-2.6.0.1.patch || die "epatch failed"
}
src_compile() {
./configure \
--host=${CHOST} \
--prefix=/usr \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--without-gcj-compile \
--with-java-prefix=${JAVA_HOME} || die "./configure failed"
make || die
}
src_install() {
make prefix=${D}/usr install || die
dodir /usr/share/java-gnome/lib
mv ${D}/usr/share/java-gnome/*.jar ${D}/usr/share/java-gnome/lib/
cd ${S}/atk/src/java
zip -r ${D}/usr/share/java-gnome/lib/gtk-${PV}.src.zip *
cd ${S}/gdk/src/java
zip -r ${D}/usr/share/java-gnome/lib/gtk-${PV}.src.zip *
cd ${S}/gtk/src/java
zip -r ${D}/usr/share/java-gnome/lib/gtk-${PV}.src.zip *
cd ${S}/glib/src/java
zip -r ${D}/usr/share/java-gnome/lib/gtk-${PV}.src.zip *
cd ${S}/pango/src/java
zip -r ${D}/usr/share/java-gnome/lib/gtk-${PV}.src.zip *
cd ${S}/gnome/src/java
zip -r ${D}/usr/share/java-gnome/lib/gnome-${PV}.src.zip *
cd ${S}/gtkhtml/src/java
zip -r ${D}/usr/share/java-gnome/lib/gtkhtml-${PV}.src.zip *
cd ${S}/glade/src/java
zip -r ${D}/usr/share/java-gnome/lib/glade-${PV}.src.zip *
cd ${S}/gconf/src/java
zip -r ${D}/usr/share/java-gnome/lib/gconf-${PV}.src.zip *
cd ${S}/vte/src/java
zip -r ${D}/usr/share/java-gnome/lib/gnomevte-${PV}.src.zip *
dosym /usr/share/java-gnome/lib/gnome${SLOT}-${PV}.jar /usr/share/java-gnome/lib/gnome${SLOT}.jar
dosym /usr/lib/libgnomejava${SLOT}.so.${PV} /usr/lib/libgnomejava${SLOT}.so
echo "DESCRIPTION=${DESCRIPTION}" \
> ${D}/usr/share/java-gnome/package.env
echo "CLASSPATH=/usr/share/java-gnome/lib/gtk${SLOT}.jar:/usr/share/java-gnome/lib/gnome${SLOT}.jar:/usr/share/java-gnome/lib/glade${SLOT}.jar:/usr/share/java-gnome/lib/gconf${SLOT}.jar:/usr/share/java-gnome/lib/gnomevte${SLOT}.jar:/usr/share/java-gnome/lib/gtkhtml${SLOT}.jar" \
>> ${D}/usr/share/java-gnome/package.env
}
|