diff options
Diffstat (limited to 'dev-ruby/moneta')
-rw-r--r-- | dev-ruby/moneta/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/moneta/files/moneta-0.6.0-optional-memcache.patch | 30 | ||||
-rw-r--r-- | dev-ruby/moneta/metadata.xml | 8 | ||||
-rw-r--r-- | dev-ruby/moneta/moneta-0.7.20.ebuild | 31 | ||||
-rw-r--r-- | dev-ruby/moneta/moneta-0.8.0.ebuild | 26 |
5 files changed, 97 insertions, 0 deletions
diff --git a/dev-ruby/moneta/Manifest b/dev-ruby/moneta/Manifest new file mode 100644 index 00000000000..6bf34b14fc4 --- /dev/null +++ b/dev-ruby/moneta/Manifest @@ -0,0 +1,2 @@ +DIST moneta-0.7.20.tgz 170834 SHA256 a9d5bf04f0588266f1358acaabf31a7934631058a0bdbc98bf06d196c662b986 SHA512 edef2b6cbbfb5a97c48008ab5a1fd359e49d5f494c4feb3ffaa9be2128c5cab06fe0c3e1a27b679ad581b217cee3ba877818905d41c9de2f4bc04df8a1c85653 WHIRLPOOL a4e5159aaf0aedbd5311a4ed540b7d1c2455c46bfc2f65242b23b4f46dcc12b948d4e837860d7c8317c0f5d6e3743df96c82a90214b9a9120ce1573f0eb10997 +DIST moneta-0.8.0.tar.gz 172318 SHA256 ac12da9a5e79cbe5d01b0c56b81a3c0cde440500022c329ce14f3587aa7e3ea3 SHA512 b0ac8d6692667d545caa2277f2cdd1419e21e750f95cad94ea4e4a54ddb73e44782018bce4115e6a98c70a248acebe700329762e3d31fe87beb7272cbabb21dc WHIRLPOOL c5b79466860086ced5d931360ad6a1baa3e79478c352a9d34192637a0da829eadd25d6324368207f85936df2fe83a3e96dcf71df1ce5c75ca5b9b6c2533b0f63 diff --git a/dev-ruby/moneta/files/moneta-0.6.0-optional-memcache.patch b/dev-ruby/moneta/files/moneta-0.6.0-optional-memcache.patch new file mode 100644 index 00000000000..382d073ff99 --- /dev/null +++ b/dev-ruby/moneta/files/moneta-0.6.0-optional-memcache.patch @@ -0,0 +1,30 @@ +commit f24e8010e01449648f1d1e28cb325bde21bfdaed +Author: Hans de Graaff <hans@degraaff.org> +Date: Thu Jul 8 20:37:26 2010 +0200 + + Fix case where both memcached and memcache are not present. + + The second require attempt will also generate a LoadError if memcache is not + present, so this requires an extra block to rescue that error. + +diff --git a/lib/moneta/memcache.rb b/lib/moneta/memcache.rb +index 5cf8c02..4e2f9d6 100644 +--- a/lib/moneta/memcache.rb ++++ b/lib/moneta/memcache.rb +@@ -2,10 +2,12 @@ begin + require "memcached" + MemCache = Memcached + rescue LoadError +- require "memcache" +-rescue +- puts "You need either the `memcached` or `memcache-client` gem to use the Memcache moneta store" +- exit ++ begin ++ require "memcache" ++ rescue LoadError ++ puts "You need either the `memcached` or `memcache-client` gem to use the Memcache moneta store" ++ exit ++ end + end + + module Moneta diff --git a/dev-ruby/moneta/metadata.xml b/dev-ruby/moneta/metadata.xml new file mode 100644 index 00000000000..bd61ffb66fe --- /dev/null +++ b/dev-ruby/moneta/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>ruby</herd> + <upstream> + <remote-id type="github">minad/moneta</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-ruby/moneta/moneta-0.7.20.ebuild b/dev-ruby/moneta/moneta-0.7.20.ebuild new file mode 100644 index 00000000000..31967037c7e --- /dev/null +++ b/dev-ruby/moneta/moneta-0.7.20.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="4" +USE_RUBY="ruby19 ruby20" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_RECIPE_TEST="none" +# test is disabled for now. It requires many packages. + +RUBY_FAKEGEM_EXTRADOC="README.md SPEC.md" + +inherit ruby-fakegem + +GITHUB_USER="minad" + +DESCRIPTION="A unified interface to key/value stores" +HOMEPAGE="http://github.com/minad/moneta" +SRC_URI="http://github.com/${GITHUB_USER}/moneta/tarball/v${PV} -> ${P}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RUBY_S="${GITHUB_USER}-${PN}-*" + +# ruby_add_bdepend "test? ( +# >=dev-ruby/actionpack-3.2.11 +# )" diff --git a/dev-ruby/moneta/moneta-0.8.0.ebuild b/dev-ruby/moneta/moneta-0.8.0.ebuild new file mode 100644 index 00000000000..a5f9ad7ed64 --- /dev/null +++ b/dev-ruby/moneta/moneta-0.8.0.ebuild @@ -0,0 +1,26 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby19 ruby20" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_RECIPE_TEST="none" +# test is disabled for now. It requires many packages. Test suite also +# takes very long run time and has high memory consumption. + +RUBY_FAKEGEM_EXTRADOC="README.md SPEC.md" + +inherit ruby-fakegem + +GITHUB_USER="minad" + +DESCRIPTION="A unified interface to key/value stores" +HOMEPAGE="https://github.com/minad/moneta" +SRC_URI="https://github.com/${GITHUB_USER}/moneta/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" |