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-r2.ebuild rcairo-1.10.0-r1.ebuild
Date: Wed, 02 Feb 2011 20:02:18
Message-Id: 20110202200207.53B1520054@flycatcher.gentoo.org
1 graaff 11/02/02 20:02:07
2
3 Modified: ChangeLog
4 Added: rcairo-1.10.0-r2.ebuild
5 Removed: rcairo-1.10.0-r1.ebuild
6 Log:
7 Install the header file as part of the gem package.
8
9 (Portage version: 2.1.9.25/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.50 dev-ruby/rcairo/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?rev=1.50&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?rev=1.50&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?r1=1.49&r2=1.50
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v
21 retrieving revision 1.49
22 retrieving revision 1.50
23 diff -u -r1.49 -r1.50
24 --- ChangeLog 2 Feb 2011 19:24:20 -0000 1.49
25 +++ ChangeLog 2 Feb 2011 20:02:07 -0000 1.50
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-ruby/rcairo
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v 1.49 2011/02/02 19:24:20 graaff Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v 1.50 2011/02/02 20:02:07 graaff Exp $
31 +
32 +*rcairo-1.10.0-r2 (02 Feb 2011)
33 +
34 + 02 Feb 2011; Hans de Graaff <graaff@g.o> -rcairo-1.10.0-r1.ebuild,
35 + +rcairo-1.10.0-r2.ebuild:
36 + Install the header file as part of the gem package.
37
38 *rcairo-1.10.0-r1 (02 Feb 2011)
39
40
41
42
43 1.1 dev-ruby/rcairo/rcairo-1.10.0-r2.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/rcairo-1.10.0-r2.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/rcairo-1.10.0-r2.ebuild?rev=1.1&content-type=text/plain
47
48 Index: rcairo-1.10.0-r2.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-r2.ebuild,v 1.1 2011/02/02 20:02:07 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 RUBY_FAKEGEM_EXTRAINSTALL="src"
73
74 inherit multilib ruby-fakegem
75
76 DESCRIPTION="Ruby bindings for cairo"
77 HOMEPAGE="http://cairographics.org/rcairo/"
78
79 IUSE=""
80
81 SLOT="0"
82 LICENSE="|| ( Ruby GPL-2 )"
83 KEYWORDS="~amd64 ~ia64 ~sparc ~x86"
84
85 RDEPEND="${RDEPEND}
86 >=x11-libs/cairo-1.2.0[svg]"
87 DEPEND="${DEPEND}
88 >=x11-libs/cairo-1.2.0[svg]
89 dev-util/pkgconfig"
90
91 ruby_add_bdepend "test? ( >=dev-ruby/test-unit-2.1.0-r1:2 )"
92
93 each_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 mkdir src || die
114 cp ext/cairo/rb_cairo.h src/ || die
115 }
116
117 each_ruby_test() {
118 # don't rely on the Rakefile because it's a mess to load with
119 # their hierarchy, do it manually.
120 ${RUBY} -Ilib -r ./test/cairo-test-utils.rb \
121 -e 'gem "test-unit"; require "test/unit"; Dir.glob("test/**/test_*.rb") {|f| load f}' || die "tests failed"
122 }
123
124 all_ruby_install() {
125 all_fakegem_install
126
127 insinto /usr/share/doc/${PF}/samples
128 doins -r samples/* || die "Cannot install sample files."
129 }