blob: c0c17d4789c9e63adc6efd47a4905ce26e0716a5 (
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
43
44
45
46
47
|
# Copyright 1999-2007 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.7.3.ebuild,v 1.2 2007/03/14 03:20:48 tgall 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/downloads/mysql/ruby/${P}.tar.gz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
USE_RUBY="ruby18 ruby19"
DEPEND="virtual/ruby
virtual/mysql"
src_unpack() {
unpack ${A}
if use hppa; then
sed -e 's/LONG_LONG/long long/' -i "${S}"/mysql.c.in
fi
}
src_compile() {
ruby extconf.rb || die
emake || die
}
src_install() {
make DESTDIR=${D} install || die
dohtml *
}
src_test() {
elog
elog "To test the programme you need to start mysql first."
elog "Then extract the tarball and run"
elog
elog " % ruby test.rb hostname user password"
elog
elog "See /usr/share/doc/${PF}/html/README.html for detail."
elog
}
|