Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/dalli/
Date: Fri, 04 May 2018 05:46:50
Message-Id: 1525412801.a0ccce65f323bd6563b57f61a30ff192272467a2.graaff@gentoo
1 commit: a0ccce65f323bd6563b57f61a30ff192272467a2
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 4 05:46:15 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri May 4 05:46:41 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a0ccce65
7
8 dev-ruby/dalli: add ruby25
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 dev-ruby/dalli/dalli-2.7.8-r1.ebuild | 46 ++++++++++++++++++++++++++++++++++++
13 1 file changed, 46 insertions(+)
14
15 diff --git a/dev-ruby/dalli/dalli-2.7.8-r1.ebuild b/dev-ruby/dalli/dalli-2.7.8-r1.ebuild
16 new file mode 100644
17 index 00000000000..840fb8fab58
18 --- /dev/null
19 +++ b/dev-ruby/dalli/dalli-2.7.8-r1.ebuild
20 @@ -0,0 +1,46 @@
21 +# Copyright 1999-2018 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +
24 +EAPI=6
25 +USE_RUBY="ruby23 ruby24 ruby25"
26 +
27 +RUBY_FAKEGEM_TASK_TEST="test"
28 +
29 +RUBY_FAKEGEM_DOCDIR="doc"
30 +RUBY_FAKEGEM_EXTRADOC="History.md Performance.md README.md"
31 +
32 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
33 +
34 +inherit ruby-fakegem
35 +
36 +DESCRIPTION="A high performance pure Ruby client for accessing memcached servers"
37 +HOMEPAGE="https://github.com/petergoldstein/dalli"
38 +SRC_URI="https://github.com/petergoldstein/dalli/archive/v${PV}.tar.gz -> ${P}.tar.gz"
39 +LICENSE="MIT"
40 +SLOT="0"
41 +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
42 +IUSE=""
43 +
44 +DEPEND+="${DEPEND} test? ( >=net-misc/memcached-1.4.0 )"
45 +
46 +ruby_add_bdepend "test? (
47 + dev-ruby/minitest:5
48 + >=dev-ruby/mocha-0.13
49 + dev-ruby/rack
50 + >=dev-ruby/activesupport-4.2 <dev-ruby/activesupport-5.2
51 + dev-ruby/connection_pool )"
52 +
53 +all_ruby_prepare() {
54 + chmod 0755 "${HOME}" || die "Failed to fix permissions on home"
55 +
56 + sed -i -e '/\(appraisal\|bundler\)/ s:^:#:' Rakefile || die
57 +
58 + sed -i -e '3igem "minitest", "~> 5.0"; gem "activesupport", "< 5.2"' \
59 + -e '/bundler/ s:^:#:' test/helper.rb || die
60 +
61 + # Drop rails dependency which is only used to display the version
62 + # number, so we only need to depend on activesupport and avoid
63 + # complicated circular dependencies.
64 + sed -i -e '/rails/I s:^:#:' \
65 + -e '14irequire "active_support"' test/helper.rb || die
66 +}