summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2013-12-25 07:40:41 +0000
committerHans de Graaff <graaff@gentoo.org>2013-12-25 07:40:41 +0000
commitee42bae3290536d5184a22ce48232e6a83c32f98 (patch)
tree95ca02eafb16230eec5865fa739c78412a2c402c /dev-ruby/bson
parentCleanup. (diff)
downloadgentoo-2-ee42bae3290536d5184a22ce48232e6a83c32f98.tar.gz
gentoo-2-ee42bae3290536d5184a22ce48232e6a83c32f98.tar.bz2
gentoo-2-ee42bae3290536d5184a22ce48232e6a83c32f98.zip
Version bump. Upstream now releases one gem with the compiled extension included.
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Diffstat (limited to 'dev-ruby/bson')
-rw-r--r--dev-ruby/bson/ChangeLog39
-rw-r--r--dev-ruby/bson/bson-2.0.0.ebuild69
2 files changed, 74 insertions, 34 deletions
diff --git a/dev-ruby/bson/ChangeLog b/dev-ruby/bson/ChangeLog
index f03380e4995d..f06d57276b24 100644
--- a/dev-ruby/bson/ChangeLog
+++ b/dev-ruby/bson/ChangeLog
@@ -1,39 +1,10 @@
# ChangeLog for dev-ruby/bson
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bson/ChangeLog,v 1.8 2013/12/25 07:22:06 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bson/ChangeLog,v 1.9 2013/12/25 07:40:41 graaff Exp $
- 25 Dec 2013; Hans de Graaff <graaff@gentoo.org> -bson-1.6.2.ebuild:
- Cleanup.
+*bson-2.0.0 (25 Dec 2013)
-*bson-1.6.2-r1 (17 Nov 2013)
+ 25 Dec 2013; Hans de Graaff <graaff@gentoo.org> +bson-2.0.0.ebuild:
+ Version bump. Upstream now releases one gem with the compiled extension
+ included.
- 17 Nov 2013; Manuel Rüger <mrueg@gentoo.org> +bson-1.6.2-r1.ebuild:
- Add ruby20 target.
-
- 12 May 2012; Diego E. Pettenò <flameeyes@gentoo.org> -bson-1.5.2.ebuild,
- -bson-1.6.0.ebuild, -bson-1.6.1.ebuild, bson-1.6.2.ebuild:
- Do not build doc unconditionally, restore USE=doc.
-
- 11 May 2012; Diego E. Pettenò <flameeyes@gentoo.org> bson-1.6.2.ebuild:
- Add support for ruby 1.9 (works fine).
-
-*bson-1.6.2 (05 Apr 2012)
-
- 05 Apr 2012; Diego E. Pettenò <flameeyes@gentoo.org> +bson-1.6.2.ebuild:
- Version bump.
-
-*bson-1.6.1 (08 Mar 2012)
-
- 08 Mar 2012; Diego E. Pettenò <flameeyes@gentoo.org> +bson-1.6.1.ebuild:
- Version bump.
-
-*bson-1.6.0 (22 Feb 2012)
-
- 22 Feb 2012; Diego E. Pettenò <flameeyes@gentoo.org> +bson-1.6.0.ebuild:
- Version bump.
-
-*bson-1.5.2 (28 Dec 2011)
-
- 28 Dec 2011; Diego E. Pettenò <flameeyes@gentoo.org> +bson-1.5.2.ebuild,
- +metadata.xml:
- Initial import of ebuild for bson (and bson_ext).
diff --git a/dev-ruby/bson/bson-2.0.0.ebuild b/dev-ruby/bson/bson-2.0.0.ebuild
new file mode 100644
index 000000000000..41a4d9689279
--- /dev/null
+++ b/dev-ruby/bson/bson-2.0.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/bson/bson-2.0.0.ebuild,v 1.1 2013/12/25 07:40:41 graaff Exp $
+
+EAPI=5
+# jruby → support needs to be written properly
+USE_RUBY="ruby18 ruby19 ruby20"
+
+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"
+RUBY_S="bson-ruby-${PV}"
+
+LICENSE="APSL-2"
+SLOT="2"
+KEYWORDS="~amd64"
+IUSE="test doc"
+
+ruby_add_bdepend \
+ "test? (
+ dev-ruby/rake
+ dev-ruby/shoulda
+ dev-ruby/mocha
+ dev-ruby/test-unit:2
+ )
+ doc? ( virtual/ruby-rdoc )"
+
+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() {
+ case ${RUBY} in
+ */ruby18|*/ruby19|*/ruby20)
+ ${RUBY} -C ext/bson extconf.rb || die "extconf.rb failed"
+ ;;
+ */jruby)
+ ${RUBY} -S rake build:java || die "rake build:java failed"
+ ;;
+ esac
+}
+
+each_ruby_compile() {
+ case ${RUBY} in
+ */ruby18|*/ruby19|*/ruby20)
+ emake -C ext/bson V=1 CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}"
+ cp ext/bson/*$(get_modname) lib/ || die
+ ;;
+ */jruby)
+ die "missing in ebuild"
+ ;;
+ esac
+}