summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2009-08-26 22:17:15 +0000
committerAlex Legler <a3li@gentoo.org>2009-08-26 22:17:15 +0000
commit457dc7f629939f8b96ff7ccb042d34cf7b1b42f4 (patch)
tree183f733fb349440b4be4d848ed7b218899a71ab3 /dev-ruby/ruby-dbi
parentBump to 39 as requested by upstream (diff)
downloadgentoo-2-457dc7f629939f8b96ff7ccb042d34cf7b1b42f4.tar.gz
gentoo-2-457dc7f629939f8b96ff7ccb042d34cf7b1b42f4.tar.bz2
gentoo-2-457dc7f629939f8b96ff7ccb042d34cf7b1b42f4.zip
Version bump, PDEPENDed database drivers will follow shortly.
(Portage version: 2.2_rc33/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'dev-ruby/ruby-dbi')
-rw-r--r--dev-ruby/ruby-dbi/ChangeLog8
-rw-r--r--dev-ruby/ruby-dbi/ruby-dbi-0.4.2.ebuild59
2 files changed, 66 insertions, 1 deletions
diff --git a/dev-ruby/ruby-dbi/ChangeLog b/dev-ruby/ruby-dbi/ChangeLog
index c902a34be22d..c28abb596b14 100644
--- a/dev-ruby/ruby-dbi/ChangeLog
+++ b/dev-ruby/ruby-dbi/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/ruby-dbi
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-dbi/ChangeLog,v 1.36 2009/08/09 13:43:41 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-dbi/ChangeLog,v 1.37 2009/08/26 22:17:15 a3li Exp $
+
+*ruby-dbi-0.4.2 (26 Aug 2009)
+
+ 26 Aug 2009; Alex Legler <a3li@gentoo.org> +ruby-dbi-0.4.2.ebuild:
+ Version bump. Now with modular database drivers. Dropped keywords due to
+ the introduction of dev-ruby/deprecated as a new dependency.
09 Aug 2009; Hans de Graaff <graaff@gentoo.org> -ruby-dbi-0.1.1.ebuild:
Remove old version.
diff --git a/dev-ruby/ruby-dbi/ruby-dbi-0.4.2.ebuild b/dev-ruby/ruby-dbi/ruby-dbi-0.4.2.ebuild
new file mode 100644
index 000000000000..9cd5ae32043c
--- /dev/null
+++ b/dev-ruby/ruby-dbi/ruby-dbi-0.4.2.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2009 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.4.2.ebuild,v 1.1 2009/08/26 22:17:15 a3li Exp $
+
+inherit "ruby"
+
+MY_P=${P##ruby-}
+
+DESCRIPTION="Ruby/DBI - a database independent interface for accessing databases - similar to Perl's DBI"
+HOMEPAGE="http://ruby-dbi.rubyforge.org"
+SRC_URI="mirror://rubyforge/ruby-dbi/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples odbc postgres mysql sqlite sqlite3 test"
+
+DEPEND="
+ virtual/ruby
+ dev-ruby/deprecated
+ test? ( dev-ruby/test-unit )"
+RDEPEND="${DEPEND}"
+PDEPEND="
+ mysql? ( dev-ruby/dbd-mysql )
+ postgres? ( dev-ruby/dbd-pg )
+ odbc? ( dev-ruby/dbd-odbc )
+ sqlite? ( dev-ruby/dbd-sqlite )
+ sqlite3? ( dev-ruby/dbd-sqlite3 )"
+
+S="${WORKDIR}/${MY_P}"
+USE_RUBY="ruby18 ruby19"
+
+src_test() {
+ for rb in $USE_RUBY; do
+ ebegin "Testing for ${rb}"
+ ${rb} setup.rb test || die "test failed"
+ eend $?
+ done
+}
+
+src_install() {
+ ruby setup.rb install \
+ --prefix="${D}" || die
+
+ dodoc README
+
+ if use examples ; then
+ cp -pPR examples "${D}/usr/share/doc/${PF}" || die "cp examples failed"
+ fi
+}
+
+pkg_postinst() {
+ if ! (use mysql || use postgres || use odbc || use sqlite || use sqlite3)
+ then
+ elog "${P} now comes with external database drivers."
+ elog "Be sure to set the right USE flags for ${PN} or emerge the drivers manually:"
+ elog "They are called dev-ruby/dbd-{mysql,odbc,pg,sqlite,sqlite3}"
+ fi
+}