diff options
-rw-r--r-- | dev-java/jamvm/ChangeLog | 9 | ||||
-rw-r--r-- | dev-java/jamvm/Manifest | 4 | ||||
-rw-r--r-- | dev-java/jamvm/jamvm-1.5.4.ebuild | 96 |
3 files changed, 106 insertions, 3 deletions
diff --git a/dev-java/jamvm/ChangeLog b/dev-java/jamvm/ChangeLog index 73559399eb15..e4f59bed3f2c 100644 --- a/dev-java/jamvm/ChangeLog +++ b/dev-java/jamvm/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-java/jamvm -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v 1.38 2009/07/19 13:45:51 nixnut Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v 1.39 2010/03/27 17:55:53 ali_bush Exp $ + +*jamvm-1.5.4 (27 Mar 2010) + + 27 Mar 2010; Alistair Bush <ali_bush@gentoo.org> +jamvm-1.5.4.ebuild: + Version Bump. 19 Jul 2009; nixnut <nixnut@gentoo.org> jamvm-1.5.0-r3.ebuild: ppc stable #272674 diff --git a/dev-java/jamvm/Manifest b/dev-java/jamvm/Manifest index 8614d1a04aff..70737e99555f 100644 --- a/dev-java/jamvm/Manifest +++ b/dev-java/jamvm/Manifest @@ -3,7 +3,9 @@ AUX jamvm-1.5.0.env 382 RMD160 e3a4953826ea66d17aed7b07795929949ebd6c6e SHA1 ab8 AUX jamvm.env 331 RMD160 33e990fb7c22f310cc9c4ce678a67f3f8062ade1 SHA1 c60faaf90d26c45ceaaf1a84d2b476aed7adb048 SHA256 dca8067931277eb7e919c820d83e3dcfaa46d9c70103f2c023e83eb04b45bd92 DIST jamvm-1.4.2.tar.gz 285593 RMD160 ca9d26f90dd04e5aaefb1c33dda59a4f41456e31 SHA1 cfda95e52261d58e535a0c8ec03878304e9560c7 SHA256 dae915b7f963762385df2f4660eaad497261fa72393ba69339530e5b0b5d8bc3 DIST jamvm-1.5.0.tar.gz 594250 RMD160 cfe80de1e2895df177b054cc622df2ed8e51feb9 SHA1 35b29d09635ec95efdee4eaab815c4bbf4130147 SHA256 18b269b1bfad7230384681e89189c6af18584e19cddbf92208c0acef814046ab +DIST jamvm-1.5.4.tar.gz 656283 RMD160 7aa2a3d28c0d953c0d0048a3f8c48dc274ae10a0 SHA1 26863c78d5b0dfcc1a1492d24af58d192831b510 SHA256 7865693698bc4322cabe1014a4b7ebdec1bc1daf45f1a4457b6e908a4446b124 EBUILD jamvm-1.4.2.ebuild 1058 RMD160 059f12a824e6177b53d903a65f2cfa56edb047d7 SHA1 91f8cf3b8075ca5109f97e826e30b187c532fc66 SHA256 39b323f11ed4fba94e2ef84a9525d4b7427d08150fd24fd920d85b80b91223b2 EBUILD jamvm-1.5.0-r3.ebuild 2409 RMD160 64a49cbf070dd40aa45e8204ab16d9c8339853b8 SHA1 bb2b5288332ee817192a60c97b52c635604ed71b SHA256 69b8e33d4472418ed5407bb5b71052bca019eae4f55cbe886765a84206d01ecc -MISC ChangeLog 5674 RMD160 e18f2318532c54f2713ed367180df070c7f905a1 SHA1 2293b326eeb952038b83d124f1d1ea720fc5fa05 SHA256 09e625e8bd0a457b92f0599d4a019143c7522cde17df7ff91f4b75421a1f0054 +EBUILD jamvm-1.5.4.ebuild 2411 RMD160 3c584b43a46768cfd91395ab0e946d3ef5da3a28 SHA1 df68641bad907c6d7b713b65a01aa828beaa53f3 SHA256 588933a917246fdc835ecf673d562d12062071d9a98bf16e7c40a2a6c8f6aacb +MISC ChangeLog 5793 RMD160 7f7d277e651965558cf4d23cabddc5606830cb0f SHA1 d16808458a091951253d8ed768de8957babfb22f SHA256 2b04f7fd9367a3568e6bb230b4a4348ffdeec2f32b0aee49c3dc6685b3944196 MISC metadata.xml 250 RMD160 768ed9ef97f57c25c39ed3bd46a88b44e104526e SHA1 ec1919e99fc0395f90a0aff91ce77bf13c95d399 SHA256 380eb6d01f833fe0077b518b8f4b9230baf88fa61463de48ff6c672755edd442 diff --git a/dev-java/jamvm/jamvm-1.5.4.ebuild b/dev-java/jamvm/jamvm-1.5.4.ebuild new file mode 100644 index 000000000000..c4fa580222d7 --- /dev/null +++ b/dev-java/jamvm/jamvm-1.5.4.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/jamvm-1.5.4.ebuild,v 1.1 2010/03/27 17:55:53 ali_bush 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 +RDEPEND="dev-java/gnu-classpath:${CLASSPATH_SLOT} + libffi? ( virtual/libffi ) + amd64? ( virtual/libffi )" +DEPEND="${RDEPEND} + dev-util/pkgconfig" +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() { + local myconf + + filter-flags "-fomit-frame-pointer" + + if use libffi; then + append-cflags "$(pkg-config --cflags-only-I libffi)" + fi + + if use amd64; then + append-cflags "$(pkg-config --cflags-only-I libffi)" + myconf="--enable-ffi" + 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} \ + ${myconf} +} + +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 +} |