summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-07-10 05:47:54 +0000
committerHans de Graaff <graaff@gentoo.org>2010-07-10 05:47:54 +0000
commit52a59241d9d073f6679ed4fe77224b0ce110c200 (patch)
tree0b9c12ef759aabc038bedc7615b9b6a225639e85 /dev-ruby
parentFixed dependency. (diff)
downloadhistorical-52a59241d9d073f6679ed4fe77224b0ce110c200.tar.gz
historical-52a59241d9d073f6679ed4fe77224b0ce110c200.tar.bz2
historical-52a59241d9d073f6679ed4fe77224b0ce110c200.zip
Install documentation. Run tests.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/moneta/ChangeLog8
-rw-r--r--dev-ruby/moneta/Manifest15
-rw-r--r--dev-ruby/moneta/files/moneta-0.6.0-optional-memcache.patch30
-rw-r--r--dev-ruby/moneta/moneta-0.6.0-r1.ebuild30
4 files changed, 81 insertions, 2 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/Manifest b/dev-ruby/moneta/Manifest
index 17fe17dc37b0..03ff3c1bcea5 100644
--- a/dev-ruby/moneta/Manifest
+++ b/dev-ruby/moneta/Manifest
@@ -1,4 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX moneta-0.6.0-optional-memcache.patch 918 RMD160 3ba2aeba309da2c8f1a243ba3c873461ebb40c19 SHA1 f2d5b141904a9986c2683cc6c613b9ec30e06439 SHA256 9db9c349b2e7dcbdbf5c49a9315ab3df3f54d6169829478fdd4c1fe1e9888037
DIST moneta-0.6.0.gem 10752 RMD160 ac22e8384bf952ee0c306649ab173c162662e9bf SHA1 45116acbec18e848d6465ff1c3290c4b830fce23 SHA256 cc9a105367f75bda9b734a0a65f9c7e4d1ce29793a98027c18ffd7401ba538df
+DIST moneta-0.6.0.tgz 13721 RMD160 996ec677d6f5969cde8007da8d0e6b4efb31d31f SHA1 dbc69578dcb9b05001e86fbc4242ccef9d2318e1 SHA256 a0bd0b18b1b3ce0580f06c1f5abe3c944f2eaea7043793e77b77d7a883878464
+EBUILD moneta-0.6.0-r1.ebuild 747 RMD160 413a52daacdb27822de0f72622b4de040ff17bb3 SHA1 8783cbda2158aca158e718db7f714ebee53db1c8 SHA256 4ebcbd6e56c4f61f7f534dd7f11f258a01696dadc6005a363c8bd515629219d8
EBUILD moneta-0.6.0.ebuild 466 RMD160 bec1a27046f3d0907b6e8c730dc9130a1c70d353 SHA1 e3571b9973f26505c73f20d6230b1be6b7216e71 SHA256 ec689b76efed108708656c7320a90bfa3285d47a0a0d71fce64f8d0104b0cce5
-MISC ChangeLog 364 RMD160 0e753e02db1e769def24a7737f495b32ae0284f9 SHA1 1896886cf53a759bf67ba134bb5a1446abb3c5fb SHA256 5343731ae195ece5c2e042c7621242239fb78fd4223c41aa983183327c47c590
+MISC ChangeLog 555 RMD160 c404f00c2b48e09a14ff7bd1029b0f3ef7398bc3 SHA1 6728554e908a76cd9996c575d2d63e4509e80018 SHA256 fd3760ff73cc83a58cd4974bd80106dee650cd2a20e7e9ff4338fef5877d128c
MISC metadata.xml 158 RMD160 097f8145a9994f98be4971b43b23b9e5e8bccb66 SHA1 7ac646714b1ab83fda98f3ccdd8b48a31c148b27 SHA256 70b396ab3c7a63a81cb895b7728bd9eccdc9770afdb9919f2c54694b685f7032
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.15 (GNU/Linux)
+
+iF4EAREIAAYFAkw4CZYACgkQZihJkut28Ss66QEAtnbQfLmacTJu3kXD7neBJyZo
+ZXaCL9Mkk3T8uu+HQKEA/3ecWWaKtGxM62/OjuVo6VoLkgQ7TCKD8+5bNYwjmbzH
+=u9HU
+-----END PGP SIGNATURE-----
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 )"