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