diff options
author | Hans de Graaff <graaff@gentoo.org> | 2011-01-22 08:07:31 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2011-01-22 08:07:31 +0000 |
commit | a26dc84a2e3f676de9b111d4ba5a7264a528f7d9 (patch) | |
tree | d2df8f3e3dec827364541d843503e4c254d3fbd1 /dev-ruby/rcairo | |
parent | Mask wxGTK/wxpython dev versions. (diff) | |
download | gentoo-2-a26dc84a2e3f676de9b111d4ba5a7264a528f7d9.tar.gz gentoo-2-a26dc84a2e3f676de9b111d4ba5a7264a528f7d9.tar.bz2 gentoo-2-a26dc84a2e3f676de9b111d4ba5a7264a528f7d9.zip |
Version bump, fixing bug 339604. Exclude one failing test from test suite.
(Portage version: 2.1.9.25/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/rcairo')
-rw-r--r-- | dev-ruby/rcairo/ChangeLog | 7 | ||||
-rw-r--r-- | dev-ruby/rcairo/rcairo-1.10.0.ebuild | 72 |
2 files changed, 78 insertions, 1 deletions
diff --git a/dev-ruby/rcairo/ChangeLog b/dev-ruby/rcairo/ChangeLog index eafb9725ab60..2894f4127627 100644 --- a/dev-ruby/rcairo/ChangeLog +++ b/dev-ruby/rcairo/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-ruby/rcairo # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v 1.47 2011/01/07 15:03:59 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/ChangeLog,v 1.48 2011/01/22 08:07:31 graaff Exp $ + +*rcairo-1.10.0 (22 Jan 2011) + + 22 Jan 2011; Hans de Graaff <graaff@gentoo.org> +rcairo-1.10.0.ebuild: + Version bump, fixing bug 339604. Exclude one failing test from test suite. 07 Jan 2011; Hans de Graaff <graaff@gentoo.org> rcairo-1.8.1.ebuild: Use proper call to install gemspec now that the eclass changed interface. diff --git a/dev-ruby/rcairo/rcairo-1.10.0.ebuild b/dev-ruby/rcairo/rcairo-1.10.0.ebuild new file mode 100644 index 000000000000..feebd9ef8a81 --- /dev/null +++ b/dev-ruby/rcairo/rcairo-1.10.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rcairo/rcairo-1.10.0.ebuild,v 1.1 2011/01/22 08:07:31 graaff Exp $ + +EAPI=2 + +# ruby19 → fails, and even crashes Ruby +# jruby → cannot work, it's a compiled extension +USE_RUBY="ruby18" + +RUBY_FAKEGEM_NAME="cairo" + +# Documentation depends on files that are not distributed. +RUBY_FAKEGEM_TASK_DOC="" + +# Depends on test-unit-2 which is currently masked. +RUBY_FAKEGEM_TASK_TEST="" + +RUBY_FAKEGEM_DOCDIR="doc" + +RUBY_FAKEGEM_EXTRADOC="AUTHORS NEWS" + +inherit multilib ruby-fakegem + +DESCRIPTION="Ruby bindings for cairo" +HOMEPAGE="http://cairographics.org/rcairo/" + +IUSE="" + +SLOT="0" +LICENSE="|| ( Ruby GPL-2 )" +KEYWORDS="~amd64 ~ia64 ~sparc ~x86" + +RDEPEND="${RDEPEND} + >=x11-libs/cairo-1.2.0[svg]" +DEPEND="${DEPEND} + >=x11-libs/cairo-1.2.0[svg] + dev-util/pkgconfig" + +ruby_add_bdepend "test? ( >=dev-ruby/test-unit-2.1.0-r1:2 )" + +each_ruby_prepare() { + # Remove a failing test for the new recording surface. It's not + # clear if this is a test failure or not, but we need to move on + # with cairo 1.10. + rm test/test_recording_surface.rb || die +} + +each_ruby_configure() { + ${RUBY} extconf.rb || die "extconf failed" +} + +each_ruby_compile() { + emake || die "make failed" + + # again, try to make it more standard, to install it more easily. + cp ext/cairo/cairo$(get_modname) lib/ || die +} + +each_ruby_test() { + # don't rely on the Rakefile because it's a mess to load with + # their hierarchy, do it manually. + ${RUBY} -Ilib -r ./test/cairo-test-utils.rb \ + -e 'gem "test-unit"; require "test/unit"; Dir.glob("test/**/test_*.rb") {|f| load f}' || die "tests failed" +} + +all_ruby_install() { + all_fakegem_install + + insinto /usr/share/doc/${PF}/samples + doins -r samples/* || die "Cannot install sample files." +} |