Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/bson/
Date: Sun, 30 Oct 2016 19:40:00
Message-Id: 1477856383.44a4ce78bbf2948ccd78fbcff68d9f2cbe98eb1a.graaff@gentoo
1 commit: 44a4ce78bbf2948ccd78fbcff68d9f2cbe98eb1a
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 30 19:21:56 2016 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 30 19:39:43 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44a4ce78
7
8 dev-ruby/bson: cleanup
9
10 Package-Manager: portage-2.3.0
11
12 dev-ruby/bson/Manifest | 1 -
13 dev-ruby/bson/bson-1.12.0.ebuild | 108 ---------------------------------------
14 2 files changed, 109 deletions(-)
15
16 diff --git a/dev-ruby/bson/Manifest b/dev-ruby/bson/Manifest
17 index c77a4a1..07ce404 100644
18 --- a/dev-ruby/bson/Manifest
19 +++ b/dev-ruby/bson/Manifest
20 @@ -1,3 +1,2 @@
21 DIST bson-3.2.6.tar.gz 51846 SHA256 b7d848b93de622c32cc65cf6debf21aaa0e66d554d65cc7805dc8f76e56c55fb SHA512 da8d7c4e50bd5387a50f0ef471f1d854e0a1bf3f109bb793b16c8e4d110f6b98cb37aee126176eccb097c5d7814360ef85e96be4aa4704226a8490984a5dd3f2 WHIRLPOOL ece0e17aca10f684cdbea703702b5f886340fe93ede11045430c7711f2d546c5e2558003261d8252a29a55fc999664be0315f0ac693d02181a9dcf006d44a3c6
22 DIST bson-4.1.1.tar.gz 55417 SHA256 965d0da14886e795230686168676784c74117c705b262ee468205c0066166f64 SHA512 b98b568fe0a94e6430433a9bb57930c0a95c9b268d928a6fabb1ce6bd4343406e700de11db531f6a49bc270e449637c70ce0ad0a8f7f6cae7857f0ad627f1956 WHIRLPOOL b7f0735cb0d3e49d257f805398368e397a70f87dd38460ce04064ca34fc0f9b60f6e776403955be0e2db9360b94bb0b09f48d5c3e7036a10d8393b715c455b41
23 -DIST mongo-ruby-driver-1.12.0.tar.gz 360669 SHA256 84c87d26601c9bd91a6604bcb3630be50d239e471542f9b0a68379705dd03e11 SHA512 725110c527867379def85fde50b6825e94a320356f062e4403d9d55c223f2503676f83ae42916d6ab45afd90d30b2a4272519e070c4af2095c0965297fd72bb6 WHIRLPOOL c152aa579a0535707909560cc73fc878521aac95c034ec71bca6c2397754b5e057c1e7ca32f6b2b3393ce975f122e65926820cdde29aa5f5734fb9717bd980e0
24
25 diff --git a/dev-ruby/bson/bson-1.12.0.ebuild b/dev-ruby/bson/bson-1.12.0.ebuild
26 deleted file mode 100644
27 index ba97750..00000000
28 --- a/dev-ruby/bson/bson-1.12.0.ebuild
29 +++ /dev/null
30 @@ -1,108 +0,0 @@
31 -# Copyright 1999-2016 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -# $Id$
34 -
35 -EAPI=5
36 -USE_RUBY="ruby20 ruby21"
37 -
38 -RUBY_FAKEGEM_TASK_DOC="moot" # we do it manually, but still declare it
39 -RUBY_FAKEGEM_DOCDIR="html"
40 -RUBY_FAKEGEM_EXTRADOC=""
41 -
42 -RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
43 -
44 -GITHUB_USER="mongodb"
45 -GITHUB_PROJECT="mongo-ruby-driver"
46 -RUBY_S="${GITHUB_PROJECT}-${PV}"
47 -
48 -inherit multilib ruby-fakegem
49 -
50 -DESCRIPTION="A Ruby BSON implementation for MongoDB. (Includes binary C-based extension.)"
51 -HOMEPAGE="http://www.mongodb.org/"
52 -SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/archive/${PV}.tar.gz -> ${GITHUB_PROJECT}-${PV}.tar.gz"
53 -
54 -LICENSE="APSL-2"
55 -SLOT="0"
56 -KEYWORDS="~amd64"
57 -IUSE="test doc"
58 -
59 -ruby_add_bdepend \
60 - "test? (
61 - dev-ruby/bundler
62 - >=dev-ruby/rake-10.1
63 - dev-ruby/sfl
64 - >=dev-ruby/shoulda-3.3.2
65 - dev-ruby/mocha
66 - dev-ruby/test-unit:2
67 - )
68 - doc? ( dev-ruby/rdoc )"
69 -
70 -all_ruby_prepare() {
71 - # remove the stuff that is actually part of dev-ruby/mongo
72 - rm -f bin/mongo* || die
73 -
74 - # Avoid test dependency on pry
75 - sed -i -e '/\(pry\|coverall\)/I s:^:#:' Gemfile tasks/testing.rake test/test_helper.rb || die
76 - # Avoid deployment dependencies and fix version issues
77 - sed -i -e '/rest-client/ s/1.6.8/~> 1.6/' \
78 - -e '/test-unit/ s/~>2.0/>= 2.0/' \
79 - -e '/rake/ s/10.1.1/~>10.1/' \
80 - -e '/:deploy/,/end/ s:^:#:' Gemfile || die
81 -
82 - # Don't clean up the compiled version after testing
83 - sed -i -e '/:cleanup/,/end/ s:lib/bson_ext::' tasks/testing.rake || die
84 -}
85 -
86 -each_ruby_configure() {
87 - ${RUBY} -C ext/cbson extconf.rb || die "extconf.rb failed"
88 -}
89 -
90 -each_ruby_compile() {
91 - emake -C ext/cbson V=1 CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}"
92 - mkdir -p lib/bson_ext || die
93 - cp ext/cbson/*$(get_modname) lib/bson_ext || die
94 -}
95 -
96 -all_ruby_compile() {
97 - # Trying to get the Rakefile to build the sources is more trouble
98 - # than it's worth, do it manually instead.
99 - if use doc; then
100 - rdoc --op html --inline-source lib/**/*.rb || die "rdoc failed"
101 - fi
102 -}
103 -
104 -each_ruby_test() {
105 - C_EXT=true JENKINS_CI=true ${RUBY} -S rake test:bson || die "tests failed"
106 -}
107 -
108 -each_ruby_install() {
109 - # Remove remaining mongo code that will be installed as part of
110 - # dev-ruby/mongo. We do this here rather than in src_prepare so we
111 - # can bootstrap with tests enabled.
112 - rm -rf lib/mongo* || die
113 -
114 - # we have to set the library path here because the gemspec tries to
115 - # load bson itself, and would fail without that.
116 - RUBYLIB="lib" \
117 - each_fakegem_install
118 -
119 - # and now we create the simulated gem for bson_ext; we create a file
120 - # bson_ext.rb within ext so that we don't have to change the
121 - # bson_ext.gemspec file, and at the same time we ensure that bson
122 - # gem is loaded when loading bson_ext.
123 - dodir $(ruby_fakegem_gemsdir)/gems/bson_ext-${PV}/ext
124 - cat - <<EOF > "${D}/$(ruby_fakegem_gemsdir)/gems/bson_ext-${PV}/ext/bson_ext.rb"
125 -require 'bson'
126 -EOF
127 -
128 - RUBYLIB="lib" \
129 - RUBY_FAKEGEM_NAME=bson_ext \
130 - RUBY_FAKEGEM_GEMSPEC=bson_ext.gemspec \
131 - ruby_fakegem_install_gemspec
132 -}
133 -
134 -pkg_postinst() {
135 - elog "Unlike upstream setup, we do not split bson and bson_ext gem."
136 - elog "This means that for all the supported targets, the C-based extension"
137 - elog "is installed by this package, and is available transparently."
138 -}