diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-11-25 10:54:39 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-11-25 11:09:39 +0100 |
commit | 42a8298b30a4b7edfb04f4c75ecd0ce87efb987d (patch) | |
tree | 004f3a9eab34d11cf0db1b17b041d56d2efffc21 | |
parent | app-text/ghostscript-gpl: arm stable wrt bug #668846 (diff) | |
download | gentoo-42a8298b30a4b7edfb04f4c75ecd0ce87efb987d.tar.gz gentoo-42a8298b30a4b7edfb04f4c75ecd0ce87efb987d.tar.bz2 gentoo-42a8298b30a4b7edfb04f4c75ecd0ce87efb987d.zip |
dev-ruby/dalli: add 2.7.9
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
-rw-r--r-- | dev-ruby/dalli/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/dalli/dalli-2.7.9.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/dalli/Manifest b/dev-ruby/dalli/Manifest index 180636014d55..38121d47e770 100644 --- a/dev-ruby/dalli/Manifest +++ b/dev-ruby/dalli/Manifest @@ -1,2 +1,3 @@ DIST dalli-2.7.6.tar.gz 48481 BLAKE2B 9f83523b75d1c6fa109aba7e288e13924d8c7677c6fa38ffe5ce21dfb22f858f8a3ab8593afceed97e980e5f0172c1f8c58cc96b42f4bde31013f5ffcbb26f8b SHA512 ee2270e719f6ff108654d20dfc560cdc6067808c211ae75304f5ca3f7772561b25a699fddb051e42db744bb202228bdbb904171faf5e1804f1f2bed4341bc258 DIST dalli-2.7.8.tar.gz 51599 BLAKE2B 935fc1b0ffb2c93c0ef8ab6a82e63b4e272c51ae6c2cbd0c670953c0943942c25b4c795ca7953ad4e53284f6b6e35b44be386ec4dba0c96345256e3b3173152d SHA512 5fa48a01db15fdafa179663b71867dd6a9c2ab7b4b94434f650c1ce37bd71caa2bb22efe032a4eed777538cdc341f22a251d14772aaba62f4a6d9d8c33b6a346 +DIST dalli-2.7.9.tar.gz 51971 BLAKE2B ddf0286cd4edd1298d0cc759b5e5de1e60bb1ea1f8fbfdab559a09e716a0384c2bf5c70c6922d1b0d15df1af4de83eee16965a6d6f0543fbd5a0850464fb9f11 SHA512 38d4bb0a9c15175cdb77e40a0131c4e2caecc5b39b6fa15604aff8f1808429d2bf021f8817e9c2448007d5fb1dc50ea61c679a5a47ca54869d71391ec522f419 diff --git a/dev-ruby/dalli/dalli-2.7.9.ebuild b/dev-ruby/dalli/dalli-2.7.9.ebuild new file mode 100644 index 000000000000..dcd9944f6e06 --- /dev/null +++ b/dev-ruby/dalli/dalli-2.7.9.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_TASK_TEST="test" + +RUBY_FAKEGEM_DOCDIR="doc" +RUBY_FAKEGEM_EXTRADOC="History.md Performance.md README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A high performance pure Ruby client for accessing memcached servers" +HOMEPAGE="https://github.com/petergoldstein/dalli" +SRC_URI="https://github.com/petergoldstein/dalli/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="" + +DEPEND+="${DEPEND} test? ( >=net-misc/memcached-1.5.4 )" + +ruby_add_bdepend "test? ( + dev-ruby/minitest:5 + >=dev-ruby/mocha-0.13 + dev-ruby/rack + dev-ruby/activesupport:5.2 + dev-ruby/connection_pool )" + +all_ruby_prepare() { + chmod 0755 "${HOME}" || die "Failed to fix permissions on home" + + sed -i -e '/\(appraisal\|bundler\)/ s:^:#:' Rakefile || die + + sed -i -e '3igem "minitest", "~> 5.0"; gem "activesupport", "~>5.2.0"' \ + -e '/bundler/ s:^:#:' test/helper.rb || die + + # Drop rails dependency which is only used to display the version + # number, so we only need to depend on activesupport and avoid + # complicated circular dependencies. + sed -i -e '/rails/I s:^:#:' \ + -e '14irequire "active_support"' test/helper.rb || die + + # Fix test compatability with memcached 1.5.4 and higher + # https://github.com/petergoldstein/dalli/pull/672 + sed -i -e '/memcached_low_mem_persistent/,/^end/ s/-M/-M -I 512k/' test/memcached_mock.rb || die +} |