summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-01-28 20:52:09 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-01-28 20:52:09 +0000
commit570d6fa94359af891ba263603cffa2974adad01f (patch)
tree6f8996edc1be27d2221342305c1e9303197a4266
parentAdd systemd support, bug 376021 (diff)
downloadgentoo-2-570d6fa94359af891ba263603cffa2974adad01f.tar.gz
gentoo-2-570d6fa94359af891ba263603cffa2974adad01f.tar.bz2
gentoo-2-570d6fa94359af891ba263603cffa2974adad01f.zip
Version bump.
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
-rw-r--r--dev-ruby/mongoid/ChangeLog7
-rw-r--r--dev-ruby/mongoid/mongoid-2.4.3.ebuild79
2 files changed, 85 insertions, 1 deletions
diff --git a/dev-ruby/mongoid/ChangeLog b/dev-ruby/mongoid/ChangeLog
index d2520e3c686e..e0436e922459 100644
--- a/dev-ruby/mongoid/ChangeLog
+++ b/dev-ruby/mongoid/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/mongoid
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/ChangeLog,v 1.4 2012/01/23 02:32:13 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/ChangeLog,v 1.5 2012/01/28 20:52:09 flameeyes Exp $
+
+*mongoid-2.4.3 (28 Jan 2012)
+
+ 28 Jan 2012; Diego E. Pettenò <flameeyes@gentoo.org> +mongoid-2.4.3.ebuild:
+ Version bump.
*mongoid-2.4.2 (23 Jan 2012)
diff --git a/dev-ruby/mongoid/mongoid-2.4.3.ebuild b/dev-ruby/mongoid/mongoid-2.4.3.ebuild
new file mode 100644
index 000000000000..0b22c64438c1
--- /dev/null
+++ b/dev-ruby/mongoid/mongoid-2.4.3.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongoid/mongoid-2.4.3.ebuild,v 1.1 2012/01/28 20:52:09 flameeyes Exp $
+
+EAPI=4
+USE_RUBY="ruby18"
+
+#RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_TASK_TEST="spec:unit"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
+
+GITHUB_USER="${PN}"
+GITHUB_PROJECT="${PN}"
+RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*"
+
+inherit ruby-fakegem
+
+DESCRIPTION="ODM (Object Document Mapper) Framework for MongoDB"
+HOMEPAGE="http://mongoid.org/"
+SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/tarball/v${PV} -> ${GITHUB_PROJECT}-${PV}.tar.gz"
+LICENSE="MIT"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="test"
+
+# there is support to create a custom mongodb instance now but there are
+# still issues to be fixed.
+#RESTRICT="test"
+
+ruby_add_rdepend "
+ >=dev-ruby/activemodel-3.1
+ >=dev-ruby/mongo-1.3
+ >=dev-ruby/tzinfo-0.3.22
+"
+
+ruby_add_bdepend "
+ test? (
+ dev-ruby/ammeter
+ dev-ruby/mocha
+ dev-ruby/rdoc
+ dev-ruby/rspec
+ dev-util/watchr
+ )"
+
+DEPEND+=" test? ( dev-db/mongodb )"
+
+all_ruby_prepare() {
+ # remove references to bundler, as the gemfile does not add anything
+ # we need to care about.
+ sed -i -e '/[bB]undler/d' Rakefile || die
+ # remove the Gemfile as well or it'll try to load it during testing
+ rm Gemfile || die
+}
+
+each_ruby_test() {
+ mkdir "${T}/mongodb_$(basename $RUBY)"
+ mongod --port 27017 --dbpath "${T}/mongodb_$(basename $RUBY)" \
+ --noprealloc --noauth --nohttpinterface --nounixsocket --nojournal \
+ --bind_ip 127.255.255.254 &
+ mongod_pid=$!
+ failed=0
+
+ sleep 2
+
+ export MONGOID_SPEC_HOST="127.255.255.254"
+ export MONGOID_SPEC_PORT="27017"
+
+ # functional testing crashes Ruby from within Portage, but works
+ # outside of it, needs to be investigated thoroughly, but at least
+ # unit testing works.
+ ${RUBY} -S rake spec:unit || failed=1
+ kill "${mongod_pid}"
+
+ [[ "${failed}" == "1" ]] && die "tests failed"
+}