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/rcairo: ChangeLog rcairo-1.8.1-r1.ebuild rcairo-1.8.1.ebuild
Date: Fri, 30 Jul 2010 18:02:28
Message-Id: 20100730174432.70AC62CE15@corvid.gentoo.org
1 flameeyes 10/07/30 17:44:32
2
3 Modified: ChangeLog rcairo-1.8.1.ebuild
4 Added: rcairo-1.8.1-r1.ebuild
5 Log:
6 Install within gems hierarchy, add tests support, ensure that svg is coordinated with the original cairo package.
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.38 dev-ruby/rcairo/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?rev=1.38&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?rev=1.38&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?r1=1.37&r2=1.38
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v
19 retrieving revision 1.37
20 retrieving revision 1.38
21 diff -u -r1.37 -r1.38
22 --- ChangeLog 26 Jul 2010 13:43:13 -0000 1.37
23 +++ ChangeLog 30 Jul 2010 17:44:32 -0000 1.38
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-ruby/rcairo
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v 1.37 2010/07/26 13:43:13 fauli Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v 1.38 2010/07/30 17:44:32 flameeyes Exp $
29 +
30 +*rcairo-1.8.1-r1 (30 Jul 2010)
31 +
32 + 30 Jul 2010; Diego E. Pettenò <flameeyes@g.o> rcairo-1.8.1.ebuild,
33 + +rcairo-1.8.1-r1.ebuild:
34 + Install within gems hierarchy, add tests support, ensure that svg is
35 + coordinated with the original cairo package.
36
37 26 Jul 2010; Christian Faulhammer <fauli@g.o> rcairo-1.8.1.ebuild:
38 x86 stable, bug 329807
39
40
41
42 1.3 dev-ruby/rcairo/rcairo-1.8.1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/rcairo-1.8.1.ebuild?rev=1.3&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/rcairo-1.8.1.ebuild?rev=1.3&content-type=text/plain
46 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/rcairo-1.8.1.ebuild?r1=1.2&r2=1.3
47
48 Index: rcairo-1.8.1.ebuild
49 ===================================================================
50 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/rcairo-1.8.1.ebuild,v
51 retrieving revision 1.2
52 retrieving revision 1.3
53 diff -u -r1.2 -r1.3
54 --- rcairo-1.8.1.ebuild 26 Jul 2010 13:43:13 -0000 1.2
55 +++ rcairo-1.8.1.ebuild 30 Jul 2010 17:44:32 -0000 1.3
56 @@ -1,6 +1,6 @@
57 # Copyright 1999-2010 Gentoo Foundation
58 # Distributed under the terms of the GNU General Public License v2
59 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/rcairo-1.8.1.ebuild,v 1.2 2010/07/26 13:43:13 fauli Exp $
60 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/rcairo-1.8.1.ebuild,v 1.3 2010/07/30 17:44:32 flameeyes Exp $
61
62 EAPI=2
63 USE_RUBY="ruby18"
64 @@ -25,8 +25,10 @@
65 LICENSE="|| ( Ruby GPL-2 )"
66 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc x86"
67
68 -RDEPEND=">=x11-libs/cairo-1.2.0[svg?]"
69 -DEPEND="${RDEPEND}
70 +RDEPEND="${RDEPEND}
71 + >=x11-libs/cairo-1.2.0[svg?]"
72 +DEPEND="${DEPEND}
73 + >=x11-libs/cairo-1.2.0[svg?]
74 dev-util/pkgconfig"
75
76 each_ruby_configure() {
77
78
79
80 1.1 dev-ruby/rcairo/rcairo-1.8.1-r1.ebuild
81
82 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/rcairo-1.8.1-r1.ebuild?rev=1.1&view=markup
83 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/rcairo-1.8.1-r1.ebuild?rev=1.1&content-type=text/plain
84
85 Index: rcairo-1.8.1-r1.ebuild
86 ===================================================================
87 # Copyright 1999-2010 Gentoo Foundation
88 # Distributed under the terms of the GNU General Public License v2
89 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/rcairo-1.8.1-r1.ebuild,v 1.1 2010/07/30 17:44:32 flameeyes Exp $
90
91 EAPI=2
92
93 # ruby19 → fails, and even crashes Ruby
94 # jruby → cannot work, it's a compiled extension
95 USE_RUBY="ruby18"
96
97 # Documentation depends on files that are not distributed.
98 RUBY_FAKEGEM_TASK_DOC=""
99
100 # Depends on test-unit-2 which is currently masked.
101 RUBY_FAKEGEM_TASK_TEST=""
102
103 RUBY_FAKEGEM_DOCDIR="doc"
104
105 RUBY_FAKEGEM_EXTRADOC="AUTHORS ChangeLog NEWS README"
106
107 inherit ruby-fakegem
108
109 IUSE="svg"
110
111 DESCRIPTION="Ruby bindings for cairo"
112 HOMEPAGE="http://cairographics.org/rcairo/"
113 SRC_URI="mirror://rubygems/cairo-${PV}.gem"
114
115 SLOT="0"
116 LICENSE="|| ( Ruby GPL-2 )"
117 KEYWORDS="~amd64 ~ia64 ~sparc ~x86"
118
119 # force identical svg dependency between the two so that you're forced
120 # to rebuild this when changing it on cairo, this is because we cannot
121 # enable/disable svg, but it'll follow what the original cairo
122 # supports.
123 RDEPEND="${RDEPEND}
124 >=x11-libs/cairo-1.2.0[svg=]"
125 DEPEND="${DEPEND}
126 >=x11-libs/cairo-1.2.0[svg=]
127 dev-util/pkgconfig"
128
129 ruby_add_bdepend "test? ( >=dev-ruby/test-unit-2.1.0-r1:2 )"
130
131 all_ruby_prepare() {
132 # it doesn't follow the usual gem tree hierarchy
133 ln -s src/lib lib || die
134
135 # it fails, badly, as it expects the .pc to be frozen in time,
136 # which it isn't...
137 rm test/test_pkg_config.rb || die
138
139 # fix two strange assert calls
140 sed -i \
141 -e 's:assert_true(:assert(:' \
142 -e 's:assert_false(:assert(!:' \
143 test/test_exception.rb \
144 test/test_constants.rb || die
145 }
146
147 each_ruby_configure() {
148 ${RUBY} extconf.rb || die "extconf failed"
149 }
150
151 each_ruby_compile() {
152 emake || die "make failed"
153
154 # again, try to make it more standard, to install it more easily.
155 cp src/cairo.so lib || die
156 }
157
158 each_ruby_test() {
159 # don't rely on the Rakefile because it's a mess to load with
160 # their hierarchy, do it manually.
161 ${RUBY} -Ilib -r ./test/cairo-test-utils.rb -S \
162 testrb-2 ./test/test_*.rb \
163 || die "tests failed"
164 }
165
166 all_ruby_install() {
167 all_fakegem_install
168
169 insinto /usr/share/doc/${PF}/samples
170 doins -r samples/* || die "Cannot install sample files."
171 }