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/ruby-inline: ChangeLog ruby-inline-3.8.4-r2.ebuild
Date: Sat, 28 Aug 2010 13:15:54
Message-Id: 20100828131541.73FDE20054@flycatcher.gentoo.org
1 graaff 10/08/28 13:15:41
2
3 Modified: ChangeLog
4 Added: ruby-inline-3.8.4-r2.ebuild
5 Log:
6 Respect ruby's LDFLAGS and explicitly link against the right shared library. Fixes bug 334373.
7 (Portage version: 2.1.8.3/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.26 dev-ruby/ruby-inline/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/ruby-inline/ChangeLog?rev=1.26&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/ruby-inline/ChangeLog?rev=1.26&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/ruby-inline/ChangeLog?r1=1.25&r2=1.26
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/ruby-inline/ChangeLog,v
19 retrieving revision 1.25
20 retrieving revision 1.26
21 diff -u -r1.25 -r1.26
22 --- ChangeLog 23 May 2010 20:49:10 -0000 1.25
23 +++ ChangeLog 28 Aug 2010 13:15:41 -0000 1.26
24 @@ -1,6 +1,13 @@
25 # ChangeLog for dev-ruby/ruby-inline
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-inline/ChangeLog,v 1.25 2010/05/23 20:49:10 flameeyes Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-inline/ChangeLog,v 1.26 2010/08/28 13:15:41 graaff Exp $
29 +
30 +*ruby-inline-3.8.4-r2 (28 Aug 2010)
31 +
32 + 28 Aug 2010; Hans de Graaff <graaff@g.o>
33 + +ruby-inline-3.8.4-r2.ebuild, +files/ruby-inline-3.8.4-ldflags.patch:
34 + Respect ruby's LDFLAGS and explicitly link against the right shared
35 + library. Fixes bug 334373.
36
37 *ruby-inline-3.8.4-r1 (23 May 2010)
38
39
40
41
42 1.1 dev-ruby/ruby-inline/ruby-inline-3.8.4-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/ruby-inline/ruby-inline-3.8.4-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/ruby-inline/ruby-inline-3.8.4-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: ruby-inline-3.8.4-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-inline/ruby-inline-3.8.4-r2.ebuild,v 1.1 2010/08/28 13:15:41 graaff Exp $
52
53 EAPI=2
54
55 USE_RUBY="ruby18 ree18 ruby19"
56
57 RUBY_FAKEGEM_NAME="RubyInline"
58
59 RUBY_FAKEGEM_TASK_DOC="docs"
60 RUBY_FAKEGEM_DOCDIR="doc"
61 RUBY_FAKEGEM_EXTRADOC="README.txt History.txt"
62
63 inherit ruby-fakegem
64
65 DESCRIPTION="Allows to embed C/C++ in Ruby code"
66 HOMEPAGE="http://www.zenspider.com/ZSS/Products/RubyInline/"
67
68 LICENSE="MIT"
69 SLOT="0"
70 KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
71 IUSE=""
72
73 ruby_add_rdepend dev-ruby/zentest
74
75 ruby_add_bdepend "
76 doc? (
77 dev-ruby/hoe
78 dev-ruby/hoe-seattlerb
79 )
80 test? (
81 dev-ruby/hoe
82 dev-ruby/hoe-seattlerb
83 virtual/ruby-test-unit
84 )"
85
86 all_ruby_prepare() {
87 # we have to patch the code so that it takes the RUBY_DESCRIPTION
88 # into consideration, to avoid loading Ruby-Enterprise (REE18)
89 # objects in MRI and vice-versa; we're a bit “greedier” since we
90 # will rebuild objects even when just switching versions, but
91 # it'll be better this way than being too conservatives.
92 epatch "${FILESDIR}/${P}-gentoo.patch"
93
94 # Respect ruby's (and thus Gentoo's) LDFLAGS, and explicitly link
95 # against the ruby shared library to avoid confusion and potential
96 # crashes when later using the shared object.
97 epatch "${FILESDIR}/${P}-ldflags.patch"
98 }
99
100 all_ruby_install() {
101 all_fakegem_install
102
103 docinto examples
104 dodoc example.rb example2.rb demo/*.rb || die
105 }