summaryrefslogtreecommitdiff
blob: 268bae199acb9fd7530d6bfb19f0f25d8f66f113 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-odbc/ruby-odbc-0.9997.ebuild,v 1.1 2009/08/24 19:45:06 graaff Exp $

inherit ruby
DESCRIPTION="RubyODBC - For accessing ODBC data sources from the Ruby language"
HOMEPAGE="http://www.ch-werner.de/rubyodbc/"
SRC_URI="http://www.ch-werner.de/rubyodbc/${P}.tar.gz"

LICENSE="|| ( GPL-2 Ruby )"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
USE_RUBY="ruby18"
IUSE="unicode"

DEPEND=">=dev-db/unixODBC-2.0.6"
RDEPEND="${DEPEND}"

src_compile() {
	ruby extconf.rb
	emake
	if use unicode ; then
		ruby -Cutf8 extconf.rb
		emake -C utf8
	fi
}

src_install() {
	ruby_einstall

	if use unicode ; then
		ruby_einstall -C utf8
	fi

	dodoc README
	dodoc ChangeLog
	dohtml  doc/odbc.html
}