summaryrefslogtreecommitdiff
blob: d6c12f493e25b04cc1c319cad09f7e07e798cfa7 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/mysql-ruby-2.5.ebuild,v 1.4 2005/04/14 18:45:37 kloeri Exp $

inherit ruby

DESCRIPTION="A Ruby extension library to use MySQL"
HOMEPAGE="http://www.tmtm.org/en/mysql/ruby/"
SRC_URI="http://www.tmtm.org/en/mysql/ruby/${P}.tar.gz"

LICENSE="Ruby"
SLOT="0"
KEYWORDS="alpha ~hppa ~mips ~ppc sparc x86"
IUSE=""

USE_RUBY="ruby16 ruby18 ruby19"
DEPEND="virtual/ruby
	>=dev-db/mysql-3.23.58"

src_compile() {
	ruby extconf.rb || die
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die

	dohtml *
}

src_test() {
	einfo
	einfo "To test the programme you need to start mysql first."
	einfo "Then extract the tarball and run"
	einfo
	einfo "	% ruby test.rb hostname user password"
	einfo
	einfo "See /usr/share/doc/${PF}/html/README.html for detail."
	einfo
}