summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2020-06-13 06:21:45 +0200
committerHans de Graaff <graaff@gentoo.org>2020-06-13 06:21:45 +0200
commit438566d28fff0072a266d32fd25f33065d748794 (patch)
tree2619570d9c79b0350acad00c49a1feccb7084c6a /dev-ruby/bson
parentdev-ruby/bson: cleanup (diff)
downloadgentoo-438566d28fff0072a266d32fd25f33065d748794.tar.gz
gentoo-438566d28fff0072a266d32fd25f33065d748794.tar.bz2
gentoo-438566d28fff0072a266d32fd25f33065d748794.zip
dev-ruby/bson: add 4.9.2
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/bson')
-rw-r--r--dev-ruby/bson/Manifest1
-rw-r--r--dev-ruby/bson/bson-4.9.2.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-ruby/bson/Manifest b/dev-ruby/bson/Manifest
index a2c3837722d2..fce05131faa8 100644
--- a/dev-ruby/bson/Manifest
+++ b/dev-ruby/bson/Manifest
@@ -1,2 +1,3 @@
DIST bson-4.7.1.tar.gz 120690 BLAKE2B fbb6eeca2b339eaa80503294cefd1c97abb9f992ce1068bbf64a6ffa9239fabb6df4c982c90ab3522362c5bbe55bbaf479023a2f5f2e24ffb86a1dd8fae80db3 SHA512 75026ab81abf5f629200b008a3a8da38a594751c43335eb0c8e29bc94848d2dfce9479419de136b8176dde5d2cc9e66ceb5a7d2b52cfacdb1813a1c63871fa95
DIST bson-4.8.2.tar.gz 153029 BLAKE2B bc058d06afecdfcaa029e525f8122bd4e647a432934cd2b7594721920e9f0b1d727a48fcf44ec14d2206a699ea6c24c872b46e821548a99ea66f9c7ce0600d98 SHA512 48b4fc7278cb8e0623acf42241ca3169a98f3a7f754c8af8f94b9046540843d22acafe18db4ba804636f3356dfe79d6c6843004ee980c327726851c28315776d
+DIST bson-4.9.2.tar.gz 155910 BLAKE2B 6c2b8356803f2b6975d5ea84ebf59815cb101eb0394c9fedc34d9e9405f20bc4d4691eb9e5167dfdc7cebad95121e752473d6f244ba4ead8d0c454e4f4f694e1 SHA512 d2619eb18e19b3686ad1c14ebbaebd6a08c8b87295c16091472d7a90e680530c146e95df77efb07a2d8248ebf8eefc0f3afdde38bbd8a814ca26fce2ab470baf
diff --git a/dev-ruby/bson/bson-4.9.2.ebuild b/dev-ruby/bson/bson-4.9.2.ebuild
new file mode 100644
index 000000000000..5e6f5007077a
--- /dev/null
+++ b/dev-ruby/bson/bson-4.9.2.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26 ruby27"
+
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+
+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="https://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="4"
+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
+}