| 1 |
xarthisius |
1.8 |
# Copyright 1999-2011 Gentoo Foundation
|
| 2 |
a3li |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
xarthisius |
1.8 |
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/dbd-sqlite3/dbd-sqlite3-1.2.5.ebuild,v 1.7 2010/09/05 16:18:45 armin76 Exp $
|
| 4 |
a3li |
1.1 |
|
| 5 |
|
|
inherit "ruby"
|
| 6 |
|
|
|
| 7 |
|
|
DESCRIPTION="The SQLite 3 database driver (DBD) for Ruby/DBI"
|
| 8 |
|
|
HOMEPAGE="http://ruby-dbi.rubyforge.org"
|
| 9 |
|
|
SRC_URI="mirror://rubyforge/ruby-dbi/${P}.tar.gz"
|
| 10 |
|
|
|
| 11 |
|
|
LICENSE="BSD"
|
| 12 |
|
|
SLOT="0"
|
| 13 |
xarthisius |
1.8 |
KEYWORDS="amd64 ia64 ppc ~sparc x86"
|
| 14 |
a3li |
1.1 |
IUSE="test"
|
| 15 |
|
|
|
| 16 |
graaff |
1.4 |
RDEPEND="
|
| 17 |
a3li |
1.1 |
>=dev-ruby/ruby-dbi-0.4.2
|
| 18 |
|
|
>=dev-ruby/sqlite3-ruby-1.2.4"
|
| 19 |
|
|
|
| 20 |
|
|
USE_RUBY="ruby18"
|
| 21 |
|
|
|
| 22 |
|
|
src_test() {
|
| 23 |
|
|
elog "The tests require additional configuration."
|
| 24 |
|
|
elog "You will find them in /usr/share/${PN}/test/"
|
| 25 |
|
|
elog "Be sure to read the file called DBD_TESTS."
|
| 26 |
|
|
}
|
| 27 |
|
|
|
| 28 |
|
|
src_install() {
|
| 29 |
|
|
ruby setup.rb install \
|
| 30 |
|
|
--prefix="${D}" || die "setup.rb install failed"
|
| 31 |
|
|
|
| 32 |
|
|
if use test; then
|
| 33 |
|
|
dodir /usr/share/${PN}
|
| 34 |
|
|
cp -pPR test "${D}/usr/share/${PN}" || die "couldn't copy tests"
|
| 35 |
|
|
fi
|
| 36 |
|
|
}
|