summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-02-28 14:03:45 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-02-28 14:03:45 +0000
commit080d92e564203d3ccae0984bf284f2b2f4d9073e (patch)
treee9cd1b17414362608693e0d68e9237b66e5673f7 /dev-java
parentMarked ~amd64. (diff)
downloadgentoo-2-080d92e564203d3ccae0984bf284f2b2f4d9073e.tar.gz
gentoo-2-080d92e564203d3ccae0984bf284f2b2f4d9073e.tar.bz2
gentoo-2-080d92e564203d3ccae0984bf284f2b2f4d9073e.zip
Version bump. This version makes using dev-util/libffi optional via the ffi use flag. Fixes bug #158754.
(Portage version: 2.1.2-r12)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jamvm/ChangeLog10
-rw-r--r--dev-java/jamvm/files/digest-jamvm-1.4.53
-rw-r--r--dev-java/jamvm/jamvm-1.4.5.ebuild61
3 files changed, 72 insertions, 2 deletions
diff --git a/dev-java/jamvm/ChangeLog b/dev-java/jamvm/ChangeLog
index 7b064532fa49..d64ba04521d0 100644
--- a/dev-java/jamvm/ChangeLog
+++ b/dev-java/jamvm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/jamvm
-# Copyright 2000-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v 1.24 2006/12/01 18:38:53 betelgeuse Exp $
+# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v 1.25 2007/02/28 14:03:45 betelgeuse Exp $
+
+*jamvm-1.4.5 (28 Feb 2007)
+
+ 28 Feb 2007; Petteri Räty <betelgeuse@gentoo.org> +jamvm-1.4.5.ebuild:
+ Version bump. This version makes using dev-util/libffi optional via the ffi
+ use flag. Fixes bug #158754.
01 Dec 2006; Petteri Räty <betelgeuse@gentoo.org> files/jamvm.env:
Changed PROVIDES_TYPE from "JDK" to "JDK JRE"
diff --git a/dev-java/jamvm/files/digest-jamvm-1.4.5 b/dev-java/jamvm/files/digest-jamvm-1.4.5
new file mode 100644
index 000000000000..a952c218a415
--- /dev/null
+++ b/dev-java/jamvm/files/digest-jamvm-1.4.5
@@ -0,0 +1,3 @@
+MD5 3f538bab6e1c77aed331e5e71f754f5b jamvm-1.4.5.tar.gz 547407
+RMD160 63221c64e285349494f9a3166dce7e2a58381a55 jamvm-1.4.5.tar.gz 547407
+SHA256 f329d1c8f42c06b53a3e82763d33900b100b8e9acd7afe02f7583c51253fd6e5 jamvm-1.4.5.tar.gz 547407
diff --git a/dev-java/jamvm/jamvm-1.4.5.ebuild b/dev-java/jamvm/jamvm-1.4.5.ebuild
new file mode 100644
index 000000000000..09160261fc81
--- /dev/null
+++ b/dev-java/jamvm/jamvm-1.4.5.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/jamvm-1.4.5.ebuild,v 1.1 2007/02/28 14:03:45 betelgeuse Exp $
+
+inherit eutils flag-o-matic multilib java-vm-2
+
+DESCRIPTION="An extremely small and specification-compliant virtual machine."
+HOMEPAGE="http://jamvm.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="debug ffi"
+
+RDEPEND="~dev-java/gnu-classpath-0.93
+ ffi? ( dev-libs/libffi )"
+DEPEND="${DEPEND}"
+PDEPEND="=dev-java/eclipse-ecj-3.2* dev-java/gjdoc"
+
+#src_unpack() {
+# unpack "${A}"
+# cd "${S}"
+ # These come precompiled.
+ # configure script uses detects the compiler
+ # from PATH. I guess we should compile this from source.
+ # Then just make sure not to hit
+ # https://bugs.gentoo.org/show_bug.cgi?id=163801
+ #rm -v lib/classes.zip || die
+#}
+
+src_compile() {
+ filter-flags "-fomit-frame-pointer"
+
+ local myc
+ use debug && myc="${myc} --enable-trace"
+ use ffi && append-flags -L/usr/lib/libffi
+
+ # configure adds "/share/classpath" itself
+ # includedir puts jni.h in a package dependent folder
+ econf ${myc} \
+ $(use_enable ffi) \
+ --includedir=/usr/include/${PN} \
+ --with-classpath-install-dir=/opt/gnu-classpath-0.93 \
+ || die "configure failed."
+ emake || die "make failed."
+}
+
+src_install() {
+ emake DESTDIR=${D} install || die "installation failed."
+
+ dodoc ACKNOWLEDGEMENTS AUTHORS ChangeLog NEWS README \
+ || die "dodoc failed"
+
+ set_java_env
+
+ dodir /opt/${P}/bin
+ dosym /usr/bin/jamvm /opt/${P}/bin/java
+ dosym /usr/bin/ecj-3.2 /opt/${P}/bin/javac
+ dosym /usr/bin/gjdoc /opt/${P}/bin/javadoc
+}