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/racc: ChangeLog racc-1.4.9.ebuild
Date: Sat, 01 Dec 2012 15:47:40
Message-Id: 20121201154730.17377216BB@flycatcher.gentoo.org
1 graaff 12/12/01 15:47:30
2
3 Modified: ChangeLog
4 Added: racc-1.4.9.ebuild
5 Log:
6 Version bump. Drop ree18 since tests are broken and ree18 will be masked shortly anyway.
7
8 (Portage version: 2.1.11.31/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.83 dev-ruby/racc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/racc/ChangeLog?rev=1.83&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/racc/ChangeLog?rev=1.83&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/racc/ChangeLog?r1=1.82&r2=1.83
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/racc/ChangeLog,v
20 retrieving revision 1.82
21 retrieving revision 1.83
22 diff -u -r1.82 -r1.83
23 --- ChangeLog 6 Nov 2012 16:54:47 -0000 1.82
24 +++ ChangeLog 1 Dec 2012 15:47:29 -0000 1.83
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-ruby/racc
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/ChangeLog,v 1.82 2012/11/06 16:54:47 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/ChangeLog,v 1.83 2012/12/01 15:47:29 graaff Exp $
30 +
31 +*racc-1.4.9 (01 Dec 2012)
32 +
33 + 01 Dec 2012; Hans de Graaff <graaff@g.o> +racc-1.4.9.ebuild:
34 + Version bump. Drop ree18 since tests are broken and ree18 will be masked
35 + shortly anyway.
36
37 06 Nov 2012; Jeroen Roovers <jer@g.o> racc-1.4.6-r1.ebuild:
38 Stable for HPPA (bug #411507).
39
40
41
42 1.1 dev-ruby/racc/racc-1.4.9.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/racc/racc-1.4.9.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/racc/racc-1.4.9.ebuild?rev=1.1&content-type=text/plain
46
47 Index: racc-1.4.9.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/racc-1.4.9.ebuild,v 1.1 2012/12/01 15:47:29 graaff Exp $
52
53 EAPI=4
54
55 USE_RUBY="ruby18 ruby19 jruby"
56
57 RUBY_FAKEGEM_TASK_DOC="docs"
58 RUBY_FAKEGEM_EXTRADOC="README.rdoc README.ja.rdoc TODO ChangeLog"
59
60 inherit multilib ruby-fakegem
61
62 DESCRIPTION="A LALR(1) parser generator for Ruby"
63 HOMEPAGE="http://www.loveruby.net/en/racc.html"
64
65 LICENSE="LGPL-2.1"
66 SLOT="0"
67
68 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
69 IUSE="doc test"
70
71 ruby_add_bdepend "dev-ruby/rake
72 doc? ( dev-ruby/hoe )
73 test? ( dev-ruby/hoe )"
74
75 all_ruby_prepare() {
76 sed -i -e 's|/tmp/out|${TMPDIR:-/tmp}/out|' test/helper.rb || die "tests fix failed"
77
78 # Avoid depending on rake-compiler since we don't use it to compile
79 # the extension.
80 sed -i -e '/rake-compiler/ s:^:#:' -e '/extensiontask/ s:^:#:' Rakefile
81 sed -i -e '/ExtensionTask/,/^ end/ s:^:#:' Rakefile
82
83 # Avoid isolation since dependencies are not properly declared.
84 sed -i -e 's/, :isolate//' Rakefile || die
85 }
86
87 each_ruby_prepare() {
88 case ${RUBY} in
89 *jruby)
90 ;;
91 *ruby18)
92 sed -i -e '/test_norule_y/,/end/ s:^:#:' \
93 -e '/test_unterm_y/,/end/ s:^:#:' test/test_racc_command.rb || die
94 ${RUBY} -Cext/racc extconf.rb || die
95 ;;
96 *)
97 ${RUBY} -Cext/racc extconf.rb || die
98 ;;
99 esac
100 }
101
102 each_ruby_compile() {
103 case ${RUBY} in
104 *jruby)
105 einfo "Under JRuby, racc cannot use the shared object parser, so instead"
106 einfo "you have to rely on the pure Ruby implementation."
107 ;;
108 *)
109 emake -Cext/racc
110 # Copy over the file here so that we don't have to do
111 # special ruby install for JRuby and the other
112 # implementations.
113 cp -l ext/racc/cparse$(get_modname) lib/racc/cparse$(get_modname) || die
114 ;;
115 esac
116 }
117
118 each_ruby_test() {
119 case ${RUBY} in
120 *jruby)
121 ewarn "Using JRuby 1.5.2 the tests are currently badly broken,"
122 ewarn "so they are disabled until a new racc or a new JRuby is"
123 ewarn "released."
124 ;;
125 *)
126 each_fakegem_test
127 ;;
128 esac
129 }
130
131 all_ruby_install() {
132 all_fakegem_install
133
134 dodoc -r rdoc
135
136 docinto examples
137 dodoc -r sample
138 }