Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/rcairo: ChangeLog rcairo-1.10.0-r1.ebuild
Date: Wed, 02 Feb 2011 19:24:31
Message-Id: 20110202192420.A975220054@flycatcher.gentoo.org
1 graaff 11/02/02 19:24:20
2
3 Modified: ChangeLog
4 Added: rcairo-1.10.0-r1.ebuild
5 Log:
6 Install stub gemspec since we don't need these dependencies. Install rbcairo.h file.
7
8 (Portage version: 2.1.9.25/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.49 dev-ruby/rcairo/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?rev=1.49&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?rev=1.49&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?r1=1.48&r2=1.49
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v
20 retrieving revision 1.48
21 retrieving revision 1.49
22 diff -u -r1.48 -r1.49
23 --- ChangeLog 22 Jan 2011 08:07:31 -0000 1.48
24 +++ ChangeLog 2 Feb 2011 19:24:20 -0000 1.49
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-ruby/rcairo
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v 1.48 2011/01/22 08:07:31 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v 1.49 2011/02/02 19:24:20 graaff Exp $
30 +
31 +*rcairo-1.10.0-r1 (02 Feb 2011)
32 +
33 + 02 Feb 2011; Hans de Graaff <graaff@g.o> +rcairo-1.10.0-r1.ebuild:
34 + Install stub gemspec since we don't need these dependencies. Install
35 + rbcairo.h file.
36
37 *rcairo-1.10.0 (22 Jan 2011)
38
39
40
41
42 1.1 dev-ruby/rcairo/rcairo-1.10.0-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/rcairo-1.10.0-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/rcairo-1.10.0-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: rcairo-1.10.0-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/rcairo-1.10.0-r1.ebuild,v 1.1 2011/02/02 19:24:20 graaff Exp $
52
53 EAPI=2
54
55 # ruby19 → fails, and even crashes Ruby
56 # jruby → cannot work, it's a compiled extension
57 USE_RUBY="ruby18"
58
59 RUBY_FAKEGEM_NAME="cairo"
60
61 # Documentation depends on files that are not distributed.
62 RUBY_FAKEGEM_TASK_DOC=""
63
64 # Depends on test-unit-2 which is currently masked.
65 RUBY_FAKEGEM_TASK_TEST=""
66
67 RUBY_FAKEGEM_DOCDIR="doc"
68
69 RUBY_FAKEGEM_EXTRADOC="AUTHORS NEWS"
70
71 inherit multilib ruby-ng ruby-fakegem
72
73 DESCRIPTION="Ruby bindings for cairo"
74 HOMEPAGE="http://cairographics.org/rcairo/"
75
76 IUSE=""
77
78 SLOT="0"
79 LICENSE="|| ( Ruby GPL-2 )"
80 KEYWORDS="~amd64 ~ia64 ~sparc ~x86"
81
82 RDEPEND="${RDEPEND}
83 >=x11-libs/cairo-1.2.0[svg]"
84 DEPEND="${DEPEND}
85 >=x11-libs/cairo-1.2.0[svg]
86 dev-util/pkgconfig"
87
88 ruby_add_bdepend "test? ( >=dev-ruby/test-unit-2.1.0-r1:2 )"
89
90 each_ruby_prepare() {
91 # Remove a failing test for the new recording surface. It's not
92 # clear if this is a test failure or not, but we need to move on
93 # with cairo 1.10.
94 rm test/test_recording_surface.rb || die
95
96 # We don't need pkg-config since we compile directly so remove
97 # metadata because otherwise rubygems or bundler may get confused.
98 rm ../metadata || die
99 }
100
101 each_ruby_configure() {
102 ${RUBY} extconf.rb || die "extconf failed"
103 }
104
105 each_ruby_compile() {
106 emake || die "make failed"
107
108 # again, try to make it more standard, to install it more easily.
109 cp ext/cairo/cairo$(get_modname) lib/ || die
110 }
111
112 each_ruby_test() {
113 # don't rely on the Rakefile because it's a mess to load with
114 # their hierarchy, do it manually.
115 ${RUBY} -Ilib -r ./test/cairo-test-utils.rb \
116 -e 'gem "test-unit"; require "test/unit"; Dir.glob("test/**/test_*.rb") {|f| load f}' || die "tests failed"
117 }
118
119 each_ruby_install() {
120 each_fakegem_install
121
122 insinto $(ruby_get_hdrdir)
123 doins ext/cairo/rb_cairo.h || die "Cannot install header file."
124 }
125
126 all_ruby_install() {
127 all_fakegem_install
128
129 insinto /usr/share/doc/${PF}/samples
130 doins -r samples/* || die "Cannot install sample files."
131 }