public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-java/jamvm: ChangeLog jamvm-1.5.0-r2.ebuild
@ 2008-03-04 22:46 Petteri Raty (betelgeuse)
  0 siblings, 0 replies; 2+ messages in thread
From: Petteri Raty (betelgeuse) @ 2008-03-04 22:46 UTC (permalink / raw
  To: gentoo-commits

betelgeuse    08/03/04 22:46:04

  Modified:             ChangeLog
  Added:                jamvm-1.5.0-r2.ebuild
  Log:
  Revision bump to wrap all the tools provided by gnu-classpath.
  (Portage version: 2.1.4.4)

Revision  Changes    Path
1.29                 dev-java/jamvm/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/ChangeLog?rev=1.29&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/ChangeLog?rev=1.29&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/ChangeLog?r1=1.28&r2=1.29

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- ChangeLog	3 Mar 2008 19:57:26 -0000	1.28
+++ ChangeLog	4 Mar 2008 22:46:03 -0000	1.29
@@ -1,6 +1,11 @@
 # 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.28 2008/03/03 19:57:26 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v 1.29 2008/03/04 22:46:03 betelgeuse Exp $
+
+*jamvm-1.5.0-r2 (04 Mar 2008)
+
+  04 Mar 2008; Petteri Räty <betelgeuse@gentoo.org> +jamvm-1.5.0-r2.ebuild:
+  Revision bump to wrap all the tools provided by gnu-classpath.
 
 *jamvm-1.5.0-r1 (03 Mar 2008)
 



1.1                  dev-java/jamvm/jamvm-1.5.0-r2.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/jamvm-1.5.0-r2.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/jamvm-1.5.0-r2.ebuild?rev=1.1&content-type=text/plain

Index: jamvm-1.5.0-r2.ebuild
===================================================================
# 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-r2.ebuild,v 1.1 2008/03/04 22:46:03 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
DEPEND="dev-java/gnu-classpath:${CLASSPATH_SLOT}"
RDEPEND="${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
}

CLASSPATH_DIR=/opt/gnu-classpath-${CLASSPATH_SLOT}

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=${CLASSPATH_DIR} \
		|| die "configure failed."
	emake || die "make failed."
}

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
}



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in dev-java/jamvm: ChangeLog jamvm-1.5.0-r2.ebuild
@ 2009-03-07 14:37 Petteri Raty (betelgeuse)
  0 siblings, 0 replies; 2+ messages in thread
From: Petteri Raty (betelgeuse) @ 2009-03-07 14:37 UTC (permalink / raw
  To: gentoo-commits

betelgeuse    09/03/07 14:37:20

  Modified:             ChangeLog jamvm-1.5.0-r2.ebuild
  Log:
  Migrate to EAPI 2.
  (Portage version: 2.2_rc20/cvs/Linux 2.6.29-rc6 i686)

Revision  Changes    Path
1.34                 dev-java/jamvm/ChangeLog

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/ChangeLog?rev=1.34&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/ChangeLog?rev=1.34&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/ChangeLog?r1=1.33&r2=1.34

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-java/jamvm/ChangeLog,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- ChangeLog	17 May 2008 11:38:07 -0000	1.33
+++ ChangeLog	7 Mar 2009 14:37:20 -0000	1.34
@@ -1,6 +1,9 @@
 # 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.33 2008/05/17 11:38:07 nixnut Exp $
+# 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 $
+
+  07 Mar 2009; Petteri Räty <betelgeuse@gentoo.org> jamvm-1.5.0-r2.ebuild:
+  Migrate to EAPI 2.
 
   17 May 2008; nixnut <nixnut@gentoo.org> jamvm-1.5.0-r2.ebuild:
   Stable on ppc wrt bug 216689



1.5                  dev-java/jamvm/jamvm-1.5.0-r2.ebuild

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/jamvm-1.5.0-r2.ebuild?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/jamvm-1.5.0-r2.ebuild?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/jamvm/jamvm-1.5.0-r2.ebuild?r1=1.4&r2=1.5

Index: jamvm-1.5.0-r2.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-java/jamvm/jamvm-1.5.0-r2.ebuild,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- jamvm-1.5.0-r2.ebuild	17 May 2008 11:38:07 -0000	1.4
+++ jamvm-1.5.0-r2.ebuild	7 Mar 2009 14:37:20 -0000	1.5
@@ -1,8 +1,8 @@
-# Copyright 1999-2008 Gentoo Foundation
+# 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-r2.ebuild,v 1.4 2008/05/17 11:38:07 nixnut Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jamvm/jamvm-1.5.0-r2.ebuild,v 1.5 2009/03/07 14:37:20 betelgeuse Exp $
 
-EAPI=1
+EAPI=2
 
 inherit autotools eutils flag-o-matic multilib java-vm-2
 
@@ -16,28 +16,15 @@
 IUSE="debug libffi"
 
 CLASSPATH_SLOT=0.97
-DEPEND="dev-java/gnu-classpath:${CLASSPATH_SLOT}"
+DEPEND="
+	dev-java/gnu-classpath:${CLASSPATH_SLOT}
+	sys-devel/gcc[libffi?]
+	amd64? ( sys-devel/gcc[libffi] )
+	"
 RDEPEND="${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 support"
-	fi
-	if use amd64 && ! 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\""
-		die "Rebuild sys-devel/gcc with libffi support"
-	fi
-	java-vm-2_pkg_setup
-}
-
-src_unpack() {
-	unpack ${A}
-	cd "${S}"
+src_prepare() {
 	epatch "${FILESDIR}/classes-location.patch"
 	eautoreconf
 
@@ -51,7 +38,7 @@
 
 CLASSPATH_DIR=/opt/gnu-classpath-${CLASSPATH_SLOT}
 
-src_compile() {
+src_configure() {
 	filter-flags "-fomit-frame-pointer"
 
 	local conf="--enable-ffi"
@@ -67,7 +54,6 @@
 		--with-classpath-install-dir=${CLASSPATH_DIR} \
 		$(use amd64 && echo --enable-ffi) \
 		|| die "configure failed."
-	emake || die "make failed."
 }
 
 create_launcher() {






^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-07 14:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-07 14:37 [gentoo-commits] gentoo-x86 commit in dev-java/jamvm: ChangeLog jamvm-1.5.0-r2.ebuild Petteri Raty (betelgeuse)
  -- strict thread matches above, loose matches on Subject: below --
2008-03-04 22:46 Petteri Raty (betelgeuse)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox