Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/curb/
Date: Tue, 30 Aug 2016 05:40:07
Message-Id: 1472535443.968b597f8dd5570db57a6d28afca091d05bb0192.graaff@gentoo
1 commit: 968b597f8dd5570db57a6d28afca091d05bb0192
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 30 05:37:23 2016 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 30 05:37:23 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=968b597f
7
8 dev-ruby/curb: add 0.9.3
9
10 Package-Manager: portage-2.2.28
11
12 dev-ruby/curb/Manifest | 1 +
13 dev-ruby/curb/curb-0.9.3.ebuild | 46 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 47 insertions(+)
15
16 diff --git a/dev-ruby/curb/Manifest b/dev-ruby/curb/Manifest
17 index ba143bf..d15f163 100644
18 --- a/dev-ruby/curb/Manifest
19 +++ b/dev-ruby/curb/Manifest
20 @@ -1 +1,2 @@
21 DIST curb-0.8.8.gem 80384 SHA256 ec3b5880d92c9a9140555fc5c86524025474a905e6548e1c37816247ad60903e SHA512 441025ae199266009bc3f8a2068245a4ee0b83f72babc35cc4fa744b0f3efe13ba26c5f795ff6f429bb7bfbd5ce31d51e5de6b65c3f10285d9a9f5909eff286f WHIRLPOOL e3e371d948fe1f008e34de944fc602267421f643eeec32a7408806dc6e7abc440e73ab63583273247330657ea7bebe7caa4957d95160ab66509110f2acf99ce5
22 +DIST curb-0.9.3.gem 81920 SHA256 42651d05f712a93fb9cc733910b285d389afbd16952d456b13733b12a403e009 SHA512 b484505fbdd038f6827aec9fa936f0a00d0ada5af4c655320976b5efef2b0d503a1aae4f72246467ba7caaede1440c59f511f45f10c53b90fc2a94630bc620f9 WHIRLPOOL 62a529c8d937e92c3e0f058cf3eb09c73c41393675e8bb0a3cfd22015383f4b5fa8d01be48d5abf655b4310325ef5837496f0221f9fd91ea1861dbaceb0087fc
23
24 diff --git a/dev-ruby/curb/curb-0.9.3.ebuild b/dev-ruby/curb/curb-0.9.3.ebuild
25 new file mode 100644
26 index 00000000..4b9aab7
27 --- /dev/null
28 +++ b/dev-ruby/curb/curb-0.9.3.ebuild
29 @@ -0,0 +1,46 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=5
35 +
36 +USE_RUBY="ruby20 ruby21 ruby22 ruby23"
37 +
38 +RUBY_FAKEGEM_RECIPE_TEST="rake"
39 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
40 +
41 +inherit ruby-fakegem
42 +
43 +DESCRIPTION="Ruby-language bindings for libcurl"
44 +HOMEPAGE="https://github.com/taf2/curb"
45 +
46 +LICENSE="Ruby"
47 +SLOT="0"
48 +KEYWORDS="~amd64"
49 +IUSE=""
50 +
51 +DEPEND+=" net-misc/curl[ssl]"
52 +RDEPEND+=" net-misc/curl[ssl]"
53 +
54 +all_ruby_prepare() {
55 + # fix tests when localhost is also ::1
56 + sed -i -e 's|localhost:|127.0.0.1:|g' tests/*.rb || die
57 +
58 + # avoid tests making outside network connections
59 + rm tests/bug_postfields_crash.rb || die
60 + sed -e '/test_easy_http_verbs_must_respond_to_str/,/^ end/ s:^:#:' \
61 + -i tests/tc_curl_easy.rb || die
62 +
63 + # avoid failing tests where failure condition seems weird, no
64 + # upstream travis so not clear if the test is indeed broken.
65 + sed -i -e '/test_multi_easy_http/,/^ end/ s:^:#:' tests/tc_curl_multi.rb || die
66 +}
67 +
68 +each_ruby_configure() {
69 + ${RUBY} -Cext extconf.rb || die "extconf.rb failed"
70 +}
71 +
72 +each_ruby_compile() {
73 + emake -Cext CFLAGS="${CFLAGS} -fPIC" archflags="${LDFLAGS}" V=1
74 + cp -l ext/curb_core$(get_modname) lib || die
75 +}