blob: 8b1972c7ad8ddcd8911d5b901b14cc63d5a810c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# 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.7 2010/09/30 01:43:32 ranger Exp $
EAPI="2"
USE_RUBY="ruby18"
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=""
DEPEND="${DEPEND}
=dev-db/sqlite-2*"
RDEPEND="${RDEPEND}
=dev-db/sqlite-2*"
each_ruby_configure() {
${RUBY} -Cext extconf.rb || die "Configuration failed."
}
each_ruby_compile() {
emake -Cext || die "Compilation failed."
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
}
|