From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-969285-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 838E01396D0 for <garchives@archives.gentoo.org>; Sun, 27 Aug 2017 06:18:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CBEDFE0E21; Sun, 27 Aug 2017 06:18:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9B787E0E21 for <gentoo-commits@lists.gentoo.org>; Sun, 27 Aug 2017 06:18:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A6DD93418CA for <gentoo-commits@lists.gentoo.org>; Sun, 27 Aug 2017 06:18:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 50CDA841C for <gentoo-commits@lists.gentoo.org>; Sun, 27 Aug 2017 06:18:54 +0000 (UTC) From: "Hans de Graaff" <graaff@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" <graaff@gentoo.org> Message-ID: <1503814623.3e93095a07959bb9732d6ab1d29b69fd0fc45ab9.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/curb/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/curb/Manifest dev-ruby/curb/curb-0.9.4.ebuild X-VCS-Directories: dev-ruby/curb/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 3e93095a07959bb9732d6ab1d29b69fd0fc45ab9 X-VCS-Branch: master Date: Sun, 27 Aug 2017 06:18:54 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 73446713-b84e-4667-a9e9-322316306cc4 X-Archives-Hash: 2e8a8a7b6721c8513e27e4257de4bc1e 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 +}