commit: 9107fab8b7ae24054b8498985fc383a367b12231 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Wed Aug 12 05:07:53 2015 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Wed Aug 12 05:08:36 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9107fab8
dev-ruby/mongo: version bump Package-Manager: portage-2.2.20 dev-ruby/mongo/Manifest | 1 + dev-ruby/mongo/mongo-2.0.6.ebuild | 59 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) diff --git a/dev-ruby/mongo/Manifest b/dev-ruby/mongo/Manifest index d8235c0..8a0038d 100644 --- a/dev-ruby/mongo/Manifest +++ b/dev-ruby/mongo/Manifest @@ -1 +1,2 @@ DIST mongo-ruby-driver-1.12.0.tar.gz 360669 SHA256 84c87d26601c9bd91a6604bcb3630be50d239e471542f9b0a68379705dd03e11 SHA512 725110c527867379def85fde50b6825e94a320356f062e4403d9d55c223f2503676f83ae42916d6ab45afd90d30b2a4272519e070c4af2095c0965297fd72bb6 WHIRLPOOL c152aa579a0535707909560cc73fc878521aac95c034ec71bca6c2397754b5e057c1e7ca32f6b2b3393ce975f122e65926820cdde29aa5f5734fb9717bd980e0 +DIST mongo-ruby-driver-2.0.6.tar.gz 173405 SHA256 212b3d4a83398ac0299323e9380c5d804d0691d1f8dfc7259aaf5b669943abb9 SHA512 25e5e63538f498b42a44665d725b04e8b7ee0fae4d3331d43b883e427fccdcf0de5a1151819ba04fb6520b5d20da02adf59f1c144176bc2a458142efd5ca7b95 WHIRLPOOL 030072734393abc20fe87e2f0798010ee0c256b5d8fab236171a1942fb737239a3719b5c3488075330616c959cfcacf0f9da6cf02646e29e8c9b7a6a03c0b9af diff --git a/dev-ruby/mongo/mongo-2.0.6.ebuild b/dev-ruby/mongo/mongo-2.0.6.ebuild new file mode 100644 index 0000000..10f47f5 --- /dev/null +++ b/dev-ruby/mongo/mongo-2.0.6.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby19 ruby20 ruby21 ruby22" + +RUBY_FAKEGEM_RECIPE_TEST="rspec" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +GITHUB_USER="mongodb" +GITHUB_PROJECT="mongo-ruby-driver" +RUBY_S="${GITHUB_PROJECT}-${PV}" + +inherit ruby-fakegem + +DESCRIPTION="A Ruby driver for MongoDB" +HOMEPAGE="http://www.mongodb.org/" +SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/archive/${PV}.tar.gz -> ${GITHUB_PROJECT}-${PV}.tar.gz" + +LICENSE="APSL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" + +ruby_add_rdepend "dev-ruby/bson:3" + +DEPEND+=" test? ( dev-db/mongodb )" + +# Requires a running mongod +RESTRICT="test" + +all_ruby_prepare() { + # Avoid test dependency on pry + sed -i -e '/\(pry\|coverall\)/I s:^:#:' \ + -e '/simplecov/,/^ end/ s:^:#:' \ + -e '/config.formatter/ s:^:#:' spec/spec_helper.rb || die + + sed -i -e 's/localhost/127.0.0.1/' spec/mongo/*_spec.rb || die + + rm -f .rspec || die +} + +each_ruby_test() { + CI=true ruby-ng_rspec +} + +each_ruby_install() { + # Remove bson code used for testing. This is installed as part of + # dev-ruby/bson. +# rm -rf lib/bson* || die + + each_fakegem_install +}