summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Brown <rbrown@gentoo.org>2008-03-16 21:18:31 +0000
committerRichard Brown <rbrown@gentoo.org>2008-03-16 21:18:31 +0000
commit7051188a1a057ec7f14ac449637d523efc94561e (patch)
tree0c60a835017bfa7c431dc76ca3066edf98c8e87a /dev-ruby/ruby-dbi
parentversion bump. (diff)
downloadgentoo-2-7051188a1a057ec7f14ac449637d523efc94561e.tar.gz
gentoo-2-7051188a1a057ec7f14ac449637d523efc94561e.tar.bz2
gentoo-2-7051188a1a057ec7f14ac449637d523efc94561e.zip
Version bump.
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-ruby/ruby-dbi')
-rw-r--r--dev-ruby/ruby-dbi/ChangeLog7
-rw-r--r--dev-ruby/ruby-dbi/ruby-dbi-0.2.0.ebuild53
2 files changed, 59 insertions, 1 deletions
diff --git a/dev-ruby/ruby-dbi/ChangeLog b/dev-ruby/ruby-dbi/ChangeLog
index 49df69099674..01f4f8ba2ce8 100644
--- a/dev-ruby/ruby-dbi/ChangeLog
+++ b/dev-ruby/ruby-dbi/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/ruby-dbi
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-dbi/ChangeLog,v 1.25 2008/01/02 14:33:03 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-dbi/ChangeLog,v 1.26 2008/03/16 21:18:31 rbrown Exp $
+
+*ruby-dbi-0.2.0 (16 Mar 2008)
+
+ 16 Mar 2008; Richard Brown <rbrown@gentoo.org> +ruby-dbi-0.2.0.ebuild:
+ Version bump.
02 Jan 2008; Raúl Porcel <armin76@gentoo.org> ruby-dbi-0.1.1.ebuild:
Re-add ~ia64
diff --git a/dev-ruby/ruby-dbi/ruby-dbi-0.2.0.ebuild b/dev-ruby/ruby-dbi/ruby-dbi-0.2.0.ebuild
new file mode 100644
index 000000000000..df5eb2526f1a
--- /dev/null
+++ b/dev-ruby/ruby-dbi/ruby-dbi-0.2.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-dbi/ruby-dbi-0.2.0.ebuild,v 1.1 2008/03/16 21:18:31 rbrown Exp $
+
+EAPI="1"
+
+inherit "ruby"
+
+DESCRIPTION="Ruby/DBI - a database independent interface for accessing databases - similar to Perl's DBI"
+HOMEPAGE="http://ruby-dbi.rubyforge.org"
+SRC_URI="http://rubyforge.org/frs/download.php/33959/dbi-${PV}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="examples firebird odbc postgres mysql sqlite sqlite3"
+
+DEPEND="virtual/ruby
+ mysql? ( dev-ruby/mysql-ruby )
+ postgres? ( dev-ruby/ruby-postgres )
+ firebird? ( >=dev-db/firebird-1.0-r1 )
+ odbc? ( dev-ruby/ruby-odbc )
+ sqlite? ( dev-db/sqlite:0 )
+ sqlite3? ( dev-db/sqlite:3 )"
+
+S="${WORKDIR}/dbi-${PV}"
+PATCHES="${FILESDIR}/ruby-dbi-destdir-gentoo.diff
+ ${FILESDIR}/ruby-dbi-0.1.1-destdir-gentoo.diff"
+
+src_compile() {
+ myconf="dbi,dbd_proxy,dbd_sqlrelay"
+ use mysql && myconf="${myconf},dbd_mysql"
+ use postgres && myconf="${myconf},dbd_pg"
+ use firebird && myconf="${myconf},dbd_interbase"
+ use odbc && myconf="${myconf},dbd_odbc"
+ use sqlite && myconf="${myconf},dbd_sqlite"
+ use sqlite3 && myconf="${myconf},dbd_sqlite3"
+
+ ruby setup.rb config \
+ --with=${myconf} --ruby-path=/usr/bin/ruby || die
+ ruby setup.rb setup || die
+}
+
+src_install() {
+
+ DESTDIR=${D} ruby setup.rb install || die
+
+ dodoc README
+
+ if use examples; then
+ cp -pPR examples "${D}/usr/share/doc/${PF}" || die "cp examples failed"
+ fi
+}