Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/ruby-odbc: ChangeLog ruby-odbc-0.9998.ebuild
Date: Fri, 29 Jan 2010 12:49:28
Message-Id: E1NaqHq-0001F8-27@stork.gentoo.org
1 flameeyes 10/01/29 12:49:22
2
3 Modified: ChangeLog
4 Added: ruby-odbc-0.9998.ebuild
5 Log:
6 Version bump, port to ruby-fakegem, drop unicode USE flag and instead always build both ascii and utf8 extensions as they are neither exclusive nor optional.
7 (Portage version: 2.2_rc61/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.14 dev-ruby/ruby-odbc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/ruby-odbc/ChangeLog?rev=1.14&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/ruby-odbc/ChangeLog?rev=1.14&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/ruby-odbc/ChangeLog?r1=1.13&r2=1.14
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/ruby-odbc/ChangeLog,v
19 retrieving revision 1.13
20 retrieving revision 1.14
21 diff -u -r1.13 -r1.14
22 --- ChangeLog 24 Aug 2009 19:45:06 -0000 1.13
23 +++ ChangeLog 29 Jan 2010 12:49:21 -0000 1.14
24 @@ -1,6 +1,14 @@
25 # ChangeLog for dev-ruby/ruby-odbc
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-odbc/ChangeLog,v 1.13 2009/08/24 19:45:06 graaff Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-odbc/ChangeLog,v 1.14 2010/01/29 12:49:21 flameeyes Exp $
30 +
31 +*ruby-odbc-0.9998 (29 Jan 2010)
32 +
33 + 29 Jan 2010; Diego E. Pettenò <flameeyes@g.o>
34 + +ruby-odbc-0.9998.ebuild:
35 + Version bump, port to ruby-fakegem, drop unicode USE flag and instead
36 + always build both ascii and utf8 extensions as they are neither exclusive
37 + nor optional.
38
39 *ruby-odbc-0.9997 (24 Aug 2009)
40
41
42
43
44 1.1 dev-ruby/ruby-odbc/ruby-odbc-0.9998.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/ruby-odbc/ruby-odbc-0.9998.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/ruby-odbc/ruby-odbc-0.9998.ebuild?rev=1.1&content-type=text/plain
48
49 Index: ruby-odbc-0.9998.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-odbc/ruby-odbc-0.9998.ebuild,v 1.1 2010/01/29 12:49:21 flameeyes Exp $
54
55 EAPI=2
56
57 # ruby19 → fails to build
58 # jruby → uses C extensions
59 USE_RUBY="ruby18"
60
61 RUBY_FAKEGEM_TASK_TEST=""
62 RUBY_FAKEGEM_TASK_DOC=""
63 RUBY_FAKEGEM_EXTRADOC="README ChangeLog"
64
65 inherit ruby-fakegem
66
67 DESCRIPTION="RubyODBC - For accessing ODBC data sources from the Ruby language"
68 HOMEPAGE="http://www.ch-werner.de/rubyodbc/"
69 SRC_URI="http://www.ch-werner.de/rubyodbc/${P}.tar.gz"
70
71 LICENSE="|| ( GPL-2 Ruby )"
72 SLOT="0"
73 KEYWORDS="~amd64 ~ia64 ~ppc ~sparc ~x86"
74
75 DEPEND=">=dev-db/unixODBC-2.0.6"
76 RDEPEND="${DEPEND}"
77
78 # tests require to have an ODBC service enabled, so we can't run them
79 # for now :(
80 RESTRICT=test
81
82 all_ruby_prepare() {
83 # Make sure that it doesn't try to use the absolute-local path for
84 # the extension as we'd be unable to run it properly otherwise.
85 sed -i -e 's:\./odbc:odbc:' test/{,utf8/}test.rb || die
86
87 # Since lib should not get installed avoid it entirely…
88 mv lib contrib || die
89 }
90
91 each_ruby_configure() {
92 for dir in ext ext/utf8; do
93 ${RUBY} -C${dir} extconf.rb || die "extconf (${dir}) failed"
94 done
95 }
96
97 each_ruby_compile() {
98 for dir in ext ext/utf8; do
99 emake -C${dir} || die "emake (${dir}) failed"
100 done
101 }
102
103 each_ruby_install() {
104 each_fakegem_install
105
106 ruby_fakegem_newins ext/odbc.so lib/odbc.so
107 ruby_fakegem_newins ext/utf8/odbc_utf8.so lib/odbc_utf8.so
108 }
109
110 all_ruby_install() {
111 all_fakegem_install
112 dohtml doc/*.html || die
113 }