blob: b2fe41d7d1dcfcf53c0e5f7ac6f06f61f275aea7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/memcache-client/memcache-client-1.8.5.ebuild,v 1.7 2011/08/07 13:43:10 armin76 Exp $
EAPI="2"
USE_RUBY="ruby18 ree18 jruby"
RUBY_FAKEGEM_TASK_TEST="none"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="FAQ.rdoc History.rdoc README.rdoc"
inherit ruby-fakegem
DESCRIPTION="A ruby library for accessing memcached."
HOMEPAGE="http://github.com/mperham/memcache-client"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
IUSE=""
ruby_add_bdepend "test? ( dev-ruby/flexmock )"
all_ruby_prepare() {
# Remove tests that require a running memcache deamon.
rm test/test_benchmark.rb || die "Unable to remove performance tests."
# Fix silly JRuby test issue:
# https://github.com/mperham/memcache-client/issues/issue/14
sed -i -e '558s/e.message/e.message.downcase/' test/test_mem_cache.rb || die "Could not fix JRuby issue."
}
each_ruby_test() {
${RUBY} -Ilib -r test/unit test/test_mem_cache.rb || die "Tests failed."
}
|