diff options
author | Hans de Graaff <graaff@gentoo.org> | 2010-01-30 09:15:02 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2010-01-30 09:15:02 +0000 |
commit | 9e378b6fd5d3ac669e2ae5f31bda879d7dab0571 (patch) | |
tree | 92d2172ee0645f10090c961c440539ba9b9190cc /dev-ruby/sqlite-ruby/sqlite-ruby-2.2.3-r2.ebuild | |
parent | Fixed automagic deps on libacl and libattr. (diff) | |
download | historical-9e378b6fd5d3ac669e2ae5f31bda879d7dab0571.tar.gz historical-9e378b6fd5d3ac669e2ae5f31bda879d7dab0571.tar.bz2 historical-9e378b6fd5d3ac669e2ae5f31bda879d7dab0571.zip |
Convert to ruby-fakegem. Apply ruby19 patch from ruby overlay.
Package-Manager: portage-2.1.7.16/cvs/Linux x86_64
Diffstat (limited to 'dev-ruby/sqlite-ruby/sqlite-ruby-2.2.3-r2.ebuild')
-rw-r--r-- | dev-ruby/sqlite-ruby/sqlite-ruby-2.2.3-r2.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-ruby/sqlite-ruby/sqlite-ruby-2.2.3-r2.ebuild b/dev-ruby/sqlite-ruby/sqlite-ruby-2.2.3-r2.ebuild new file mode 100644 index 000000000000..905d9944dcc7 --- /dev/null +++ b/dev-ruby/sqlite-ruby/sqlite-ruby-2.2.3-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/sqlite-ruby/sqlite-ruby-2.2.3-r2.ebuild,v 1.1 2010/01/30 09:15:01 graaff Exp $ + +EAPI="2" +USE_RUBY="ruby18 ruby19" + +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="README" + +inherit ruby-fakegem + +DESCRIPTION="An extension library to access a SQLite database from Ruby" +HOMEPAGE="http://rubyforge.org/projects/sqlite-ruby/" +LICENSE="BSD" + +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +SLOT="0" +IUSE="" + +RUBY_PATCHES=( "${P}-19compat.patch" ) + +DEPEND="=dev-db/sqlite-2*" + +each_ruby_configure() { + pushd ext + ${RUBY} extconf.rb || die "Configuration failed." + popd +} + +each_ruby_compile() { + pushd ext + emake || die "Compilation failed." + popd + cp ext/sqlite_api.so lib || die "Unable to cp shared library." +} + +each_ruby_test() { + ${RUBY} test/tests.rb || die "Tests failed." +} + +all_ruby_install() { + all_fakegem_install + + dohtml -r doc/faq +} |