Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 98982 | Differences between
and this patch

Collapse All | Expand All

(-)dev-java/gnu-classpath/gnu-classpath-0.18.ebuild (-8 / +27 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2005 Gentoo Foundation
1
# Copyright 1999-2005 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/dev-java/gnu-classpath/gnu-classpath-0.15-r1.ebuild,v 1.4 2005/05/22 14:18:30 compnerd Exp $
3
# $Header: $
4
4
5
DESCRIPTION="Free core class libraries for use with virtual machines and compilers for the Java programming language"
5
DESCRIPTION="Free core class libraries for use with virtual machines and compilers for the Java programming language"
6
SRC_URI="ftp://ftp.gnu.org/gnu/classpath/classpath-${PV}.tar.gz"
6
SRC_URI="ftp://ftp.gnu.org/gnu/classpath/classpath-${PV}.tar.gz"
Lines 9-21 Link Here
9
LICENSE="GPL-2-with-linking-exception"
9
LICENSE="GPL-2-with-linking-exception"
10
SLOT="0"
10
SLOT="0"
11
KEYWORDS="~x86 ~sparc ~ppc ~amd64"
11
KEYWORDS="~x86 ~sparc ~ppc ~amd64"
12
IUSE="cairo gtk xml2"
12
IUSE="cairo gcj gtk2 xml2"
13
13
14
DEPEND="app-arch/zip
15
	    dev-java/jikes"
16
RDEPEND="cairo? ( >=x11-libs/cairo-0.5.0 )
14
RDEPEND="cairo? ( >=x11-libs/cairo-0.5.0 )
17
		 gtk? ( >=x11-libs/gtk+-2.4 media-libs/gdk-pixbuf )
15
		 gtk2? ( >=x11-libs/gtk+-2.4 )
18
		 xml2? ( >=dev-libs/libxml2-2.6.8 >=dev-libs/libxslt-1.1.11 )"
16
		 xml2? ( >=dev-libs/libxml2-2.6.8 >=dev-libs/libxslt-1.1.11 )"
17
DEPEND="${RDEPEND}
18
	app-arch/zip
19
	gcj? ( >=sys-devel/gcc-4.0.1 )
20
	!gcj? ( dev-java/jikes )"
19
21
20
S=${WORKDIR}/classpath-${PV}
22
S=${WORKDIR}/classpath-${PV}
21
23
Lines 25-35 Link Here
25
	# corresponding GCC) which cannot compile GNU Classpath correctly.
27
	# corresponding GCC) which cannot compile GNU Classpath correctly.
26
	# Another possibility would be ECJ (from Eclipse) which is not yet in
28
	# Another possibility would be ECJ (from Eclipse) which is not yet in
27
	# portage.
29
	# portage.
28
	local compiler="--with-jikes"
30
	declare compiler
31
	use gcj && compiler="--with-gcj" || compiler="--with-jikes"
29
32
30
	econf ${compiler} \
33
	econf ${compiler} \
31
		$(use_enable cairo gtk-cairo) \
34
		$(use_enable cairo gtk-cairo) \
32
		$(use_enable gtk gtk-peer) \
35
		$(use_enable gtk2 gtk-peer) \
33
		$(use_enable xml2 xmlj) \
36
		$(use_enable xml2 xmlj) \
34
		--enable-jni \
37
		--enable-jni \
35
		|| die "configure failed"
38
		|| die "configure failed"
Lines 37-43 Link Here
37
	emake || die "make failed"
40
	emake || die "make failed"
38
}
41
}
39
42
40
src_install () {
43
src_install() {
41
	einstall || die "make install failed"
44
	einstall || die "make install failed"
42
45
43
	if use cairo; then
46
	if use cairo; then
Lines 45-48 Link Here
45
		einfo "To use that functionality set the system property"
48
		einfo "To use that functionality set the system property"
46
		einfo "gnu.java.awt.peer.gtk.Graphics to Graphics2D at runtime."
49
		einfo "gnu.java.awt.peer.gtk.Graphics to Graphics2D at runtime."
47
	fi
50
	fi
51
52
	cd ${D}
53
	declare files
54
	for x in usr/share/classpath/*.zip; do
55
		files="${files}/${x}:"
56
	done
57
58
	# drop tailing ':'
59
	files="${files%:}"
60
61
	# generate package.env for java-config
62
	sed -e "s:@DESCRIPTION@:${DESCRIPTION}:" \
63
		-e "s:@FILE@:${files}:" \
64
		< ${FILESDIR}/package.env \
65
		> ${D}usr/share/classpath/package.env
66
		|| die "package.env generation failed!"
48
}
67
}
(-) (+2 lines)
Added Link Here
1
DESCRIPTION=@DESCRIPTION@
2
CLASSPATH=@FILE@

Return to bug 98982