diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-01-16 20:54:15 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2012-01-16 20:54:15 +0000 |
commit | 9c640b2da5f0461200fc2a65572bfd24be3ea064 (patch) | |
tree | 6cca2bebd36323cbc9fc11c04329ab7550be1d9d /dev-ruby/mongoid | |
parent | Tweak description. (diff) | |
download | gentoo-2-9c640b2da5f0461200fc2a65572bfd24be3ea064.tar.gz gentoo-2-9c640b2da5f0461200fc2a65572bfd24be3ea064.tar.bz2 gentoo-2-9c640b2da5f0461200fc2a65572bfd24be3ea064.zip |
Initial import of mongoid ODM/ORM for Rails 3.1. Tests require to be wired in with a custom mongod instance.
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/mongoid')
-rw-r--r-- | dev-ruby/mongoid/ChangeLog | 11 | ||||
-rw-r--r-- | dev-ruby/mongoid/metadata.xml | 5 | ||||
-rw-r--r-- | dev-ruby/mongoid/mongoid-2.4.1.ebuild | 55 |
3 files changed, 71 insertions, 0 deletions
diff --git a/dev-ruby/mongoid/ChangeLog b/dev-ruby/mongoid/ChangeLog new file mode 100644 index 000000000000..365b4d90bf29 --- /dev/null +++ b/dev-ruby/mongoid/ChangeLog @@ -0,0 +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.1 2012/01/16 20:54:15 flameeyes Exp $ + +*mongoid-2.4.1 (16 Jan 2012) + + 16 Jan 2012; Diego E. Pettenò <flameeyes@gentoo.org> +metadata.xml, + +mongoid-2.4.1.ebuild: + Initial import of mongoid ODM/ORM for Rails 3.1. Tests require to be wired in + with a custom mongod instance. + diff --git a/dev-ruby/mongoid/metadata.xml b/dev-ruby/mongoid/metadata.xml new file mode 100644 index 000000000000..852136183369 --- /dev/null +++ b/dev-ruby/mongoid/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>ruby</herd> +</pkgmetadata> diff --git a/dev-ruby/mongoid/mongoid-2.4.1.ebuild b/dev-ruby/mongoid/mongoid-2.4.1.ebuild new file mode 100644 index 000000000000..5fba95f848fa --- /dev/null +++ b/dev-ruby/mongoid/mongoid-2.4.1.ebuild @@ -0,0 +1,55 @@ +# 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.1.ebuild,v 1.1 2012/01/16 20:54:15 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="http://mongoid.org/" +HOMEPAGE="ODM (Object Document Mapper) Framework for MongoDB" +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" + +# Testing requires a running system mongodb instance — and that's bad; +# instead restrict them for now; we'll get to it. +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 + )" + +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 +} |