/[gentoo-x86]/dev-ruby/rcairo/rcairo-1.12.3.ebuild
Gentoo

Contents of /dev-ruby/rcairo/rcairo-1.12.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Dec 25 09:15:25 2012 UTC (20 months, 4 weeks ago) by graaff
Branch: MAIN
Version bump.

(Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/rcairo-1.12.2.ebuild,v 1.1 2012/09/15 09:08:13 graaff Exp $
4
5 EAPI=4
6
7 # jruby → cannot work, it's a compiled extension
8 USE_RUBY="ruby18 ree18 ruby19"
9
10 RUBY_FAKEGEM_NAME="cairo"
11
12 # Documentation depends on files that are not distributed.
13 RUBY_FAKEGEM_TASK_DOC=""
14
15 RUBY_FAKEGEM_TASK_TEST=""
16
17 RUBY_FAKEGEM_DOCDIR="doc"
18
19 RUBY_FAKEGEM_EXTRADOC="AUTHORS NEWS"
20
21 inherit multilib ruby-fakegem
22
23 DESCRIPTION="Ruby bindings for cairo"
24 HOMEPAGE="http://cairographics.org/rcairo/"
25
26 IUSE=""
27
28 SLOT="0"
29 LICENSE="|| ( Ruby GPL-2 )"
30 KEYWORDS="~amd64 ~ppc ~x86"
31
32 RDEPEND="${RDEPEND}
33 >=x11-libs/cairo-1.2.0[svg]"
34 DEPEND="${DEPEND}
35 >=x11-libs/cairo-1.2.0[svg]"
36
37 ruby_add_bdepend "
38 dev-ruby/pkg-config
39 dev-ruby/ruby-glib2
40 test? ( >=dev-ruby/test-unit-2.1.0-r1:2 )"
41
42 each_ruby_configure() {
43 ${RUBY} -Cext/cairo extconf.rb || die "extconf failed"
44 }
45
46 each_ruby_compile() {
47 emake -Cext/cairo || die "make failed"
48
49 # again, try to make it more standard, to install it more easily.
50 cp ext/cairo/cairo$(get_modname) lib/ || die
51 }
52
53 each_ruby_test() {
54 # don't rely on the Rakefile because it's a mess to load with
55 # their hierarchy, do it manually.
56 ${RUBY} -Ilib -r ./test/cairo-test-utils.rb \
57 -e 'gem "test-unit"; require "test/unit"; Dir.glob("test/**/test_*.rb") {|f| load f}' || die "tests failed"
58 }
59
60 each_ruby_install() {
61 each_fakegem_install
62
63 insinto $(ruby_get_hdrdir)
64 doins ext/cairo/rb_cairo.h || die "Cannot install header file."
65 }
66
67 all_ruby_install() {
68 all_fakegem_install
69
70 insinto /usr/share/doc/${PF}/samples
71 doins -r samples/* || die "Cannot install sample files."
72 }

  ViewVC Help
Powered by ViewVC 1.1.20