| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/moneta/moneta-0.6.0-r1.ebuild,v 1.3 2012/06/16 05:59:23 graaff Exp $
|
| 4 |
|
| 5 |
EAPI="4"
|
| 6 |
USE_RUBY="ruby18 ruby19 ree18"
|
| 7 |
|
| 8 |
RUBY_FAKEGEM_TASK_DOC=""
|
| 9 |
RUBY_FAKEGEM_TASK_TEST="none"
|
| 10 |
|
| 11 |
RUBY_FAKEGEM_EXTRADOC="README TODO"
|
| 12 |
|
| 13 |
inherit ruby-fakegem
|
| 14 |
|
| 15 |
GITHUB_USER="wycats"
|
| 16 |
|
| 17 |
DESCRIPTION="A unified interface to key/value stores"
|
| 18 |
HOMEPAGE="http://github.com/wycats/moneta"
|
| 19 |
SRC_URI="http://github.com/${GITHUB_USER}/moneta/tarball/${PV} -> ${P}.tgz"
|
| 20 |
|
| 21 |
LICENSE="MIT"
|
| 22 |
SLOT="0"
|
| 23 |
KEYWORDS="~amd64 ~x86"
|
| 24 |
IUSE=""
|
| 25 |
|
| 26 |
RUBY_S="${GITHUB_USER}-${PN}-*"
|
| 27 |
|
| 28 |
RUBY_PATCHES=( "${P}-optional-memcache.patch" )
|
| 29 |
|
| 30 |
ruby_add_bdepend "test? ( dev-ruby/rspec:0 )"
|
| 31 |
|
| 32 |
all_ruby_prepare() {
|
| 33 |
# Remove non-optional memcache spec because we cannot guarantee that
|
| 34 |
# a memcache will be running to test against, bug 332919
|
| 35 |
rm spec/moneta_memcache_spec.rb || die
|
| 36 |
}
|
| 37 |
|
| 38 |
each_ruby_test() {
|
| 39 |
${RUBY} -S spec spec || die
|
| 40 |
}
|