blob: 12622a054c36b87711a4069a04ddab6db970e90d (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-oci8/ruby-oci8-2.0.6.ebuild,v 1.1 2011/11/06 10:25:30 graaff Exp $
EAPI="2"
USE_RUBY="ruby18 ruby19"
inherit ruby-ng
DESCRIPTION="A Ruby library for Oracle"
HOMEPAGE="http://rubyforge.org/projects/ruby-oci8/"
SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="dev-db/oracle-instantclient-basic"
DEPEND="${RDEPEND}"
each_ruby_configure() {
${RUBY} setup.rb config --prefix="${D}/usr" || die "configure failed"
}
each_ruby_compile() {
${RUBY} setup.rb setup || die "compile failed"
}
each_ruby_install() {
${RUBY} setup.rb install || die "install failed"
}
all_ruby_install() {
for i in NEWS README ChangeLog
do test -e $i && dodoc $i
done
}
pkg_postinst() {
test -e "/usr/share/doc/${PF}/NEWS.bz2" && \
elog "Please read /usr/share/doc/${PF}/NEWS.bz2 for major change information in ${P}"
}
|