blob: 784492faeabf5fa44c07f46c3fef105ca95970a1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Geert Bevin <gbevin@uwyn.com>
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-dbi/ruby-dbi-0.0.15.ebuild,v 1.1 2002/06/21 23:25:36 rphillips Exp $
S=${WORKDIR}/ruby-dbi-all
DESCRIPTION="Ruby/DBI - a database independent interface for accessing databases - similar to Perl's DBI"
SRC_URI="mirror://sourceforge/ruby-dbi/ruby-dbi-all-${PV}.tar.gz"
HOMEPAGE="http://ruby-dbi.sourceforge.net/"
DEPEND="=dev-lang/ruby-1.6*
mysql? ( >=dev-db/mysql-3.23.49 )
postgres? ( >=dev-db/postgresql-7.1.3-r4 )
firebird? ( >=dev-db/firebird-1.0-r1 )
odbc? ( >=dev-db/unixODBC-2.0.6 )"
src_compile() {
my_config="dbi,dbd_proxy,dbd_sqlrelay"
use mysql && my_config="$my_config,dbd_mysql"
use postgres && my_config="$my_config,dbd_pg"
use firebird && my_config="$my_config,dbd_interbase"
use odbc && my_config="$my_config,dbd_odbc"
ruby setup.rb config --with=$my_config \
--bin-dir="${D}/usr/bin" \
--rb-dir="${D}/usr/lib/ruby/site_ruby/1.6" \
--so-dir="${D}/usr/lib/ruby/site_ruby/1.6/i686-linux-gnu" || die
ruby setup.rb setup || die
}
src_install () {
dodir /usr/bin
dodir /usr/lib/ruby/site_ruby/1.6
dodir /usr/lib/ruby/site_ruby/1.6/i686-linux-gnu
ruby setup.rb install || die
dodoc LICENSE README
}
|