/[gentoo-x86]/dev-ruby/dbd-odbc/dbd-odbc-0.2.5-r1.ebuild
Gentoo

Contents of /dev-ruby/dbd-odbc/dbd-odbc-0.2.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (hide annotations) (download)
Tue Aug 21 16:26:35 2012 UTC (2 years ago) by johu
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable for x86, wrt bug #429976

(Portage version: 2.2.0_alpha121/cvs/Linux i686)

1 armin76 1.2 # Copyright 1999-2012 Gentoo Foundation
2 graaff 1.1 # Distributed under the terms of the GNU General Public License v2
3 johu 1.4 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/dbd-odbc/dbd-odbc-0.2.5-r1.ebuild,v 1.3 2012/08/06 17:46:55 ago Exp $
4 graaff 1.1
5     EAPI=2
6     USE_RUBY="ruby18"
7    
8     inherit ruby-ng
9    
10     DESCRIPTION="The ODBC 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 johu 1.4 KEYWORDS="amd64 ~ppc x86"
17 graaff 1.1 IUSE="test"
18    
19     ruby_add_rdepend "
20     >=dev-ruby/ruby-dbi-0.4.2
21     dev-ruby/ruby-odbc"
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 "Installation 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