You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-ruby/uuidtools/uuidtools-2.1.1-r1.ebuild

37 lines
924 B

# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/uuidtools/uuidtools-2.1.1-r1.ebuild,v 1.7 2011/03/08 11:29:54 tomka Exp $
EAPI=2
USE_RUBY="ruby18 jruby"
RUBY_FAKEGEM_TASK_DOC="doc"
RUBY_FAKEGEM_TASK_TEST="spec:normal"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="CHANGELOG README"
inherit ruby-fakegem
DESCRIPTION="Simple library to generate UUIDs"
HOMEPAGE="http://uuidtools.rubyforge.org/"
SRC_URI="mirror://rubyforge/${PN}/${P}.tgz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
# Rakefile does not work without rspec (and is quite difficult to work
# it around).
ruby_add_bdepend "
doc? ( >=dev-ruby/rspec-1.0.8:0 )
test? ( >=dev-ruby/rspec-1.0.8:0 )"
all_ruby_prepare() {
sed -i \
-e '1d; 2i require File.expand_path("../../spec_helper.rb", __FILE__)' \
"${S}"/spec/uuidtools/*.rb || die
}