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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Apr 13 21:42:39 2008 UTC (10 years, 6 months ago) by rbrown
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Version bump. Remove old versions. Fix quoting.
(Portage version: 2.1.4.4)

1 # Copyright 1999-2007 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.2.ebuild,v 1.3 2007/02/04 17:23:58 gmsoft 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 sparc x86"
14 IUSE=""
15
16 USE_RUBY="ruby16 ruby18 ruby19"
17 DEPEND="virtual/ruby
18 virtual/mysql"
19
20 src_unpack() {
21 unpack ${A}
22 if use hppa
23 then
24 sed -e 's/LONG_LONG/long long/' -i "${S}"/mysql.c.in
25 fi
26 }
27
28 src_compile() {
29 ruby extconf.rb || die
30 emake || die
31 }
32
33 src_install() {
34 make DESTDIR=${D} install || die
35
36 dohtml *
37 }
38
39 src_test() {
40 elog
41 elog "To test the programme you need to start mysql first."
42 elog "Then extract the tarball and run"
43 elog
44 elog " % ruby test.rb hostname user password"
45 elog
46 elog "See /usr/share/doc/${PF}/html/README.html for detail."
47 elog
48 }

  ViewVC Help
Powered by ViewVC 1.1.20