commit:     3e93095a07959bb9732d6ab1d29b69fd0fc45ab9
Author:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 27 05:43:05 2017 +0000
Commit:     Hans de Graaff <graaff <AT> gentoo <DOT> org>
CommitDate: Sun Aug 27 06:17:03 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3e93095a

dev-ruby/curb: add 0.9.4

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 dev-ruby/curb/Manifest          |  1 +
 dev-ruby/curb/curb-0.9.4.ebuild | 45 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)

diff --git a/dev-ruby/curb/Manifest b/dev-ruby/curb/Manifest
index 1cb0420ded4..d6c5fa50b1b 100644
--- a/dev-ruby/curb/Manifest
+++ b/dev-ruby/curb/Manifest
@@ -1 +1,2 @@
 DIST curb-0.9.3.gem 81920 SHA256 
42651d05f712a93fb9cc733910b285d389afbd16952d456b13733b12a403e009 SHA512 
b484505fbdd038f6827aec9fa936f0a00d0ada5af4c655320976b5efef2b0d503a1aae4f72246467ba7caaede1440c59f511f45f10c53b90fc2a94630bc620f9
 WHIRLPOOL 
62a529c8d937e92c3e0f058cf3eb09c73c41393675e8bb0a3cfd22015383f4b5fa8d01be48d5abf655b4310325ef5837496f0221f9fd91ea1861dbaceb0087fc
+DIST curb-0.9.4.gem 82432 SHA256 
cedc6ef5a287f86179fa7e47b9b70fb537d3c94c6f48b93071d6cec2a2268b8a SHA512 
7b81ba587ac9beb203e040234d9f5032d87352a3e045d3705f474d2eaf1f620245240a59894c7147f54d55f0293f60488e8f883367f96945d49ffcdcef42bfc1
 WHIRLPOOL 
5add294a7a463878d846afeed5bb9015cd70d52068e9dbc7b281f56ea6defb7f664d5b85575176f7d4dbef41e262713386d252a387dfa7f3e4bfef90ce808df9

diff --git a/dev-ruby/curb/curb-0.9.4.ebuild b/dev-ruby/curb/curb-0.9.4.ebuild
new file mode 100644
index 00000000000..286c044ffd7
--- /dev/null
+++ b/dev-ruby/curb/curb-0.9.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby22 ruby23 ruby24"
+
+RUBY_FAKEGEM_RECIPE_TEST="rake"
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Ruby-language bindings for libcurl"
+HOMEPAGE="https://github.com/taf2/curb";
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND+=" net-misc/curl[ssl]"
+RDEPEND+=" net-misc/curl[ssl]"
+
+all_ruby_prepare() {
+       # fix tests when localhost is also ::1
+       sed -i -e 's|localhost:|127.0.0.1:|g' tests/*.rb || die
+
+       # avoid tests making outside network connections
+       rm tests/bug_postfields_crash.rb || die
+       sed -e '/test_easy_http_verbs_must_respond_to_str/,/^  end/ s:^:#:' \
+               -i tests/tc_curl_easy.rb || die
+
+       # avoid failing tests where failure condition seems weird, no 
+       # upstream travis so not clear if the test is indeed broken.
+       sed -i -e '/test_multi_easy_http/,/^  end/ s:^:#:' 
tests/tc_curl_multi.rb || die
+}
+
+each_ruby_configure() {
+       ${RUBY} -Cext extconf.rb || die "extconf.rb failed"
+}
+
+each_ruby_compile() {
+       emake -Cext CFLAGS="${CFLAGS} -fPIC" archflags="${LDFLAGS}" V=1
+       cp -l ext/curb_core$(get_modname) lib || die
+}

Reply via email to