summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2005-11-11 19:20:31 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2005-11-11 19:20:31 +0000
commitce672aaf42ea147932ea3dfb183b396a64c20eed (patch)
tree4a865ea9d063d48edef186c4bbff64788a75acf3 /dev-java/gnu-classpath/gnu-classpath-0.19.ebuild
parentAdded dssi description and improved cairo for dev-java/gnu-classpath. (diff)
downloadgentoo-2-ce672aaf42ea147932ea3dfb183b396a64c20eed.tar.gz
gentoo-2-ce672aaf42ea147932ea3dfb183b396a64c20eed.tar.bz2
gentoo-2-ce672aaf42ea147932ea3dfb183b396a64c20eed.zip
Version bump. In this release the cairo use flag was added back. The new alsa and dssi use flags are for different MIDI providers. Also added a debug use flag. The ebuild now installs files like README and NEWS. The keywords for sparc, ppc and ppc64 were dropped until they can test media-libs/dssi.
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'dev-java/gnu-classpath/gnu-classpath-0.19.ebuild')
-rw-r--r--dev-java/gnu-classpath/gnu-classpath-0.19.ebuild82
1 files changed, 82 insertions, 0 deletions
diff --git a/dev-java/gnu-classpath/gnu-classpath-0.19.ebuild b/dev-java/gnu-classpath/gnu-classpath-0.19.ebuild
new file mode 100644
index 000000000000..269428607027
--- /dev/null
+++ b/dev-java/gnu-classpath/gnu-classpath-0.19.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2005 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.19.ebuild,v 1.1 2005/11/11 19:20:31 betelgeuse Exp $
+
+inherit eutils autotools
+
+MY_P=${P/gnu-/}
+DESCRIPTION="Free core class libraries for use with virtual machines and compilers for the Java programming language"
+SRC_URI="ftp://ftp.gnu.org/gnu/classpath/${MY_P}.tar.gz"
+HOMEPAGE="http://www.gnu.org/software/classpath"
+
+LICENSE="GPL-2-with-linking-exception"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+# Add the doc use flag after the upstream build system is improved
+# See their bug 24025
+
+IUSE="alsa cairo debug dssi examples gtk xml2"
+
+RDEPEND="alsa? ( media-libs/alsa-lib )
+ dssi? ( >=media-libs/dssi-0.9 )
+ gtk? ( >=x11-libs/gtk+-2.4
+ >=dev-libs/glib-2.0
+ virtual/x11
+ cairo? ( >=x11-libs/cairo-0.5.0 )
+ )
+ xml2? ( >=dev-libs/libxml2-2.6.8 >=dev-libs/libxslt-1.1.11 )"
+
+DEPEND="app-arch/zip
+ dev-java/jikes
+ ${REPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ cp ${FILESDIR}/${PV}-dssi_data.h native/jni/midi-dssi/dssi_data.h \
+ || die "Copying dssi_data.h failed."
+
+ epatch ${FILESDIR}/${PV}-dssi.patch
+ eautoconf
+}
+
+src_compile() {
+ # Note: This is written in a way to easily support GCJ and other compilers
+ # at a later point. Currently Gentoo uses mainly GCJ 3.3 (from the
+ # corresponding GCC) which cannot compile GNU Classpath correctly.
+ # Another possibility would be ECJ (from Eclipse).
+ local compiler="--with-jikes"
+
+ econf ${compiler} \
+ $(use_enable alsa) \
+ $(use_enable cairo gtk-cairo) \
+ $(use_enable debug ) \
+ $(use_enable examples) \
+ $(use_enable gtk gtk-peer) \
+ $(use_enable xml2 xmlj) \
+ $(use_enable dssi ) \
+ --enable-jni \
+ --disable-dependency-tracking \
+ || die "configure failed"
+# disabled for now... see above.
+# $(use_with doc gjdoc) \
+
+ emake || die "make failed"
+}
+
+src_install() {
+ einstall || die "einstall failed"
+ dodoc AUTHORS BUGS ChangeLog* HACKING NEWS README THANKYOU TODO
+}
+
+pkg_postinst() {
+ if use gtk && use cairo; then
+ einfo "GNU Classpath was compiled with preliminary cairo support."
+ einfo "To use that functionality set the system property"
+ einfo "gnu.java.awt.peer.gtk.Graphics to Graphics2D at runtime."
+ fi
+}