blob: 10d3a49202ac07409b5f8c9e243355903ef89a43 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2012 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.8.1-r2.ebuild,v 1.5 2012/05/01 18:24:16 armin76 Exp $
EAPI="2"
USE_RUBY="ruby18 ree18 ruby19"
RUBY_FAKEGEM_NAME="mysql"
RUBY_FAKEGEM_TASK_TEST=""
RUBY_FAKEGEM_TASK_DOC=""
inherit ruby-fakegem
DESCRIPTION="A Ruby extension library to use MySQL"
HOMEPAGE="http://www.tmtm.org/en/mysql/ruby/"
SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~hppa ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd"
IUSE="test"
DEPEND="virtual/mysql"
RDEPEND="${DEPEND}"
TEST_DIR="/usr/share/${PN}/test/"
#all_ruby_prepare() {
# epatch "${FILESDIR}/${P}-test.patch"
#}
each_ruby_configure() {
${RUBY} extconf.rb || die
}
each_ruby_compile() {
emake || die
}
each_ruby_install() {
emake DESTDIR="${D}" install || die
ruby_fakegem_install_gemspec
}
all_fakegem_install() {
dohtml * || die
if use test ; then
insinto $TEST_DIR
doins test.rb || die
fi
}
src_test() {
elog
elog "To test the library you need to start MySQL first."
elog "Then run:"
elog
elog " % ruby ${TEST_DIR}test.rb <hostname> <user> <password>"
elog
elog "See /usr/share/doc/${PF}/html/README.html for details."
elog
}
|