| 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-odbc/dbd-odbc-0.2.5-r1.ebuild,v 1.5 2012/09/02 09:04:51 flameeyes Exp $ |
| 4 |
|
| 5 |
EAPI=2 |
| 6 |
USE_RUBY="ruby18" |
| 7 |
|
| 8 |
inherit ruby-ng |
| 9 |
|
| 10 |
DESCRIPTION="The ODBC 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/ruby-odbc" |
| 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 "Installation 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 |
} |