/[gentoo-x86]/dev-ruby/ruby-bdb/ruby-bdb-0.6.5-r1.ebuild
Gentoo

Contents of /dev-ruby/ruby-bdb/ruby-bdb-0.6.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Sat Mar 15 23:37:11 2014 UTC (5 years, 7 months ago) by mrueg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +1 -1 lines
FILE REMOVED
dev-ruby/ruby-bdb removal - ruby18-only.

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-bdb/ruby-bdb-0.6.5-r1.ebuild,v 1.7 2012/09/16 07:38:50 graaff Exp $
4
5 EAPI=4
6
7 # ruby19 → configuration fails; jruby → compiled extension
8 USE_RUBY="ruby18 ree18"
9
10 inherit db-use ruby-ng
11
12 MY_P=${P/ruby-/}
13
14 DESCRIPTION="Ruby interface to Berkeley DB"
15 HOMEPAGE="http://moulon.inra.fr/ruby/bdb.html"
16 SRC_URI="ftp://moulon.inra.fr/pub/ruby/${MY_P}.tar.gz"
17
18 LICENSE="Ruby"
19 SLOT="0"
20 KEYWORDS="amd64 ppc x86 ~x86-fbsd"
21 IUSE="doc"
22
23 RUBY_S=${MY_P}
24
25 RDEPEND="${RDEPEND} >=sys-libs/db-3.2.9"
26 DEPEND="${DEPEND} >=sys-libs/db-3.2.9"
27
28 each_ruby_configure() {
29 ${RUBY} extconf.rb --with-db-include=$(db_includedir) \
30 --with-db-version=$(db_libname | sed -e 's:db::') \
31 || die "extconf failed"
32 }
33
34 each_ruby_compile() {
35 emake || die "emake failed"
36
37 if use doc; then
38 emake rdoc || die "rdoc failed"
39 fi
40 }
41
42 each_ruby_test() {
43 emake test || die "tests failed"
44 }
45
46 each_ruby_install() {
47 doruby src/bdb.so
48
49 dodoc README.en Changes || die
50 dohtml bdb.html || die
51
52 if use doc; then
53 pushd docs &>/dev/null
54 docinto api
55 dohtml -r doc || die
56 popd &>/dev/null
57 fi
58
59 insinto /usr/share/doc/${PF}/examples
60 doins -r examples/* || die
61 }

  ViewVC Help
Powered by ViewVC 1.1.20