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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Apr 13 21:42:39 2008 UTC (9 years, 9 months ago) by rbrown
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +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.3.ebuild,v 1.10 2007/06/21 18:31:32 armin76 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 ruby19"
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}/${P}-test.patch
29 }
30
31 src_compile() {
32 ruby 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