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/eventmachine: ChangeLog eventmachine-1.0.0.ebuild
Date: Sat, 24 Nov 2012 11:31:54
Message-Id: 20121124113143.AA77920C65@flycatcher.gentoo.org
1 graaff 12/11/24 11:31:42
2
3 Modified: ChangeLog
4 Added: eventmachine-1.0.0.ebuild
5 Log:
6 Version bump. Ebuild partly based on version by Michel Boaventura in the ruby overlay.
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.17 dev-ruby/eventmachine/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/eventmachine/ChangeLog?rev=1.17&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/eventmachine/ChangeLog?rev=1.17&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/eventmachine/ChangeLog?r1=1.16&r2=1.17
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/eventmachine/ChangeLog,v
20 retrieving revision 1.16
21 retrieving revision 1.17
22 diff -u -r1.16 -r1.17
23 --- ChangeLog 11 Dec 2011 08:43:12 -0000 1.16
24 +++ ChangeLog 24 Nov 2012 11:31:42 -0000 1.17
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-ruby/eventmachine
27 -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/eventmachine/ChangeLog,v 1.16 2011/12/11 08:43:12 graaff Exp $
29 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/eventmachine/ChangeLog,v 1.17 2012/11/24 11:31:42 graaff Exp $
31 +
32 +*eventmachine-1.0.0 (24 Nov 2012)
33 +
34 + 24 Nov 2012; Hans de Graaff <graaff@g.o> +eventmachine-1.0.0.ebuild:
35 + Version bump. Ebuild partly based on version by Michel Boaventura in the ruby
36 + overlay.
37
38 11 Dec 2011; Hans de Graaff <graaff@g.o>
39 eventmachine-0.12.10-r2.ebuild:
40
41
42
43 1.1 dev-ruby/eventmachine/eventmachine-1.0.0.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/eventmachine/eventmachine-1.0.0.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-ruby/eventmachine/eventmachine-1.0.0.ebuild?rev=1.1&content-type=text/plain
47
48 Index: eventmachine-1.0.0.ebuild
49 ===================================================================
50 # Copyright 1999-2012 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/eventmachine/eventmachine-1.0.0.ebuild,v 1.1 2012/11/24 11:31:42 graaff Exp $
53
54 EAPI=4
55 # jruby → has shims for Java handling but tests fail badly, remaining
56 # stuck; avoid that for now.
57 USE_RUBY="ruby18 ree18 ruby19"
58
59 RUBY_FAKEGEM_TASK_DOC="yard"
60 RUBY_FAKEGEM_DOCDIR="rdoc"
61 RUBY_FAKEGEM_EXTRADOC="docs/*.md README.md"
62
63 inherit ruby-fakegem
64
65 DESCRIPTION="EventMachine is a fast, simple event-processing library for Ruby programs."
66 HOMEPAGE="http://rubyeventmachine.com"
67
68 LICENSE="|| ( GPL-2 Ruby )"
69 SLOT="0"
70 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
71 IUSE=""
72
73 DEPEND="${DEPEND}
74 dev-libs/openssl"
75 RDEPEND="${RDEPEND}
76 dev-libs/openssl"
77
78 ruby_add_bdepend "doc? ( dev-ruby/yard )"
79
80 all_ruby_prepare() {
81 # Remove package tasks to avoid dependency on rake-compiler.
82 rm rakelib/package.rake || die
83
84 # fix test issue - upstream b96b736b39261f7d74f013633cc7cd619afa20c4
85 sed -i -e 's/DEBUG/BROADCAST/g' tests/test_set_sock_opt.rb || die
86
87 # Remove the resolver tests since they require network access and
88 # the localhost test fails with an IPv6 localhost.
89 rm tests/test_resolver.rb || die
90 }
91
92 each_ruby_configure() {
93 for extdir in ext ext/fastfilereader; do
94 pushd $extdir
95 ${RUBY} extconf.rb || die "extconf.rb failed for ${extdir}"
96 popd
97 done
98 }
99
100 each_ruby_compile() {
101 for extdir in ext ext/fastfilereader; do
102 pushd $extdir
103 # both extensions use C++, so use the CXXFLAGS not the CFLAGS
104 emake CFLAGS="${CXXFLAGS} -fPIC" archflag="${LDFLAGS}" || die "emake failed for ${extdir}"
105 popd
106 cp $extdir/*.so lib/ || die "Unable to copy extensions for ${extdir}"
107 done
108 }
109
110 each_ruby_test() {
111 ${RUBY} -Ilib -S testrb tests/test_*.rb || die
112 }
113
114 all_ruby_install() {
115 all_fakegem_install
116
117 insinto /usr/share/doc/${PF}/
118 doins -r examples || die "Failed to install examples"
119 }