diff options
author | Hans de Graaff <graaff@gentoo.org> | 2010-07-10 05:47:54 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2010-07-10 05:47:54 +0000 |
commit | 25b8a5dfb1ac4bada147c0bb09b0ad03c011fc43 (patch) | |
tree | 66d707927faaa9d7e0484af68e873553ce034e50 /dev-ruby/moneta | |
parent | Fixed dependency. (diff) | |
download | gentoo-2-25b8a5dfb1ac4bada147c0bb09b0ad03c011fc43.tar.gz gentoo-2-25b8a5dfb1ac4bada147c0bb09b0ad03c011fc43.tar.bz2 gentoo-2-25b8a5dfb1ac4bada147c0bb09b0ad03c011fc43.zip |
Install documentation. Run tests.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/moneta')
-rw-r--r-- | dev-ruby/moneta/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/moneta/files/moneta-0.6.0-optional-memcache.patch | 30 | ||||
-rw-r--r-- | dev-ruby/moneta/moneta-0.6.0-r1.ebuild | 30 |
3 files changed, 67 insertions, 1 deletions
diff --git a/dev-ruby/moneta/ChangeLog b/dev-ruby/moneta/ChangeLog index 044199a6c2de..5586a78474c5 100644 --- a/dev-ruby/moneta/ChangeLog +++ b/dev-ruby/moneta/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/moneta # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/moneta/ChangeLog,v 1.1 2010/07/03 12:03:22 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/moneta/ChangeLog,v 1.2 2010/07/10 05:47:54 graaff Exp $ + +*moneta-0.6.0-r1 (08 Jul 2010) + + 08 Jul 2010; Hans de Graaff <graaff@gentoo.org> +moneta-0.6.0-r1.ebuild, + +files/moneta-0.6.0-optional-memcache.patch: + Install documentation. Run tests. *moneta-0.6.0 (03 Jul 2010) 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 000000000000..382d073ff997 --- /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/moneta-0.6.0-r1.ebuild b/dev-ruby/moneta/moneta-0.6.0-r1.ebuild new file mode 100644 index 000000000000..b1ee45bc4c5f --- /dev/null +++ b/dev-ruby/moneta/moneta-0.6.0-r1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/moneta/moneta-0.6.0-r1.ebuild,v 1.1 2010/07/10 05:47:54 graaff Exp $ + +EAPI="2" +USE_RUBY="ruby18" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_TASK_TEST="spec" + +RUBY_FAKEGEM_EXTRADOC="README TODO" + +inherit ruby-fakegem + +GITHUB_USER="wycats" + +DESCRIPTION="A unified interface to key/value stores" +HOMEPAGE="http://github.com/wycats/moneta" +SRC_URI="http://github.com/${GITHUB_USER}/moneta/tarball/${PV} -> ${P}.tgz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +S="${WORKDIR}/${GITHUB_USER}-${PN}-*" + +RUBY_PATCHES=( "${P}-optional-memcache.patch" ) + +ruby_add_bdepend "test? ( dev-ruby/rspec )" |