Gentoo ebuild available

David Bélanger <[email protected]>
Newsgroups gmane.comp.java.vm.sablevm.devel,gmane.comp.java.vm.sablevm.general
Message-ID <[email protected]>
On Mon, Nov 29, 2004 at 05:47:44PM -0500, David Bélanger wrote:
> On Mon, Nov 29, 2004 at 01:11:36AM -0500, Grzegorz B. Prokopski wrote:
> > On Sun, 2004-11-28 at 00:08, Stephen Compall wrote:
> > > ...are available now.
> > > 
> > > http://csserver.evansville.edu/~sc87/sablevm/
> > > 
> > > Or that URI as a urpmi source, with hdlist.cz.
> > 
> > Great! Thanks!
> > 
> > I'd like to setup daily/nightly builds of not only sources, but also
> > binary packages for different distros, so that they were available from
> > 
> > 	http://sablevm.org/download/snapshot/
> > 
> > The facilities for uploading things to these locations are available,
> > so if anyone wanted to setup an autobuilder and put the daily packages
> > there - it's possible and welcomed.  Just let me know.
> > 
> 
> Hi,
> 
> The list seems to be slow...
> 
> Following from my previous message.
> 
> About a sablevm-svn ebuild[1] so Gentoo users can get sources
> directly from the subversion directory.
> 
> I just check and by using the existing utility functions, the -svn ebuilds
> will do a checkout only the first time[2].  Then, if the user updates
> the still-to-be-done sablevm-svn ebuild, a svn update will be done to
> update the source.  So Gentoo users that updates often, would not
> transfer the full source every time.
> 
> So, I am volunteering to do a sablevm-svn ebuild to have Gentoo users
> get easily the most recent source unless there are any objections?
> 
> 1. ebuild: A package description file for Gentoo.
> 2. unless the user erases the source tree checked out.
> 
> David
> 

Hi,

I did a Gentoo ebuild that will build and install SableVM out of
subversion sources.

Instructions:
1. Set up a portage overlay (read Gentoo doc :) ) and put the ebuild in
it under dev-java/sablevm-svn.
2. Unemerge previously installed SableVM:
emerge -aC sablevm
3. Create a digest:
ebuild sablevm-svn-20041129.ebuild digest
4. Emerge it:
emerge -av sablevm-svn

Repeat step 4 regularly (~ every other week) to update your SableVM.

David

---

David Bélanger
Web page:   http://www.cs.mcgill.ca/~dbelan2/
Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt

_______________________________________________
SableVM-devel mailing list
[email protected]
http://sablevm.org/lists/control/listinfo/sablevm-devel
sablevm-svn-20041129.ebuild (text/plain, 1.9 KB)
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/sablevm/sablevm-1.1.6.ebuild,v 1.5 2004/10/16 21:15:01 axxo Exp $

inherit subversion

DESCRIPTION="A robust, clean, extremely portable, efficient, and specification-compliant Java virtual machine."
HOMEPAGE="http://sablevm.org/"

# karltk: According to Grzegorz Prokopski (gadek), the two tarfiles will merge
# into one in the future. For now, they consistently make concurrent releases,
# so I merged them into one ebuild.

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE="gtk debug"
DEPEND=">=dev-libs/libffi-1.20
	>=dev-libs/popt-1.7
	>=dev-java/jikes-1.19
	gtk? (
		>=x11-libs/gtk+-2.2
		>=media-libs/libart_lgpl-2.1
		>=media-libs/gdk-pixbuf-0.22
	)
	!dev-java/sablevm"
#RDEPEND=""

S=${WORKDIR}

src_unpack() {
	ESVN_REPO_URI="svn://svn.sablevm.org/sablevm-classpath/branches/staging"
	ESVN_PROJECT="sablevm-classpath"
	ESVN_BOOTSTRAP=" \
		cd ${S} && \
		mv staging sablevm-classpath-${PV} && \
		cd sablevm-classpath-${PV} && \
		./autogen.sh"
	subversion_src_unpack
	ESVN_REPO_URI="svn://svn.sablevm.org/sablevm/branches/staging"
	ESVN_PROJECT="sablevm"
	ESVN_BOOTSTRAP=" \
		cd ${S} && \
		mv staging sablevm-${PV} && \
		cd sablevm-${PV} && \
		./autogen.sh"
	subversion_src_unpack
}

src_compile() {
	export LDFLAGS="$LDFLAGS -L/usr/lib/libffi" CPPFLAGS="$CPPFLAGS	-I/usr/include/libffi"

	# Compile the Classpath
	cd ${S}/sablevm-classpath-${PV}
	local myc="--with-jikes"
	econf ${myc} $(use_enable gtk gtk-peer) || die
	emake || die "emake failed"

	# Compile the VM
	cd ${S}/sablevm-${PV}
	econf $(use_enable debug debugging-features) || die
	emake || die "emake failed"
}

src_install() {
	# Install the Classpath
	cd ${S}/sablevm-classpath-${PV}
	einstall || die

	# Install the VM
	cd ${S}/sablevm-${PV}
	einstall || die
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.