summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2015-03-08 08:08:56 +0000
committerHans de Graaff <graaff@gentoo.org>2015-03-08 08:08:56 +0000
commit6ae21f8a19bd9a315c183dd30088603645bd1cf4 (patch)
tree04d6030e401582636ed4ccf545742cdc5776acdd /dev-ruby/bson
parentVersion bump. (diff)
downloadhistorical-6ae21f8a19bd9a315c183dd30088603645bd1cf4.tar.gz
historical-6ae21f8a19bd9a315c183dd30088603645bd1cf4.tar.bz2
historical-6ae21f8a19bd9a315c183dd30088603645bd1cf4.zip
Version bump.
Package-Manager: portage-2.2.14/cvs/Linux x86_64 Manifest-Sign-Key: 0x8883FA56A308A8D7!
Diffstat (limited to 'dev-ruby/bson')
-rw-r--r--dev-ruby/bson/ChangeLog7
-rw-r--r--dev-ruby/bson/Manifest10
-rw-r--r--dev-ruby/bson/bson-1.12.0.ebuild108
3 files changed, 120 insertions, 5 deletions
diff --git a/dev-ruby/bson/ChangeLog b/dev-ruby/bson/ChangeLog
index f86f687792c6..f992ed825450 100644
--- a/dev-ruby/bson/ChangeLog
+++ b/dev-ruby/bson/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/bson
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bson/ChangeLog,v 1.15 2015/01/05 19:31:29 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bson/ChangeLog,v 1.16 2015/03/08 08:08:55 graaff Exp $
+
+*bson-1.12.0 (08 Mar 2015)
+
+ 08 Mar 2015; Hans de Graaff <graaff@gentoo.org> +bson-1.12.0.ebuild:
+ Version bump.
05 Jan 2015; Hans de Graaff <graaff@gentoo.org> bson-1.6.2-r1.ebuild,
bson-2.3.0.ebuild:
diff --git a/dev-ruby/bson/Manifest b/dev-ruby/bson/Manifest
index 1250b28b2c4b..34ebfe59df59 100644
--- a/dev-ruby/bson/Manifest
+++ b/dev-ruby/bson/Manifest
@@ -2,15 +2,17 @@
Hash: SHA256
DIST bson-2.3.0.tar.gz 48880 SHA256 ea0d7f285926c176239fad0f2cd45e6c40981e2abb665f666cfa1137138604c9 SHA512 8b22e139f06c07cf26905ef8bc5ac7f039c9b0440015c2ab1035a0e402598c826c0be4c31e68a4894b350e405602c99df8c65b45af83f89b5507e965e6bf2e7d WHIRLPOOL a3fc514da88c5a0d9c55019367d243a403889e6119892f9ec70f844ecbc90bc345f3a5a5913248f7441b9910584714beb061dab61c904b573a50896392849e7d
+DIST mongo-ruby-driver-1.12.0.tar.gz 360691 SHA256 33a58080b80cca03255934aea3641084042a0b5ef042b0967aa74d13f334418d SHA512 a5358810aeaddb0eff295e408a739ee4cba3473ae6f877c101c059d9dfb348bc4698ca2c7564049a3820d634792ee600e463e7b894cc82b3baa666dbd0dbf1b2 WHIRLPOOL 175d9049f50efc6afa5a684c9f632a5fb0e7e15d1d3b56ecad2fba3cc070b2c008be1eb3bafdaa2126249417df76d93faff6d8172ca95779bf60978358885aa5
DIST mongo-ruby-driver-1.6.2.tar.gz 15485515 SHA256 ef6885ba66fce2df619d5543ef1699b584362fe37931e9e2121d974a67cb4a58 SHA512 ce537f2b819c072fddcb12dac66d81e9dc23a739b43211b65239d3264be9d4ac586813a18ca674abf75078639e3ee22dced8e88061e7c263b2381ea0d4e97b28 WHIRLPOOL ceb3ad9cb7b5cd1372d27a7962b60242166a37d31320e54f28c51b5f18e3a53cc08194dc2ec293c953a12a0936b1d8869f9338f4ca3a84fa09a847558acc361e
+EBUILD bson-1.12.0.ebuild 3337 SHA256 98d954b537db17d532f01f7311a5c7b1f6b7ec4c7c53f02d479bfee5d65846cb SHA512 1133ba68f18250abfebaf046304264c6789c692f0f1660f3d715ca8059242981041a3b6b46fb38076c61682dc76b1e95b6565d4bde9b03457e87899e435b1b81 WHIRLPOOL abb33dd51ecbc81be1f66821d8c57253fe889a3ee040261c8b65eae44d88e01927102eb31e5f0bdd4f1af12b97eb14246b104a38939290fdbb70ec32b6042271
EBUILD bson-1.6.2-r1.ebuild 2973 SHA256 dd6a514b2f4a5d86cd7130226addb8f8c5c115679a49dea529a3eab5a971770a SHA512 2a446ca51343f8329606b7615d778a730c657cb0908bd0eb388a1b9b009c5232d4eaf751253bf72d64e5f2ef01ebd5eebc9614f2f1201a82a8520544781da165 WHIRLPOOL baa94268d47bb41e1edae4ab1441924f497b6a023e44a02bb3e74a85c7616e445fc34bc1a4d606febf11fdb6ce45113b8bc91f711330f8d8d95171da8d2be233
EBUILD bson-2.3.0.ebuild 1605 SHA256 965a81323ba5b0a401ebe31bfc4f994a0c8ab1e69d48fe39c2e061f9e373b689 SHA512 4fb7f2bf69f9f461c6fbbbabbb4a871a7159b295e24d659c8d77009122a92eaad1d2ac0ab5f44d55156e193166b19f51e4108bc7ac3c3b2ccef3bb8301595691 WHIRLPOOL 228f736d82d5b22ef8957a14da90c6cd7e1f7381ffa894b15679412bbb044ec67d97b11483889584dabe70e4f907a2edb011c009a6de2ddfc98fedc0820f06c3
-MISC ChangeLog 1157 SHA256 e4ebc14ef7f00e677ad2b4f7582b80aa505fd79dae9723f478522b205e19f551 SHA512 de6c434750ecb4e0361c8068e62d5829e4ca14801a77dd9499e441fba498f9d40efae8d1c3a174e033d4b0d52b5fdfc9ab6ca9fd5800d4b6f7f3df184e97f4ff WHIRLPOOL 12fac439a963a17fd09e02202f003175295d0a7501f4e80bb55ac0702dfd743819d4f3b4572ce3c5731461519f1afd2bd33c05dae7bcc233547ae8fc6e672cb3
+MISC ChangeLog 1273 SHA256 50d7c6bebc9a22c39e09360f5f21e7d245111cd4b9ee0d61249e9e86722a24b8 SHA512 645a00c5c1f24ce51b2ff01dc44bba7672600d8acfe39569b71c382f5c48fb3c38c48e2992e8283a85dfe91e92a510dc968d3166e43e6683fa576c43b4957d5f WHIRLPOOL 071a14c03a1977812d9df9f7bc294a2d8dbf3c6a3b8ace351ecdc81220ffcd9f6857616e9858ba806ec5a53725e99f4b871a0c334ff11a989df8a184e43db888
MISC metadata.xml 157 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c SHA512 0cec73b966de88015ea4c7212723d848d367608aa93658bb945f298a8000c4ba8aba73c9eb8481859fb5bbed45e80dae32c628caf81e027a4ad8eafa7e632851 WHIRLPOOL 4da25c81e21173ad8b7b5f35b056264869d9a16741062aa4422c5ea1aa9e73da8eb700b0d54de84c169d702fbb3f41ed157c9dc7c9daac110849ae84715c051b
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iF4EAREIAAYFAlSq5pIACgkQiIP6VqMIqNe96AD9HVNJ1tSoOqh448L7SeKSivtG
-aV2e1yCzQn4nYFoRwHMA/0L2Ny67PJO6b798onL4V+Da3FDxTeHZ9wd2Liuw3rt3
-=BnVY
+iF4EAREIAAYFAlT8A5gACgkQiIP6VqMIqNeAoQD9FWJCanR5eClaOVxoIj8XGt0g
+iXZTl14cVnrq+CSKmG8A/3wYfcxMwgdpSjd0Q6yMkhiogWmXYMWH7K/yK0Cf3Sjp
+=VZJ1
-----END PGP SIGNATURE-----
diff --git a/dev-ruby/bson/bson-1.12.0.ebuild b/dev-ruby/bson/bson-1.12.0.ebuild
new file mode 100644
index 000000000000..f4c40aa773ce
--- /dev/null
+++ b/dev-ruby/bson/bson-1.12.0.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bson/bson-1.12.0.ebuild,v 1.1 2015/03/08 08:08:55 graaff Exp $
+
+EAPI=5
+USE_RUBY="ruby19 ruby20 ruby21"
+
+RUBY_FAKEGEM_TASK_DOC="moot" # we do it manually, but still declare it
+RUBY_FAKEGEM_DOCDIR="html"
+RUBY_FAKEGEM_EXTRADOC=""
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+GITHUB_USER="mongodb"
+GITHUB_PROJECT="mongo-ruby-driver"
+RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*"
+
+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 -> ${GITHUB_PROJECT}-${PV}.tar.gz"
+
+LICENSE="APSL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test doc"
+
+ruby_add_bdepend \
+ "test? (
+ dev-ruby/bundler
+ >=dev-ruby/rake-10.1
+ dev-ruby/sfl
+ >=dev-ruby/shoulda-3.3.2
+ dev-ruby/mocha
+ dev-ruby/test-unit:2
+ )
+ doc? ( dev-ruby/rdoc )"
+
+all_ruby_prepare() {
+ # remove the stuff that is actually part of dev-ruby/mongo
+ rm -f bin/mongo* || die
+
+ # Avoid test dependency on pry
+ sed -i -e '/\(pry\|coverall\)/I s:^:#:' Gemfile tasks/testing.rake test/test_helper.rb || die
+ # Avoid deployment dependencies and fix version issues
+ sed -i -e '/rest-client/ s/1.6.8/~> 1.6/' \
+ -e '/test-unit/ s/~>2.0/>= 2.0/' \
+ -e '/rake/ s/10.1.1/~>10.1/' \
+ -e '/:deploy/,/end/ s:^:#:' Gemfile || die
+
+ # Don't clean up the compiled version after testing
+ sed -i -e '/:cleanup/,/end/ s:lib/bson_ext::' tasks/testing.rake || die
+}
+
+each_ruby_configure() {
+ ${RUBY} -C ext/cbson extconf.rb || die "extconf.rb failed"
+}
+
+each_ruby_compile() {
+ emake -C ext/cbson V=1 CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}"
+ mkdir -p lib/bson_ext || die
+ cp ext/cbson/*$(get_modname) lib/bson_ext || die
+}
+
+all_ruby_compile() {
+ # Trying to get the Rakefile to build the sources is more trouble
+ # than it's worth, do it manually instead.
+ if use doc; then
+ rdoc --op html --inline-source lib/**/*.rb || die "rdoc failed"
+ fi
+}
+
+each_ruby_test() {
+ C_EXT=true JENKINS_CI=true ${RUBY} -S rake test:bson || die "tests failed"
+}
+
+each_ruby_install() {
+ # Remove remaining mongo code that will be installed as part of
+ # dev-ruby/mongo. We do this here rather than in src_prepare so we
+ # can bootstrap with tests enabled.
+ rm -rf lib/mongo* || die
+
+ # we have to set the library path here because the gemspec tries to
+ # load bson itself, and would fail without that.
+ RUBYLIB="lib" \
+ each_fakegem_install
+
+ # and now we create the simulated gem for bson_ext; we create a file
+ # bson_ext.rb within ext so that we don't have to change the
+ # bson_ext.gemspec file, and at the same time we ensure that bson
+ # gem is loaded when loading bson_ext.
+ dodir $(ruby_fakegem_gemsdir)/gems/bson_ext-${PV}/ext
+ cat - <<EOF > "${D}/$(ruby_fakegem_gemsdir)/gems/bson_ext-${PV}/ext/bson_ext.rb"
+require 'bson'
+EOF
+
+ RUBYLIB="lib" \
+ RUBY_FAKEGEM_NAME=bson_ext \
+ RUBY_FAKEGEM_GEMSPEC=bson_ext.gemspec \
+ ruby_fakegem_install_gemspec
+}
+
+pkg_postinst() {
+ elog "Unlike upstream setup, we do not split bson and bson_ext gem."
+ elog "This means that for all the supported targets, the C-based extension"
+ elog "is installed by this package, and is available transparently."
+}