summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Brown <rbrown@gentoo.org>2007-02-23 11:08:03 +0000
committerRichard Brown <rbrown@gentoo.org>2007-02-23 11:08:03 +0000
commit671ac9f1ffe85f483ace31fa50b907de13f55737 (patch)
treef4e743c4dbe16aa0f3a508aaed92cd26b47a861d /dev-ruby
parentstable x86; bug 167664 (diff)
downloadgentoo-2-671ac9f1ffe85f483ace31fa50b907de13f55737.tar.gz
gentoo-2-671ac9f1ffe85f483ace31fa50b907de13f55737.tar.bz2
gentoo-2-671ac9f1ffe85f483ace31fa50b907de13f55737.zip
Version bump, stop using gem.
(Portage version: 2.1.2-r9)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/sqlite3-ruby/ChangeLog9
-rw-r--r--dev-ruby/sqlite3-ruby/files/digest-sqlite3-ruby-1.2.13
-rw-r--r--dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1.ebuild57
3 files changed, 67 insertions, 2 deletions
diff --git a/dev-ruby/sqlite3-ruby/ChangeLog b/dev-ruby/sqlite3-ruby/ChangeLog
index c01a666b2ed6..5ae7115e06c6 100644
--- a/dev-ruby/sqlite3-ruby/ChangeLog
+++ b/dev-ruby/sqlite3-ruby/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ruby/sqlite3-ruby
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sqlite3-ruby/ChangeLog,v 1.11 2006/10/08 20:08:56 drizzt Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sqlite3-ruby/ChangeLog,v 1.12 2007/02/23 11:08:03 rbrown Exp $
+
+*sqlite3-ruby-1.2.1 (23 Feb 2007)
+
+ 23 Feb 2007; Richard Brown <rbrown@gentoo.org> +sqlite3-ruby-1.2.1.ebuild:
+ Version bump, stop using gem.
08 Oct 2006; Timothy Redaelli <drizzt@gentoo.org>
sqlite3-ruby-1.1.0.ebuild:
diff --git a/dev-ruby/sqlite3-ruby/files/digest-sqlite3-ruby-1.2.1 b/dev-ruby/sqlite3-ruby/files/digest-sqlite3-ruby-1.2.1
new file mode 100644
index 000000000000..0df5c091b82a
--- /dev/null
+++ b/dev-ruby/sqlite3-ruby/files/digest-sqlite3-ruby-1.2.1
@@ -0,0 +1,3 @@
+MD5 7ec13981e20bab8af024db3c1df4a602 sqlite3-ruby-1.2.1.tar.bz2 83105
+RMD160 de3042471a2e021e299c79c189fb35eb364f0128 sqlite3-ruby-1.2.1.tar.bz2 83105
+SHA256 7b1ebbf0597d5d020eae73ca21e358450db47691bab6a18ab8354f22bca36952 sqlite3-ruby-1.2.1.tar.bz2 83105
diff --git a/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1.ebuild b/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1.ebuild
new file mode 100644
index 000000000000..9fb75963948e
--- /dev/null
+++ b/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1.ebuild,v 1.1 2007/02/23 11:08:03 rbrown Exp $
+
+inherit ruby
+
+DESCRIPTION="An extension library to access a SQLite database from Ruby"
+HOMEPAGE="http://rubyforge.org/projects/sqlite-ruby/"
+LICENSE="BSD"
+
+SRC_URI="http://rubyforge.org/frs/download.php/17096/${P}.tar.bz2"
+
+KEYWORDS="~x86"
+SLOT="0"
+IUSE="doc swig"
+
+USE_RUBY="ruby18 ruby19"
+DEPEND="=dev-db/sqlite-3*
+ swig? ( dev-lang/swig )"
+
+pkg_setup() {
+ if use swig && ! built_with_use dev-lang/swig ruby ; then
+ eerror "You must compile swig with ruby bindings. Please add"
+ eerror "'ruby' to your USE flags and recompile swig"
+ die "swig needs ruby bindings"
+ elif ! use swig ; then
+ einfo "${PN} will work a lot better with swig; it is suggested"
+ einfo "that you install swig with the 'ruby' USE flag, and then"
+ einfo "install ${PN} with the swig USE flag"
+ ebeep
+ epause 5
+ fi
+}
+
+src_compile() {
+ myconf=""
+ if ! use swig ; then
+ myconf="--without-ext"
+ fi
+
+ ${RUBY} setup.rb config --prefix=/usr ${myconf} \
+ || die "setup.rb config failed"
+ ${RUBY} setup.rb setup \
+ || die "setup.rb setup failed"
+}
+
+src_install() {
+ ${RUBY} setup.rb install --prefix=${D} \
+ || die "setup.rb install failed"
+
+ dodoc README ChangeLog
+ dohtml doc/faq/faq.html
+
+ if use doc ; then
+ dohtml -r -V api
+ fi
+}