| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mongo/mongo-1.6.2.ebuild,v 1.1 2012/04/05 19:40:37 flameeyes Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
USE_RUBY="ruby18 ree18 ruby19"
|
| 8 |
|
| 9 |
RUBY_FAKEGEM_TASK_TEST="test:unit"
|
| 10 |
|
| 11 |
RUBY_FAKEGEM_TASK_DOC="rdoc"
|
| 12 |
RUBY_FAKEGEM_DOCDIR="html"
|
| 13 |
RUBY_FAKEGEM_EXTRADOC=""
|
| 14 |
|
| 15 |
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
|
| 16 |
|
| 17 |
GITHUB_USER="mongodb"
|
| 18 |
GITHUB_PROJECT="mongo-ruby-driver"
|
| 19 |
RUBY_S="${GITHUB_USER}-${GITHUB_PROJECT}-*"
|
| 20 |
|
| 21 |
inherit ruby-fakegem
|
| 22 |
|
| 23 |
DESCRIPTION="A Ruby driver for MongoDB."
|
| 24 |
HOMEPAGE="http://www.mongodb.org/"
|
| 25 |
SRC_URI="https://github.com/${GITHUB_USER}/${GITHUB_PROJECT}/tarball/${PV} -> ${GITHUB_PROJECT}-${PV}.tar.gz"
|
| 26 |
|
| 27 |
LICENSE="APSL-2"
|
| 28 |
SLOT="0"
|
| 29 |
KEYWORDS="~amd64"
|
| 30 |
IUSE="test"
|
| 31 |
|
| 32 |
# This is the same source package as bson, so keep them the same
|
| 33 |
# version, but not revision
|
| 34 |
ruby_add_rdepend "~dev-ruby/bson-${PV}"
|
| 35 |
|
| 36 |
ruby_add_bdepend \
|
| 37 |
"test? (
|
| 38 |
dev-ruby/rake
|
| 39 |
dev-ruby/shoulda
|
| 40 |
dev-ruby/mocha
|
| 41 |
)"
|
| 42 |
|
| 43 |
all_ruby_prepare() {
|
| 44 |
# remove the stuff that is actually part of dev-ruby/bson
|
| 45 |
rm -rf lib/bson* bin/{b2j,j2b}son
|
| 46 |
}
|