While I'm not terribly experienced at creating e-builds,
here's one I'd cobbled together for my own use for Shoes
Curious. I hadn't gotten around to an svn one yet, though.
It goes in your local overlay, as
dev-ruby/shoes/shoes-396.ebuild:
---
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public
License v2
inherit ruby
SLOT="0"
LICENSE="freedist"
KEYWORDS="~alpha amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc
x86 x86-fbsd"
DESCRIPTION="Shoes is a very informal graphics and windowing
toolkit."
REAL_NAME="shoes-0.r396"
SRC_URI="http://code.whytheluckystiff.net/dist/${REAL_NAME}-curious.tar.gz"
HOMEPAGE="http://code.whytheluckystiff.net/shoes/"
IUSE="video examples"
DEPEND=">=x11-libs/cairo-1.2.0
x11-libs/pango
media-libs/giflib
media-libs/jpeg
>=x11-libs/gtk+-2
>=dev-lang/ruby-1.8
dev-ruby/rake
video? (media-video/vlc)"
USE_RUBY="ruby18" # not tested (by me) on ruby19
RESTRICT="primaryuri"
src_unpack() {
unpack ${A}
}
src_install () {
cd ${REAL_NAME}
if use video ; then
emake DESTDIR="${D}" VIDEO=1 install || die
else
emake DESTDIR="${D}" install || die
fi
if `use examples`; then
insinto /usr/share/doc/${REAL_NAME}/samples
doins samples/*
fi
}