/[gentoo-x86]/dev-ruby/dbd-pg/dbd-pg-0.3.9.ebuild
Gentoo

Contents of /dev-ruby/dbd-pg/dbd-pg-0.3.9.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sun Sep 2 09:05:30 2012 UTC (19 months, 2 weeks ago) by flameeyes
Branch: MAIN
Changes since 1.5: +2 -2 lines
Fix dependency for renamed package.

(Portage version: 2.2.0_alpha123/cvs/Linux x86_64)

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/dbd-pg/dbd-pg-0.3.9.ebuild,v 1.5 2012/08/21 16:37:49 johu Exp $
4
5 EAPI=2
6 USE_RUBY="ruby18"
7
8 inherit ruby-ng
9
10 DESCRIPTION="The PostgreSQL database driver (DBD) for Ruby/DBI"
11 HOMEPAGE="http://ruby-dbi.rubyforge.org"
12 SRC_URI="mirror://rubyforge/ruby-dbi/${P}.tar.gz"
13
14 LICENSE="BSD"
15 SLOT="0"
16 KEYWORDS="amd64 ~ppc x86"
17 IUSE="test"
18
19 ruby_add_rdepend "
20 >=dev-ruby/dbi-0.4.2
21 dev-ruby/pg"
22
23 src_test() {
24 elog "The tests require additional configuration."
25 elog "You will find them in /usr/share/${PN}/test/"
26 elog "Be sure to read the file called DBD_TESTS."
27 }
28
29 each_ruby_configure() {
30 ${RUBY} setup.rb config --prefix=/usr || die
31 }
32
33 each_ruby_install() {
34 ${RUBY} setup.rb install --prefix="${D}" || die "setup.rb install failed"
35 }
36
37 all_ruby_install() {
38 if use test; then
39 dodir /usr/share/${PN}
40 cp -pPR test "${D}/usr/share/${PN}" || die "couldn't copy tests"
41 fi
42 }

  ViewVC Help
Powered by ViewVC 1.1.20