| 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/dbd-pg/dbd-pg-0.3.9.ebuild,v 1.6 2012/09/02 09:05:30 flameeyes Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
USE_RUBY="ruby18"
|
| 7 |
|
| 8 |
inherit ruby-ng
|
| 9 |
|
| 10 |
DESCRIPTION="The PostgreSQL database driver (DBD) for Ruby/DBI"
|
| 11 |
HOMEPAGE="http://ruby-dbi.rubyforge.org"
|
| 12 |
SRC_URI="mirror://rubyforge/ruby-dbi/${P}.tar.gz"
|
| 13 |
|
| 14 |
LICENSE="BSD"
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS="amd64 ppc x86"
|
| 17 |
IUSE="test"
|
| 18 |
|
| 19 |
ruby_add_rdepend "
|
| 20 |
>=dev-ruby/dbi-0.4.2
|
| 21 |
dev-ruby/pg"
|
| 22 |
|
| 23 |
src_test() {
|
| 24 |
elog "The tests require additional configuration."
|
| 25 |
elog "You will find them in /usr/share/${PN}/test/"
|
| 26 |
elog "Be sure to read the file called DBD_TESTS."
|
| 27 |
}
|
| 28 |
|
| 29 |
each_ruby_configure() {
|
| 30 |
${RUBY} setup.rb config --prefix=/usr || die
|
| 31 |
}
|
| 32 |
|
| 33 |
each_ruby_install() {
|
| 34 |
${RUBY} setup.rb install --prefix="${D}" || die "setup.rb install failed"
|
| 35 |
}
|
| 36 |
|
| 37 |
all_ruby_install() {
|
| 38 |
if use test; then
|
| 39 |
dodir /usr/share/${PN}
|
| 40 |
cp -pPR test "${D}/usr/share/${PN}" || die "couldn't copy tests"
|
| 41 |
fi
|
| 42 |
}
|