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.1.ebuild
Date: Sun, 30 Oct 2011 10:39:12
Message-Id: 20111030103901.2EFB52004B@flycatcher.gentoo.org
1 graaff 11/10/30 10:39:01
2
3 Modified: ChangeLog
4 Added: rcairo-1.10.1.ebuild
5 Log:
6 Version bump with support for cairo 1.10.2.
7
8 (Portage version: 2.1.10.11/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.66 dev-ruby/rcairo/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?rev=1.66&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?rev=1.66&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/ChangeLog?r1=1.65&r2=1.66
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v
20 retrieving revision 1.65
21 retrieving revision 1.66
22 diff -u -r1.65 -r1.66
23 --- ChangeLog 30 Oct 2011 10:23:08 -0000 1.65
24 +++ ChangeLog 30 Oct 2011 10:39:00 -0000 1.66
25 @@ -1,6 +1,11 @@
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.65 2011/10/30 10:23:08 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v 1.66 2011/10/30 10:39:00 graaff Exp $
30 +
31 +*rcairo-1.10.1 (30 Oct 2011)
32 +
33 + 30 Oct 2011; Hans de Graaff <graaff@g.o> +rcairo-1.10.1.ebuild:
34 + Version bump with support for cairo 1.10.2.
35
36 30 Oct 2011; Hans de Graaff <graaff@g.o> -rcairo-1.8.1.ebuild,
37 -rcairo-1.10.0-r2.ebuild:
38
39
40
41 1.1 dev-ruby/rcairo/rcairo-1.10.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/rcairo-1.10.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/rcairo/rcairo-1.10.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: rcairo-1.10.1.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/rcairo-1.10.1.ebuild,v 1.1 2011/10/30 10:39:01 graaff Exp $
51
52 EAPI=2
53
54 # jruby → cannot work, it's a compiled extension
55 USE_RUBY="ruby18 ree18 ruby19"
56
57 RUBY_FAKEGEM_NAME="cairo"
58
59 # Documentation depends on files that are not distributed.
60 RUBY_FAKEGEM_TASK_DOC=""
61
62 # Depends on test-unit-2 which is currently masked.
63 RUBY_FAKEGEM_TASK_TEST=""
64
65 RUBY_FAKEGEM_DOCDIR="doc"
66
67 RUBY_FAKEGEM_EXTRADOC="AUTHORS NEWS"
68
69 inherit multilib ruby-fakegem
70
71 DESCRIPTION="Ruby bindings for cairo"
72 HOMEPAGE="http://cairographics.org/rcairo/"
73
74 IUSE=""
75
76 SLOT="0"
77 LICENSE="|| ( Ruby GPL-2 )"
78 KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
79
80 RDEPEND="${RDEPEND}
81 >=x11-libs/cairo-1.2.0[svg]"
82 DEPEND="${DEPEND}
83 >=x11-libs/cairo-1.2.0[svg]
84 dev-util/pkgconfig"
85
86 ruby_add_bdepend "
87 dev-ruby/ruby-glib2
88 test? ( >=dev-ruby/test-unit-2.1.0-r1:2 )"
89
90 each_ruby_configure() {
91 ${RUBY} -Cext/cairo extconf.rb || die "extconf failed"
92 }
93
94 each_ruby_compile() {
95 emake -Cext/cairo || die "make failed"
96
97 # again, try to make it more standard, to install it more easily.
98 cp ext/cairo/cairo$(get_modname) lib/ || die
99 }
100
101 each_ruby_test() {
102 # don't rely on the Rakefile because it's a mess to load with
103 # their hierarchy, do it manually.
104 ${RUBY} -Ilib -r ./test/cairo-test-utils.rb \
105 -e 'gem "test-unit"; require "test/unit"; Dir.glob("test/**/test_*.rb") {|f| load f}' || die "tests failed"
106 }
107
108 each_ruby_install() {
109 each_fakegem_install
110
111 insinto $(ruby_get_hdrdir)
112 doins ext/cairo/rb_cairo.h || die "Cannot install header file."
113 }
114
115 all_ruby_install() {
116 all_fakegem_install
117
118 insinto /usr/share/doc/${PF}/samples
119 doins -r samples/* || die "Cannot install sample files."
120 }