From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-ruby/pg: metadata.xml ChangeLog pg-0.8.0.ebuild |
Date: | Fri, 01 Jan 2010 23:41:55 |
Message-Id: | E1NQr1U-00021m-2E@stork.gentoo.org |
1 | flameeyes 10/01/01 23:35:12 |
2 | |
3 | Added: metadata.xml ChangeLog pg-0.8.0.ebuild |
4 | Log: |
5 | Initial import of the pg gem, to replace the old ruby-postgres driver where possible. |
6 | (Portage version: 2.2_rc61/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-ruby/pg/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/pg/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/pg/metadata.xml?rev=1.1&content-type=text/plain |
13 | |
14 | Index: metadata.xml |
15 | =================================================================== |
16 | <?xml version="1.0" encoding="UTF-8"?> |
17 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 | <pkgmetadata> |
19 | <herd>ruby</herd> |
20 | </pkgmetadata> |
21 | |
22 | |
23 | |
24 | 1.1 dev-ruby/pg/ChangeLog |
25 | |
26 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/pg/ChangeLog?rev=1.1&view=markup |
27 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/pg/ChangeLog?rev=1.1&content-type=text/plain |
28 | |
29 | Index: ChangeLog |
30 | =================================================================== |
31 | # ChangeLog for dev-ruby/pg |
32 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
33 | # $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/ChangeLog,v 1.1 2010/01/01 23:35:11 flameeyes Exp $ |
34 | |
35 | *pg-0.8.0 (01 Jan 2010) |
36 | |
37 | 01 Jan 2010; Diego E. Pettenò <flameeyes@g.o> +pg-0.8.0.ebuild, |
38 | +metadata.xml: |
39 | Initial import of the pg gem, to replace the old ruby-postgres driver |
40 | where possible. |
41 | |
42 | |
43 | |
44 | |
45 | 1.1 dev-ruby/pg/pg-0.8.0.ebuild |
46 | |
47 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/pg/pg-0.8.0.ebuild?rev=1.1&view=markup |
48 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/pg/pg-0.8.0.ebuild?rev=1.1&content-type=text/plain |
49 | |
50 | Index: pg-0.8.0.ebuild |
51 | =================================================================== |
52 | # Copyright 1999-2010 Gentoo Foundation |
53 | # Distributed under the terms of the GNU General Public License v2 |
54 | # $Header: /var/cvsroot/gentoo-x86/dev-ruby/pg/pg-0.8.0.ebuild,v 1.1 2010/01/01 23:35:11 flameeyes Exp $ |
55 | |
56 | EAPI=2 |
57 | USE_RUBY="ruby18 ruby19" |
58 | |
59 | # Tests will always fail because they need access to the pgsql server |
60 | RUBY_FAKEGEM_TEST_TASK="spec" |
61 | RESTRICT="test" |
62 | |
63 | RUBY_FAKEGEM_DOCDIR="doc/rdoc" |
64 | RUBY_FAKEGEM_EXTRADOC="ChangeLog Contributors README" |
65 | |
66 | inherit ruby-fakegem |
67 | |
68 | DESCRIPTION="Ruby extension library providing an API to PostgreSQL" |
69 | HOMEPAGE="http://bitbucket.org/ged/ruby-pg/" |
70 | |
71 | LICENSE="|| ( GPL-2 Ruby )" |
72 | SLOT="0" |
73 | KEYWORDS="~amd64" |
74 | IUSE="" |
75 | |
76 | all_ruby_prepare() { |
77 | sed -i \ |
78 | -e '/ext_helper/s:^:#:' \ |
79 | -e '/task :spec =>/s:^:#:' \ |
80 | Rakefile || die "Rakefile fix failed" |
81 | } |
82 | |
83 | each_ruby_compile() { |
84 | pushd "${S}"/ext |
85 | ${RUBY} extconf.rb || die "extconf.rb failed" |
86 | emake || die "emake failed" |
87 | popd |
88 | } |
89 | |
90 | each_ruby_install() { |
91 | ruby_fakegem_newins ext/pg.so lib/pg.so |
92 | each_fakegem_install |
93 | } |
94 | |
95 | all_ruby_install() { |
96 | docinto examples |
97 | dodoc sample/*.rb || die "sample installation failed" |
98 | } |