summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2016-08-30 07:37:23 +0200
committerHans de Graaff <graaff@gentoo.org>2016-08-30 07:37:23 +0200
commit968b597f8dd5570db57a6d28afca091d05bb0192 (patch)
treea1cd48dfc3614e39ef2663b1e4c90982b937d460 /dev-ruby/curb
parentapp-admin/cli53: bump to 0.8.0 (diff)
downloadgentoo-968b597f8dd5570db57a6d28afca091d05bb0192.tar.gz
gentoo-968b597f8dd5570db57a6d28afca091d05bb0192.tar.bz2
gentoo-968b597f8dd5570db57a6d28afca091d05bb0192.zip
dev-ruby/curb: add 0.9.3
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/curb')
-rw-r--r--dev-ruby/curb/Manifest1
-rw-r--r--dev-ruby/curb/curb-0.9.3.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/dev-ruby/curb/Manifest b/dev-ruby/curb/Manifest
index ba143bf56045..d15f16390ff2 100644
--- a/dev-ruby/curb/Manifest
+++ b/dev-ruby/curb/Manifest
@@ -1 +1,2 @@
DIST curb-0.8.8.gem 80384 SHA256 ec3b5880d92c9a9140555fc5c86524025474a905e6548e1c37816247ad60903e SHA512 441025ae199266009bc3f8a2068245a4ee0b83f72babc35cc4fa744b0f3efe13ba26c5f795ff6f429bb7bfbd5ce31d51e5de6b65c3f10285d9a9f5909eff286f WHIRLPOOL e3e371d948fe1f008e34de944fc602267421f643eeec32a7408806dc6e7abc440e73ab63583273247330657ea7bebe7caa4957d95160ab66509110f2acf99ce5
+DIST curb-0.9.3.gem 81920 SHA256 42651d05f712a93fb9cc733910b285d389afbd16952d456b13733b12a403e009 SHA512 b484505fbdd038f6827aec9fa936f0a00d0ada5af4c655320976b5efef2b0d503a1aae4f72246467ba7caaede1440c59f511f45f10c53b90fc2a94630bc620f9 WHIRLPOOL 62a529c8d937e92c3e0f058cf3eb09c73c41393675e8bb0a3cfd22015383f4b5fa8d01be48d5abf655b4310325ef5837496f0221f9fd91ea1861dbaceb0087fc
diff --git a/dev-ruby/curb/curb-0.9.3.ebuild b/dev-ruby/curb/curb-0.9.3.ebuild
new file mode 100644
index 000000000000..4b9aab759fc0
--- /dev/null
+++ b/dev-ruby/curb/curb-0.9.3.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+
+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
+}