summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-06-04 06:43:11 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-06-04 06:43:11 +0000
commitc8afd38a810cf25411b8e78b82f217f32852ab2b (patch)
treee21b3a9596a6190aa3c73a6f81954cf4d0b50abb /dev-java/jamvm
parentAllow portmap or rpcbind #272363 by peteru. (diff)
downloadgentoo-2-c8afd38a810cf25411b8e78b82f217f32852ab2b.tar.gz
gentoo-2-c8afd38a810cf25411b8e78b82f217f32852ab2b.tar.bz2
gentoo-2-c8afd38a810cf25411b8e78b82f217f32852ab2b.zip
Convert to virtual/libffi wrt #272051
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/jamvm')
-rw-r--r--dev-java/jamvm/ChangeLog10
-rw-r--r--dev-java/jamvm/jamvm-1.5.0-r3.ebuild88
2 files changed, 96 insertions, 2 deletions
diff --git a/dev-java/jamvm/ChangeLog b/dev-java/jamvm/ChangeLog
index 8ff4b9cc337e..8ba93ba11dc6 100644
--- a/dev-java/jamvm/ChangeLog
+++ b/dev-java/jamvm/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-java/jamvm
-# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v 1.34 2009/03/07 14:37:20 betelgeuse Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v 1.35 2009/06/04 06:43:11 ssuominen Exp $
+
+*jamvm-1.5.0-r3 (04 Jun 2009)
+
+ 04 Jun 2009; Samuli Suominen <ssuominen@gentoo.org>
+ +jamvm-1.5.0-r3.ebuild:
+ Convert to virtual/libffi wrt #272051
07 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> jamvm-1.5.0-r2.ebuild:
Migrate to EAPI 2.
diff --git a/dev-java/jamvm/jamvm-1.5.0-r3.ebuild b/dev-java/jamvm/jamvm-1.5.0-r3.ebuild
new file mode 100644
index 000000000000..8b6fcb06148c
--- /dev/null
+++ b/dev-java/jamvm/jamvm-1.5.0-r3.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/jamvm-1.5.0-r3.ebuild,v 1.1 2009/06/04 06:43:11 ssuominen Exp $
+
+EAPI=2
+
+inherit autotools 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 libffi"
+
+CLASSPATH_SLOT=0.97
+DEPEND="
+ dev-java/gnu-classpath:${CLASSPATH_SLOT}
+ libffi? ( virtual/libffi )
+ amd64? ( virtual/libffi )
+ "
+RDEPEND="${DEPEND}"
+PDEPEND="dev-java/ant-eclipse-ecj:3.3 dev-java/gjdoc"
+
+src_prepare() {
+ epatch "${FILESDIR}/classes-location.patch"
+ eautoreconf
+
+ # 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
+}
+
+CLASSPATH_DIR=/opt/gnu-classpath-${CLASSPATH_SLOT}
+
+src_configure() {
+ filter-flags "-fomit-frame-pointer"
+
+ if use libffi; then
+ append-cflags "$(pkg-config --cflags-only-I libffi)"
+ fi
+
+ # Keep libjvm.so out of /usr
+ # http://bugs.gentoo.org/show_bug.cgi?id=181896
+ econf \
+ $(use_enable debug trace) \
+ --prefix=/opt/${PN} \
+ --bindir=/usr/bin \
+ --datadir=/opt \
+ $(use_enable libffi ffi) \
+ --disable-dependency-tracking \
+ --with-classpath-install-dir=${CLASSPATH_DIR}
+}
+
+create_launcher() {
+ local script="${D}/opt/${PN}/bin/${1}"
+ cat > "${script}" <<-EOF
+#!/bin/sh
+exec /usr/bin/jamvm \
+ -Xbootclasspath/p:"${CLASSPATH_DIR}/share/classpath/tools.zip" \
+ gnu.classpath.tools.${1}.Main "\$@"
+EOF
+ chmod +x "${script}"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "installation failed."
+
+ dodoc ACKNOWLEDGEMENTS AUTHORS ChangeLog NEWS README \
+ || die "dodoc failed"
+
+ set_java_env "${FILESDIR}/${PN}-1.5.0.env"
+
+ local bindir=/opt/${PN}/bin
+ dodir ${bindir}
+ dosym /usr/bin/jamvm ${bindir}/java
+ dosym /usr/bin/ecj-3.3 ${bindir}/javac
+ dosym /usr/bin/gjdoc ${bindir}/javadoc
+ for file in ${CLASSPATH_DIR}/bin/*; do
+ base=$(basename ${file})
+ create_launcher ${base#g}
+ done
+}