diff options
author | Richard Brown <rbrown@gentoo.org> | 2007-05-24 15:47:03 +0000 |
---|---|---|
committer | Richard Brown <rbrown@gentoo.org> | 2007-05-24 15:47:03 +0000 |
commit | e85621c8e657b9a86eef61e66bd5ae054ac5330e (patch) | |
tree | 21f0da470e26e0ff5785b62f87fd6e23c91cf7db | |
parent | Add flexmock-0.0.3 (diff) | |
download | rbrown-e85621c8e657b9a86eef61e66bd5ae054ac5330e.tar.gz rbrown-e85621c8e657b9a86eef61e66bd5ae054ac5330e.tar.bz2 rbrown-e85621c8e657b9a86eef61e66bd5ae054ac5330e.zip |
Bump sqlite3-ruby for tests
svn path=/; revision=27
-rw-r--r-- | dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1-r1.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1-r1.ebuild b/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1-r1.ebuild new file mode 100644 index 0000000..94ac6d7 --- /dev/null +++ b/dev-ruby/sqlite3-ruby/sqlite3-ruby-1.2.1-r1.ebuild @@ -0,0 +1,62 @@ +# 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.3 2007/03/04 00:15:40 genone Exp $ + +inherit ruby + +DESCRIPTION="An extension library to access a SQLite database from Ruby" +HOMEPAGE="http://rubyforge.org/projects/sqlite-ruby/" +LICENSE="BSD" +EAPI="paludis-1" + +SRC_URI="http://rubyforge.org/frs/download.php/17096/${P}.tar.bz2" + +KEYWORDS="~sparc ~x86 ~amd64" +SLOT="0" +IUSE="doc swig" + +USE_RUBY="ruby18 ruby19" + +RDEPEND="dev-db/sqlite:3" +DEPEND="${RDEPEND} + swig? ( dev-lang/swig[ruby] ) + dev-ruby/rake + dev-ruby/flexmock:0.0.3" + +pkg_setup() { + if ! 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_test() { + rake test --trace || die "rake test 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 +} |