summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2015-10-09 09:10:05 +0200
committerHans de Graaff <graaff@gentoo.org>2015-10-10 07:38:41 +0200
commiteeb7ed5a96cd37c4fceb5fba512d47c7f073db5a (patch)
tree70e2630e8443be2bf2e0368ed811057d0f0519ef /dev-ruby/bson
parentdev-ruby/bson: cleanup (diff)
downloadgentoo-eeb7ed5a96cd37c4fceb5fba512d47c7f073db5a.tar.gz
gentoo-eeb7ed5a96cd37c4fceb5fba512d47c7f073db5a.tar.bz2
gentoo-eeb7ed5a96cd37c4fceb5fba512d47c7f073db5a.zip
dev-ruby/bson: add 3.2.6
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby/bson')
-rw-r--r--dev-ruby/bson/Manifest1
-rw-r--r--dev-ruby/bson/bson-3.2.6.ebuild45
2 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/bson/Manifest b/dev-ruby/bson/Manifest
index 7e2e88f60ed1..2bd86f9740d7 100644
--- a/dev-ruby/bson/Manifest
+++ b/dev-ruby/bson/Manifest
@@ -1,2 +1,3 @@
DIST bson-3.2.4.tar.gz 51208 SHA256 adcc339e4618fbd9bc8dc91677971118834adfd19bf6ae783d79308f2fb446b2 SHA512 d7817d5ec068895e4a883921dc8495aa9d44401b7a66c77f29b71434428efaf417f1219ebbb1bd7065a8beebba41c0c461e7b9f5376bc9259ada695f6eb97715 WHIRLPOOL 670239430ec0ccfe01a4a50d843fbc871faea06b0d5cf7db4cf53d32ec7a6dcca7ef06497589d1e0f4ee8e20e451bff33b7d0bcfea298b71dead22716f07eab2
+DIST bson-3.2.6.tar.gz 51846 SHA256 b7d848b93de622c32cc65cf6debf21aaa0e66d554d65cc7805dc8f76e56c55fb SHA512 da8d7c4e50bd5387a50f0ef471f1d854e0a1bf3f109bb793b16c8e4d110f6b98cb37aee126176eccb097c5d7814360ef85e96be4aa4704226a8490984a5dd3f2 WHIRLPOOL ece0e17aca10f684cdbea703702b5f886340fe93ede11045430c7711f2d546c5e2558003261d8252a29a55fc999664be0315f0ac693d02181a9dcf006d44a3c6
DIST mongo-ruby-driver-1.12.0.tar.gz 360669 SHA256 84c87d26601c9bd91a6604bcb3630be50d239e471542f9b0a68379705dd03e11 SHA512 725110c527867379def85fde50b6825e94a320356f062e4403d9d55c223f2503676f83ae42916d6ab45afd90d30b2a4272519e070c4af2095c0965297fd72bb6 WHIRLPOOL c152aa579a0535707909560cc73fc878521aac95c034ec71bca6c2397754b5e057c1e7ca32f6b2b3393ce975f122e65926820cdde29aa5f5734fb9717bd980e0
diff --git a/dev-ruby/bson/bson-3.2.6.ebuild b/dev-ruby/bson/bson-3.2.6.ebuild
new file mode 100644
index 000000000000..0627cb8ec76c
--- /dev/null
+++ b/dev-ruby/bson/bson-3.2.6.ebuild
@@ -0,0 +1,45 @@
+# 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="CHANGELOG.md README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+GITHUB_USER="mongodb"
+GITHUB_PROJECT="bson-ruby"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="A Ruby BSON implementation for MongoDB. (Includes binary C-based extension.)"
+HOMEPAGE="http://www.mongodb.org/"
+SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+RUBY_S="bson-ruby-${PV}"
+
+LICENSE="APSL-2"
+SLOT="3"
+KEYWORDS="~amd64"
+IUSE="test doc"
+
+all_ruby_prepare() {
+ # Remove bundler support
+ sed -i -e '/bundler/I s:^:#:' Rakefile || die
+
+ # Remove project-specific rspec options
+ rm .rspec || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -C ext/bson extconf.rb || die "extconf.rb failed"
+}
+
+each_ruby_compile() {
+ emake -C ext/bson V=1 CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}"
+ cp ext/bson/*$(get_modname) lib/ || die
+}