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

Contents of /dev-ruby/mysql-ruby/mysql-ruby-2.7.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Tue Jan 5 20:04:39 2010 UTC (8 years, 11 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Remove old versions.
(Portage version: 2.1.6.13/cvs/Linux x86_64)

1 # Copyright 1999-2009 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.7.5.ebuild,v 1.10 2009/04/23 07:16:10 a3li Exp $
4
5 inherit ruby
6
7 DESCRIPTION="A Ruby extension library to use MySQL"
8 HOMEPAGE="http://www.tmtm.org/en/mysql/ruby/"
9 SRC_URI="http://www.tmtm.org/downloads/mysql/ruby/${P}.tar.gz"
10
11 LICENSE="Ruby"
12 SLOT="0"
13 KEYWORDS="alpha amd64 hppa ia64 ~mips ppc ppc64 sparc x86"
14 IUSE=""
15
16 USE_RUBY="ruby18"
17 DEPEND="virtual/ruby
18 virtual/mysql"
19
20 TEST_DIR="/usr/share/${PN}/test/"
21
22 src_unpack() {
23 unpack ${A}
24 if use hppa; then
25 sed -e 's/LONG_LONG/long long/' -i "${S}"/mysql.c.in
26 fi
27
28 epatch "${FILESDIR}/${PN}-2.7.5-test.patch"
29 }
30
31 src_compile() {
32 /usr/bin/ruby18 extconf.rb || die
33 emake || die
34 }
35
36 src_install() {
37 make DESTDIR="${D}" install || die
38
39 dohtml *
40
41 insinto $TEST_DIR
42 doins test.rb
43 }
44
45 src_test() {
46 elog
47 elog "To test the programme you need to start mysql first."
48 elog "Then run:"
49 elog
50 elog " % ruby ${TEST_DIR}test.rb hostname user password"
51 elog
52 elog "See /usr/share/doc/${PF}/html/README.html for detail."
53 elog
54 }

  ViewVC Help
Powered by ViewVC 1.1.20