summaryrefslogtreecommitdiff
blob: 228402ec21a0f8f6e22b74bf6a15b1e777e0843f (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/gnu-classpath/gnu-classpath-0.06.ebuild,v 1.7 2004/07/02 04:20:09 eradicator Exp $

DESCRIPTION="Free core class libraries for use with virtual machines and compilers for the java programming language"
SRC_URI="ftp://alpha.gnu.org/gnu/classpath/${P/gnu-}.tar.gz"
HOMEPAGE="http://www.gnu.org/software/classpath/"
IUSE="doc"
DEPEND=">=virtual/jdk-1.4
		media-libs/gdk-pixbuf
		virtual/libc
		>=x11-libs/gtk+-2
		>=media-libs/libart_lgpl-2.1
		jikes? ( dev-java/jikes )"
RDEPEND=">=virtual/jdk-1.4"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~sparc ~ppc"

S=${WORKDIR}/${P/gnu-}

src_compile() {
	local myjavac="--with-java=`java-config -c`"
	use jikes && myjavac="--with-jikes=/usr/bin/jikes"
	econf --enable-jni --enable-gtk-peer --prefix=/usr/share/${PN} ${myjavac} || die "econf failed"
	emake
}

src_install () {
	einstall
}