blob: e73d239844e17f80df478c09bac602d85c940599 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# 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 flag-o-matic
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="~amd64 ~sparc ~x86"
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"
else
rm ext/sqlite3_api/sqlite3_api_wrap.c || die "unable to remove swig file"
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
}
|