Gentoo Archives: gentoo-commits

From: "Manuel Rueger (mrueg)" <mrueg@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/racc: racc-1.4.12.ebuild ChangeLog
Date: Wed, 27 Aug 2014 23:46:04
Message-Id: 20140827234600.959564190@oystercatcher.gentoo.org
1 mrueg 14/08/27 23:46:00
2
3 Modified: ChangeLog
4 Added: racc-1.4.12.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key )
9
10 Revision Changes Path
11 1.112 dev-ruby/racc/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/racc/ChangeLog?rev=1.112&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/racc/ChangeLog?rev=1.112&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/racc/ChangeLog?r1=1.111&r2=1.112
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/racc/ChangeLog,v
20 retrieving revision 1.111
21 retrieving revision 1.112
22 diff -u -r1.111 -r1.112
23 --- ChangeLog 26 May 2014 05:26:44 -0000 1.111
24 +++ ChangeLog 27 Aug 2014 23:46:00 -0000 1.112
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/racc
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/ChangeLog,v 1.111 2014/05/26 05:26:44 mrueg Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/ChangeLog,v 1.112 2014/08/27 23:46:00 mrueg Exp $
30 +
31 +*racc-1.4.12 (27 Aug 2014)
32 +
33 + 27 Aug 2014; Manuel Rüger <mrueg@g.o> +racc-1.4.12.ebuild:
34 + Version bump.
35
36 26 May 2014; Manuel Rüger <mrueg@g.o> racc-1.4.11.ebuild:
37 Remove ruby18 fragments.
38
39
40
41 1.1 dev-ruby/racc/racc-1.4.12.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/racc/racc-1.4.12.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/racc/racc-1.4.12.ebuild?rev=1.1&content-type=text/plain
45
46 Index: racc-1.4.12.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/racc/racc-1.4.12.ebuild,v 1.1 2014/08/27 23:46:00 mrueg Exp $
51
52 EAPI=5
53
54 USE_RUBY="ruby19 ruby20 ruby21 jruby"
55
56 RUBY_FAKEGEM_RECIPE_DOC="rdoc"
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="https://github.com/tenderlove/racc"
64
65 LICENSE="LGPL-2.1"
66 SLOT="0"
67
68 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~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 test? ( >=dev-ruby/minitest-4.0:0 )"
73
74 all_ruby_prepare() {
75 sed -i -e 's|/tmp/out|${TMPDIR:-/tmp}/out|' test/helper.rb || die "tests fix failed"
76
77 # Avoid depending on rake-compiler since we don't use it to compile
78 # the extension.
79 sed -i -e '/rake-compiler/ s:^:#:' -e '/extensiontask/ s:^:#:' Rakefile
80 sed -i -e '/ExtensionTask/,/^ end/ s:^:#:' Rakefile
81
82 # Avoid isolation since dependencies are not properly declared.
83 sed -i -e 's/, :isolate//' Rakefile || die
84
85 # Use a version of the minitest gem that works consistently accross
86 # all ruby versions.
87 sed -i -e '2i gem "minitest", "~>4.0"' test/helper.rb || die
88 }
89
90 each_ruby_prepare() {
91 case ${RUBY} in
92 *jruby)
93 # Some tests are broken on jruby, avoid them. We used to
94 # avoid all tests so this is not a regression for us.
95 rm test/test_racc_command.rb || die
96 ;;
97 *)
98 ${RUBY} -Cext/racc extconf.rb || die
99 ;;
100 esac
101 }
102
103 each_ruby_compile() {
104 case ${RUBY} in
105 *jruby)
106 einfo "Under JRuby, racc cannot use the shared object parser, so instead"
107 einfo "you have to rely on the pure Ruby implementation."
108 ;;
109 *)
110 emake V=1 -Cext/racc
111 # Copy over the file here so that we don't have to do
112 # special ruby install for JRuby and the other
113 # implementations.
114 cp -l ext/racc/cparse$(get_modname) lib/racc/cparse$(get_modname) || die
115 ;;
116 esac
117 }
118
119 each_ruby_test() {
120 ${RUBY} -Ilib -S testrb test/test_*.rb || die
121 }
122
123 all_ruby_install() {
124 all_fakegem_install
125
126 dodoc -r rdoc
127
128 docinto examples
129 dodoc -r sample
130 }