summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2008-09-23 19:03:12 +0000
committerHans de Graaff <graaff@gentoo.org>2008-09-23 19:03:12 +0000
commita83703348cb4febe07f8864b59e5f3e0ff02034e (patch)
tree4ac1b4c3177b41bf24e1a1e0e9f5671ad45333d6 /dev-ruby/sqlite3-ruby
parentamd64 stable wrt security bug #237781 (diff)
downloadgentoo-2-a83703348cb4febe07f8864b59e5f3e0ff02034e.tar.gz
gentoo-2-a83703348cb4febe07f8864b59e5f3e0ff02034e.tar.bz2
gentoo-2-a83703348cb4febe07f8864b59e5f3e0ff02034e.zip
Version bump
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-ruby/sqlite3-ruby')
-rw-r--r--dev-ruby/sqlite3-ruby/ChangeLog9
-rw-r--r--dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.4.ebuild59
2 files changed, 67 insertions, 1 deletions
diff --git a/dev-ruby/sqlite3-ruby/ChangeLog b/dev-ruby/sqlite3-ruby/ChangeLog
index d9406eedf9a6..dc3442095075 100644
--- a/dev-ruby/sqlite3-ruby/ChangeLog
+++ b/dev-ruby/sqlite3-ruby/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-ruby/sqlite3-ruby
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sqlite3-ruby/ChangeLog,v 1.22 2008/08/06 16:44:13 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sqlite3-ruby/ChangeLog,v 1.23 2008/09/23 19:03:12 graaff Exp $
+
+*sqlite3-ruby-1.2.4 (23 Sep 2008)
+
+ 23 Sep 2008; Hans de Graaff <graaff@gentoo.org>
+ +sqlite3-ruby-1.2.4.ebuild:
+ Version bump, moved from ruby overlay. Thanks for Alex Legler for preparing
+ and testing it.
06 Aug 2008; Hans de Graaff <graaff@gentoo.org> metadata.xml:
Add USE flag description to metadata wrt GLEP 56.
diff --git a/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.4.ebuild b/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.4.ebuild
new file mode 100644
index 000000000000..96e25e478fc4
--- /dev/null
+++ b/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2008 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.4.ebuild,v 1.1 2008/09/23 19:03:12 graaff 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="mirror://rubyforge/sqlite-ruby/${P}.tar.bz2"
+
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+SLOT="0"
+IUSE="doc swig"
+
+USE_RUBY="ruby18 ruby19"
+RDEPEND="=dev-db/sqlite-3*"
+DEPEND="${RDEPEND}
+ 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
+ elog "${PN} will work a lot better with swig; it is suggested"
+ elog "that you install swig with the 'ruby' USE flag, and then"
+ elog "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.rdoc CHANGELOG.rdoc
+
+ dohtml doc/faq/faq.html
+
+ if use doc ; then
+ dohtml -r -V api
+ fi
+}