/[gentoo-x86]/dev-ruby/sqlite-ruby/sqlite-ruby-2.2.2.ebuild
Gentoo

Contents of /dev-ruby/sqlite-ruby/sqlite-ruby-2.2.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Fri Mar 23 11:29:05 2007 UTC (7 years, 6 months ago) by rbrown
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Remove old versions
(Portage version: 2.1.2.2)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/sqlite-ruby/sqlite-ruby-2.2.2.ebuild,v 1.10 2006/06/06 16:54:00 blubb Exp $
4
5 inherit ruby
6
7 DESCRIPTION="An extension library to access a SQLite database from Ruby"
8 HOMEPAGE="http://rubyforge.org/projects/sqlite-ruby/"
9 LICENSE="BSD"
10
11 # The URL depends implicitly on the version, unfortunately. Even if you
12 # change the filename on the end, it still downloads the same file.
13 SRC_URI="http://rubyforge.org/frs/download.php/1901/${P}.tar.bz2"
14
15 KEYWORDS="alpha ~amd64 ~hppa ~mips ppc sparc x86"
16 SLOT="0"
17 IUSE=""
18
19 USE_RUBY="ruby18 ruby19"
20 DEPEND="=dev-db/sqlite-2*"
21
22 src_compile() {
23 mkdir build
24 cp ext/extconf.rb ext/sqlite-api.c build
25 cp -r lib build
26 cd build
27 ruby extconf.rb || die "ruby extconf.rb failed"
28 make || die "make failed"
29 }
30
31 src_install() {
32 cd build
33 make DESTDIR=${D} install || die "make install failed"
34 cd ${S}
35 erubydoc
36 }
37
38 src_test() {
39 cd test
40 ruby tests.rb || die "tests.rb failed"
41 }

  ViewVC Help
Powered by ViewVC 1.1.20