diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2008-03-03 19:57:26 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2008-03-03 19:57:26 +0000 |
commit | 0314259e034f2d7b12da75d88ffa009eaaf3d591 (patch) | |
tree | 9b84c2e5867e88a82805012b2dd48b439bee98c2 /dev-java | |
parent | Version bump. (diff) | |
download | gentoo-2-0314259e034f2d7b12da75d88ffa009eaaf3d591.tar.gz gentoo-2-0314259e034f2d7b12da75d88ffa009eaaf3d591.tar.bz2 gentoo-2-0314259e034f2d7b12da75d88ffa009eaaf3d591.zip |
Add vm file changes required to integrate with our eclasses. PDEPEND on dev-java/ant-eclipse-ecj so that eant works.
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jamvm/ChangeLog | 9 | ||||
-rw-r--r-- | dev-java/jamvm/files/jamvm-1.5.0.env | 2 | ||||
-rw-r--r-- | dev-java/jamvm/jamvm-1.5.0-r1.ebuild | 76 |
3 files changed, 86 insertions, 1 deletions
diff --git a/dev-java/jamvm/ChangeLog b/dev-java/jamvm/ChangeLog index b290fa0354dc..756bf2cd922a 100644 --- a/dev-java/jamvm/ChangeLog +++ b/dev-java/jamvm/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for dev-java/jamvm # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v 1.27 2008/03/03 17:28:54 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v 1.28 2008/03/03 19:57:26 betelgeuse Exp $ + +*jamvm-1.5.0-r1 (03 Mar 2008) + + 03 Mar 2008; Petteri Räty <betelgeuse@gentoo.org> files/jamvm-1.5.0.env, + +jamvm-1.5.0-r1.ebuild: + Add vm file changes required to integrate with our eclasses. PDEPEND on + dev-java/ant-eclipse-ecj so that eant works. 03 Mar 2008; Petteri Räty <betelgeuse@gentoo.org> -jamvm-1.4.4-r1.ebuild: Delete old version. diff --git a/dev-java/jamvm/files/jamvm-1.5.0.env b/dev-java/jamvm/files/jamvm-1.5.0.env index 4282230a48d2..a0d7fb769ea3 100644 --- a/dev-java/jamvm/files/jamvm-1.5.0.env +++ b/dev-java/jamvm/files/jamvm-1.5.0.env @@ -9,3 +9,5 @@ PROVIDES_TYPE="JDK JRE" PROVIDES_VERSION="1.5" GENERATION="2" ENV_VARS="JAVA_HOME JDK_HOME JAVAC PATH" +GENTOO_COMPILER="ecj-3.3" +LDPATH="/opt/@PN@/lib" diff --git a/dev-java/jamvm/jamvm-1.5.0-r1.ebuild b/dev-java/jamvm/jamvm-1.5.0-r1.ebuild new file mode 100644 index 000000000000..28416e497309 --- /dev/null +++ b/dev-java/jamvm/jamvm-1.5.0-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2008 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-r1.ebuild,v 1.1 2008/03/03 19:57:26 betelgeuse Exp $ + +EAPI=1 + +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 +RDEPEND="dev-java/gnu-classpath:${CLASSPATH_SLOT}" +DEPEND="${DEPEND}" +PDEPEND="dev-java/ant-eclipse-ecj:3.3 dev-java/gjdoc" + +pkg_setup() { + if use libffi && ! built_with_use sys-devel/gcc libffi; then + eerror "sys-devel/gcc not built with libffi support" + eerror "rebuild sys-devel/gcc with USE=\"libffi\" or" + eerror "turn off the libffi use flag on on ${PN}" + die "Rebuild sys-devel/gcc with libffi" + fi + java-vm-2_pkg_setup +} + +src_unpack() { + unpack ${A} + cd "${S}" + 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 +} + +src_compile() { + filter-flags "-fomit-frame-pointer" + + # Keep libjvm.so out of /usr + # http://bugs.gentoo.org/show_bug.cgi?id=181896 + econf \ + $(use_enable debug trace) \ + $(use_enable libffi ffi) \ + --prefix=/opt/${PN} \ + --datadir=/opt/ \ + --bindir=/usr/bin \ + --with-classpath-install-dir=/opt/gnu-classpath-${CLASSPATH_SLOT} \ + || 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 "${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 +} |