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/ruby-prof: ruby-prof-0.15.8.ebuild ChangeLog
Date: Mon, 06 Jul 2015 08:59:10
Message-Id: 20150706085858.57C97752@oystercatcher.gentoo.org
1 mrueg 15/07/06 08:58:58
2
3 Modified: ChangeLog
4 Added: ruby-prof-0.15.8.ebuild
5 Log:
6 Version bump. Add ruby22 target.
7
8 (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key )
9
10 Revision Changes Path
11 1.42 dev-ruby/ruby-prof/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/ruby-prof/ChangeLog?rev=1.42&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/ruby-prof/ChangeLog?rev=1.42&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/ruby-prof/ChangeLog?r1=1.41&r2=1.42
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/ruby-prof/ChangeLog,v
20 retrieving revision 1.41
21 retrieving revision 1.42
22 diff -u -r1.41 -r1.42
23 --- ChangeLog 7 Jun 2015 19:37:36 -0000 1.41
24 +++ ChangeLog 6 Jul 2015 08:58:58 -0000 1.42
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-ruby/ruby-prof
27 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-prof/ChangeLog,v 1.41 2015/06/07 19:37:36 jlec Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-prof/ChangeLog,v 1.42 2015/07/06 08:58:58 mrueg Exp $
30 +
31 +*ruby-prof-0.15.8 (06 Jul 2015)
32 +
33 + 06 Jul 2015; Manuel Rüger <mrueg@g.o> +ruby-prof-0.15.8.ebuild:
34 + Version bump. Add ruby22 target.
35
36 07 Jun 2015; Justin Lecher <jlec@g.o> metadata.xml:
37 Add github to remote-id in metadata.xml
38
39
40
41 1.1 dev-ruby/ruby-prof/ruby-prof-0.15.8.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/ruby-prof/ruby-prof-0.15.8.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/ruby-prof/ruby-prof-0.15.8.ebuild?rev=1.1&content-type=text/plain
45
46 Index: ruby-prof-0.15.8.ebuild
47 ===================================================================
48 # Copyright 1999-2015 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-prof/ruby-prof-0.15.8.ebuild,v 1.1 2015/07/06 08:58:58 mrueg Exp $
51
52 EAPI=5
53
54 # jruby → not compatible, since it uses an extension, but there is a bug
55 # open for it: https://github.com/rdp/ruby-prof/issues/36
56
57 USE_RUBY="ruby19 ruby20 ruby21 ruby22"
58
59 RUBY_FAKEGEM_EXTRADOC="README.rdoc CHANGES"
60 RUBY_FAKEGEM_DOCDIR="doc"
61
62 inherit multilib ruby-fakegem
63
64 DESCRIPTION="A module for profiling Ruby code"
65 HOMEPAGE="https://github.com/ruby-prof/ruby-prof"
66 SRC_URI="https://github.com/ruby-prof/${PN}/archive/v${PV}.tar.gz -> ${P}.tgz"
67
68 LICENSE="BSD"
69 SLOT="0"
70 KEYWORDS="~amd64 ~ppc ~x86"
71 IUSE=""
72
73 ruby_add_bdepend "test? ( dev-ruby/test-unit:2 dev-ruby/minitest )"
74
75 all_ruby_prepare() {
76 # Avoid bundler
77 sed -i -e '/bundler/I s:^:#:' -e '/:build/ s:^:#:' Rakefile || die
78
79 sed -i -e '2igem "test-unit"' test/test_helper.rb || die
80
81 # Fix a timing-dependant spec since its thresholds for success are
82 # too tight.
83 sed -i -e '/test_class_methods/,/^ end/ s:^:#:' test/measure_cpu_time_test.rb || die
84
85 # We install the shared object in lib, not ext.
86 sed -i -e 's#../ext/ruby_prof#../lib/ruby_prof#' lib/ruby-prof.rb || die
87
88 # Avoid unneeded dependency on rake-compiler
89 sed -i -e '/extensiontask/ s:^:#:' \
90 -e '/ExtensionTask/,/end/ s:^:#:' Rakefile || die
91
92 # Create directory required for the test suite to pass
93 mkdir tmp || die
94 }
95
96 each_ruby_configure() {
97 ${RUBY} -Cext/ruby_prof extconf.rb || die "extconf.rb failed"
98 }
99
100 each_ruby_compile() {
101 emake V=1 -Cext/ruby_prof || die "build failed"
102
103 mkdir lib/ruby_prof || die "unable to create directory for shared object"
104 cp ext/ruby_prof/*$(get_modname) lib/ruby_prof || die "copy of extension failed"
105 }
106
107 all_ruby_install() {
108 all_fakegem_install
109
110 for dir in examples ; do
111 docinto "$dir"
112 dodoc -r "$dir"/*
113 done
114 }