diff options
author | Hans de Graaff <graaff@gentoo.org> | 2010-11-08 21:06:04 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2010-11-08 21:06:04 +0000 |
commit | 78c05c314dffbbd01357c2c340a12b81febc3607 (patch) | |
tree | 3d3612c9a877ecbfba1375d6418c1a03206579d6 /dev-ruby | |
parent | Stable for HPPA PPC (bug #344571). (diff) | |
download | gentoo-2-78c05c314dffbbd01357c2c340a12b81febc3607.tar.gz gentoo-2-78c05c314dffbbd01357c2c340a12b81febc3607.tar.bz2 gentoo-2-78c05c314dffbbd01357c2c340a12b81febc3607.zip |
Fix compilation when ncurses is compiled with USE=trace, fixing report in bug 344243.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/ncurses-ruby/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/ncurses-ruby/files/ncurses-ruby-1.2.4-fix-trace.patch | 11 | ||||
-rw-r--r-- | dev-ruby/ncurses-ruby/ncurses-ruby-1.2.4-r2.ebuild | 43 |
3 files changed, 63 insertions, 1 deletions
diff --git a/dev-ruby/ncurses-ruby/ChangeLog b/dev-ruby/ncurses-ruby/ChangeLog index 4c8836c30a2b..740c9813e9f0 100644 --- a/dev-ruby/ncurses-ruby/ChangeLog +++ b/dev-ruby/ncurses-ruby/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-ruby/ncurses-ruby # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ncurses-ruby/ChangeLog,v 1.48 2010/11/05 14:04:20 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ncurses-ruby/ChangeLog,v 1.49 2010/11/08 21:06:04 graaff Exp $ + +*ncurses-ruby-1.2.4-r2 (08 Nov 2010) + + 08 Nov 2010; Hans de Graaff <graaff@gentoo.org> + +ncurses-ruby-1.2.4-r2.ebuild, +files/ncurses-ruby-1.2.4-fix-trace.patch: + Fix compilation when ncurses is compiled with USE=trace, fixing report in + bug 344243. + 05 Nov 2010; Markos Chandras <hwoarang@gentoo.org> ncurses-ruby-1.2.4-r1.ebuild: diff --git a/dev-ruby/ncurses-ruby/files/ncurses-ruby-1.2.4-fix-trace.patch b/dev-ruby/ncurses-ruby/files/ncurses-ruby-1.2.4-fix-trace.patch new file mode 100644 index 000000000000..630ddf5677a0 --- /dev/null +++ b/dev-ruby/ncurses-ruby/files/ncurses-ruby-1.2.4-fix-trace.patch @@ -0,0 +1,11 @@ +--- ncurses_wrap.c.~1~ 2009-07-31 12:52:36.000000000 +0200 ++++ ncurses_wrap.c 2010-11-08 21:56:35.600939119 +0100 +@@ -2394,7 +2394,7 @@ + return Qnil; + } + _tracef("%s", +- STR2CSTR(funcall3(rb_mKernel, rb_intern("sprintf"), argc, argv))); ++ STR2CSTR(rb_funcall3(rb_mKernel, rb_intern("sprintf"), argc, argv))); + return Qnil; + } + #endif /* HAVE__TRACEF */ diff --git a/dev-ruby/ncurses-ruby/ncurses-ruby-1.2.4-r2.ebuild b/dev-ruby/ncurses-ruby/ncurses-ruby-1.2.4-r2.ebuild new file mode 100644 index 000000000000..71226809df60 --- /dev/null +++ b/dev-ruby/ncurses-ruby/ncurses-ruby-1.2.4-r2.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ncurses-ruby/ncurses-ruby-1.2.4-r2.ebuild,v 1.1 2010/11/08 21:06:04 graaff Exp $ + +EAPI=2 +USE_RUBY="ruby18" + +RUBY_FAKEGEM_TASK_TEST="" +RUBY_FAKEGEM_TASK_DOC="" +RUBY_FAKEGEM_EXTRADOC="Changes README THANKS TODO" + +inherit multilib ruby-fakegem + +DESCRIPTION="Ruby wrappers of ncurses and PDCurses libs" +HOMEPAGE="http://ncurses-ruby.berlios.de/" +SRC_URI="mirror://berlios/${PN}/${P}.tar.bz2" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86" +IUSE="examples" + +DEPEND=">=sys-libs/ncurses-5.3" +RDEPEND="${DEPEND}" + +RUBY_PATCHES=( "${FILESDIR}"/${P}-fix-trace.patch ) + +each_ruby_configure() { + ${RUBY} extconf.rb || die +} + +each_ruby_compile() { + emake || die + mv ncurses_bin$(get_modname) lib/ || die +} + +all_ruby_install() { + all_fakegem_install + + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples || die + fi +} |