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/pg: ChangeLog pg-0.9.0-r1.ebuild pg-0.9.0.ebuild
Date: Tue, 27 Apr 2010 10:24:28
Message-Id: 20100427102426.3F8792C04C@corvid.gentoo.org
1 flameeyes 10/04/27 10:24:26
2
3 Modified: ChangeLog
4 Added: pg-0.9.0-r1.ebuild
5 Removed: pg-0.9.0.ebuild
6 Log:
7 Fix build.
8 (Portage version: 2.2_rc67/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.13 dev-ruby/pg/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/pg/ChangeLog?rev=1.13&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/pg/ChangeLog?rev=1.13&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/pg/ChangeLog?r1=1.12&r2=1.13
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/pg/ChangeLog,v
20 retrieving revision 1.12
21 retrieving revision 1.13
22 diff -u -r1.12 -r1.13
23 --- ChangeLog 26 Apr 2010 14:47:41 -0000 1.12
24 +++ ChangeLog 27 Apr 2010 10:24:26 -0000 1.13
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-ruby/pg
27 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/ChangeLog,v 1.12 2010/04/26 14:47:41 flameeyes Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/ChangeLog,v 1.13 2010/04/27 10:24:26 flameeyes Exp $
30 +
31 +*pg-0.9.0-r1 (27 Apr 2010)
32 +
33 + 27 Apr 2010; Diego E. Pettenò <flameeyes@g.o> -pg-0.9.0.ebuild,
34 + +pg-0.9.0-r1.ebuild:
35 + Fix build.
36
37 26 Apr 2010; Diego E. Pettenò <flameeyes@g.o> pg-0.9.0.ebuild:
38 Forgot to save after copying the extension.
39
40
41
42 1.1 dev-ruby/pg/pg-0.9.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/pg/pg-0.9.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/pg/pg-0.9.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: pg-0.9.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/pg-0.9.0-r1.ebuild,v 1.1 2010/04/27 10:24:26 flameeyes Exp $
52
53 EAPI=2
54 USE_RUBY="ruby18 ruby19"
55
56 RUBY_FAKEGEM_TEST_TASK="spec"
57
58 RUBY_FAKEGEM_TASK_DOC="rdoc"
59 RUBY_FAKEGEM_DOCDIR="docs/api"
60 RUBY_FAKEGEM_EXTRADOC="ChangeLog Contributors README"
61
62 inherit ruby-fakegem
63
64 DESCRIPTION="Ruby extension library providing an API to PostgreSQL"
65 HOMEPAGE="http://bitbucket.org/ged/ruby-pg/"
66
67 LICENSE="|| ( GPL-2 Ruby )"
68 SLOT="0"
69 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
70 IUSE=""
71
72 RDEPEND="dev-db/postgresql-base"
73 DEPEND="${RDEPEND}
74 test? ( dev-db/postgresql-server )"
75
76 # For the rakefile (and thus doc generation and testing) to work as
77 # intended, you need both rake-compiler _and_ the real RubyGems
78 # package; what is shipped with Ruby 1.9 is not good enough as it
79 # lacks the packaging tasks for Rake.
80 ruby_add_bdepend doc "dev-ruby/rake-compiler dev-ruby/rubygems"
81 ruby_add_bdepend test "dev-ruby/rspec dev-ruby/rake-compiler dev-ruby/rubygems"
82
83 each_ruby_configure() {
84 pushd ext
85 ${RUBY} extconf.rb || die "extconf.rb failed"
86 popd
87 }
88
89 each_ruby_compile() {
90 pushd ext
91 emake CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}" || die "emake failed"
92 popd
93 cp ext/*.so lib || die
94 }