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/fxruby: ChangeLog fxruby-1.6.23.ebuild
Date: Sun, 08 Apr 2012 06:56:01
Message-Id: 20120408065549.D27712004B@flycatcher.gentoo.org
1 graaff 12/04/08 06:55:49
2
3 Modified: ChangeLog
4 Added: fxruby-1.6.23.ebuild
5 Log:
6 Version bump. Add ruby19.
7
8 (Portage version: 2.1.10.49/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.98 dev-ruby/fxruby/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/fxruby/ChangeLog?rev=1.98&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/fxruby/ChangeLog?rev=1.98&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/fxruby/ChangeLog?r1=1.97&r2=1.98
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/fxruby/ChangeLog,v
20 retrieving revision 1.97
21 retrieving revision 1.98
22 diff -u -r1.97 -r1.98
23 --- ChangeLog 9 Mar 2012 07:00:51 -0000 1.97
24 +++ ChangeLog 8 Apr 2012 06:55:49 -0000 1.98
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/fxruby
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fxruby/ChangeLog,v 1.97 2012/03/09 07:00:51 graaff Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/fxruby/ChangeLog,v 1.98 2012/04/08 06:55:49 graaff Exp $
30 +
31 +*fxruby-1.6.23 (08 Apr 2012)
32 +
33 + 08 Apr 2012; Hans de Graaff <graaff@g.o> +fxruby-1.6.23.ebuild:
34 + Version bump. Add ruby19.
35
36 09 Mar 2012; Hans de Graaff <graaff@g.o> -fxruby-1.6.18-r1.ebuild,
37 -fxruby-1.6.20.ebuild:
38
39
40
41 1.1 dev-ruby/fxruby/fxruby-1.6.23.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/fxruby/fxruby-1.6.23.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/fxruby/fxruby-1.6.23.ebuild?rev=1.1&content-type=text/plain
45
46 Index: fxruby-1.6.23.ebuild
47 ===================================================================
48 # Copyright 1999-2012 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/fxruby/fxruby-1.6.23.ebuild,v 1.1 2012/04/08 06:55:49 graaff Exp $
51
52 EAPI=4
53 USE_RUBY="ruby18 ruby19"
54
55 RUBY_FAKEGEM_NAME="fxruby"
56
57 RUBY_FAKEGEM_TASK_DOC="docs"
58
59 RUBY_FAKEGEM_EXTRADOC="History.txt index.html README.rdoc README.git TODO"
60
61 inherit multilib ruby-fakegem toolchain-funcs
62
63 DESCRIPTION="Ruby language binding to the FOX GUI toolkit"
64 HOMEPAGE="http://www.fxruby.org/"
65
66 LICENSE="LGPL-2.1"
67 SLOT="1.6"
68 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
69 IUSE="examples doc"
70
71 DEPEND="x11-libs/fox:1.6
72 >=x11-libs/fxscintilla-1.62-r1"
73 RDEPEND="${RDEPEND}"
74
75 # Tests fail with a memory corruption error. Restrict the tests for
76 # now. We did not run tests with older versions so we assume this is
77 # not a regression for now.
78 RESTRICT="test"
79 #ruby_add_bdepend "test? ( dev-ruby/ruby-opengl )"
80
81 ruby_add_bdepend "dev-ruby/hoe"
82
83 all_ruby_prepare() {
84 sed -i -e '/\[:compile\]/d' Rakefile || die
85 sed -i -e 's:libs, "fxscintilla":libs, "fxscintilla-1.6":g' \
86 ext/fox16/extconf.rb || die "sed error"
87 einfo "Avoid -O0 builds"
88 sed -i -e 's:-O0 -I:-I:' \
89 ext/fox16/extconf.rb || die "Can't fix forced -O0"
90
91 # Avoid a dependency on rake-compiler.
92 sed -i -e '/extensiontask/ s:^:#:' -e '/Rake::ExtensionTask/,$ s:^:#:' Rakefile || die
93 }
94
95 each_ruby_configure() {
96 ${RUBY} -Cext/fox16 extconf.rb || die
97 }
98
99 each_ruby_compile() {
100 CXX=$(tc-getCXX) emake -Cext/fox16 || die
101 cp ext/fox16/fox16$(get_modname) lib/ || die
102 }
103
104 all_ruby_install() {
105 all_fakegem_install
106
107 if use examples; then
108 for dir in sample samples example examples; do
109 if [ -d ${dir} ] ; then
110 dodir /usr/share/doc/${PF}
111 cp -pPR ${dir} "${D}"/usr/share/doc/${PF} || die "cp failed"
112 fi
113 done
114 fi
115 }