/[gentoo-x86]/dev-ruby/mysql-ruby/mysql-ruby-2.8.1-r2.ebuild
Gentoo

Contents of /dev-ruby/mysql-ruby/mysql-ruby-2.8.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Sat Sep 1 06:08:14 2012 UTC (6 years, 3 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Cleanup.

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/mysql-ruby/mysql-ruby-2.8.1-r2.ebuild,v 1.6 2012/07/01 18:31:43 armin76 Exp $
4
5 EAPI="2"
6 USE_RUBY="ruby18 ree18 ruby19"
7
8 RUBY_FAKEGEM_NAME="mysql"
9
10 RUBY_FAKEGEM_TASK_TEST=""
11 RUBY_FAKEGEM_TASK_DOC=""
12
13 inherit ruby-fakegem
14
15 DESCRIPTION="A Ruby extension library to use MySQL"
16 HOMEPAGE="http://www.tmtm.org/en/mysql/ruby/"
17 SRC_URI="mirror://rubyforge/${PN}/${P}.tar.gz"
18
19 LICENSE="Ruby"
20 SLOT="0"
21 KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~x86 ~x86-fbsd"
22 IUSE="test"
23
24 DEPEND="virtual/mysql"
25 RDEPEND="${DEPEND}"
26
27 TEST_DIR="/usr/share/${PN}/test/"
28
29 #all_ruby_prepare() {
30 # epatch "${FILESDIR}/${P}-test.patch"
31 #}
32
33 each_ruby_configure() {
34 ${RUBY} extconf.rb || die
35 }
36
37 each_ruby_compile() {
38 emake || die
39 }
40
41 each_ruby_install() {
42 emake DESTDIR="${D}" install || die
43 ruby_fakegem_install_gemspec
44 }
45
46 all_fakegem_install() {
47 dohtml * || die
48
49 if use test ; then
50 insinto $TEST_DIR
51 doins test.rb || die
52 fi
53 }
54
55 src_test() {
56 elog
57 elog "To test the library you need to start MySQL first."
58 elog "Then run:"
59 elog
60 elog " % ruby ${TEST_DIR}test.rb <hostname> <user> <password>"
61 elog
62 elog "See /usr/share/doc/${PF}/html/README.html for details."
63 elog
64 }

  ViewVC Help
Powered by ViewVC 1.1.20