From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 75C701396D0 for ; Sun, 27 Aug 2017 06:42:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BC1C6E0E21; Sun, 27 Aug 2017 06:42:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 8A825E0E21 for ; Sun, 27 Aug 2017 06:42:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 5C56A341907 for ; Sun, 27 Aug 2017 06:42:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C6D048414 for ; Sun, 27 Aug 2017 06:42:51 +0000 (UTC) From: "Hans de Graaff" 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" Message-ID: <1503816162.9aa2f64aa152b7be045e3362bf14cedec87e8608.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/faraday/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/faraday/Manifest dev-ruby/faraday/faraday-0.9.2-r1.ebuild dev-ruby/faraday/faraday-0.9.2-r2.ebuild X-VCS-Directories: dev-ruby/faraday/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 9aa2f64aa152b7be045e3362bf14cedec87e8608 X-VCS-Branch: master Date: Sun, 27 Aug 2017 06:42:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 874a1fb5-09c6-4dca-b157-834968ecf3fe X-Archives-Hash: 255c82b697367781178c492bc3da6cb2 commit: 9aa2f64aa152b7be045e3362bf14cedec87e8608 Author: Hans de Graaff gentoo org> AuthorDate: Sun Aug 27 06:41:19 2017 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sun Aug 27 06:42:42 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9aa2f64a Revert "dev-ruby/faraday: cleanup" This reverts commit d244aad5b2f0ae1a52aa89654e99f664b22aee3b. Some packages depend on =dev-ruby/multipart-post-1.2.0 =dev-ruby/test-unit-2.4 + dev-ruby/httpclient + dev-ruby/rack-test + dev-ruby/sinatra + dev-ruby/net-http-persistent + dev-ruby/patron + )" + +all_ruby_prepare() { + # Remove bundler support. + rm Gemfile || die + sed -i -e '/[Bb]undler/d' Rakefile test/helper.rb || die + sed -i -e '/bundler/,/^fi/ s:^:#:' script/test || die + + # Remove simplecov and coveralls support, not needed to run tests. + sed -i -e '/simplecov/,/^ end/ s:^:#:' test/helper.rb || die + + # Remove tests for adapters that are not packaged for Gentoo. + rm test/adapters/em_http_test.rb test/adapters/em_synchrony_test.rb test/adapters/excon_test.rb test/adapters/typhoeus_test.rb || die + + # The proxy server is already killed, may be OS X vs Linux issue. + sed -i -e '138 s/^/#/' script/test || die + + sed -i -e '/git ls-files/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_prepare() { + # Make sure the test scripts use the right ruby interpreter + sed -i -e 's:ruby:'${RUBY}':' script/* || die +} + +each_ruby_test() { + each_fakegem_test + + # Sleep some time to allow the sinatra test server to die + einfo "Waiting for test server to stop" + sleep 10 +} diff --git a/dev-ruby/faraday/faraday-0.9.2-r2.ebuild b/dev-ruby/faraday/faraday-0.9.2-r2.ebuild new file mode 100644 index 00000000000..673d327b9a7 --- /dev/null +++ b/dev-ruby/faraday/faraday-0.9.2-r2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +USE_RUBY="ruby20 ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_TASK_TEST="test" +RUBY_FAKEGEM_TASK_DOC="" + +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec" + +inherit ruby-fakegem eutils + +DESCRIPTION="HTTP/REST API client library with pluggable components" +HOMEPAGE="https://github.com/lostisland/faraday" +SRC_URI="https://github.com/lostisland/faraday/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc64" +IUSE="" + +DEPEND+=" test? ( sys-process/lsof )" + +ruby_add_rdepend ">=dev-ruby/multipart-post-1.2.0 =dev-ruby/test-unit-2.4 + dev-ruby/httpclient + dev-ruby/rack-test + dev-ruby/sinatra + dev-ruby/net-http-persistent + dev-ruby/patron + )" + +all_ruby_prepare() { + # Remove bundler support. + rm Gemfile || die + sed -i -e '/[Bb]undler/d' Rakefile test/helper.rb || die + sed -i -e '/bundler/,/^fi/ s:^:#:' script/test || die + + # Remove simplecov and coveralls support, not needed to run tests. + sed -i -e '/simplecov/,/^ end/ s:^:#:' test/helper.rb || die + + # Remove tests for adapters that are not packaged for Gentoo. + rm test/adapters/em_http_test.rb test/adapters/em_synchrony_test.rb test/adapters/excon_test.rb test/adapters/typhoeus_test.rb || die + + # The proxy server is already killed, may be OS X vs Linux issue. + sed -i -e '138 s/^/#/' script/test || die + + sed -i -e '/git ls-files/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_prepare() { + # Make sure the test scripts use the right ruby interpreter + sed -i -e 's:ruby:'${RUBY}':' script/* || die +} + +each_ruby_test() { + each_fakegem_test + + # Sleep some time to allow the sinatra test server to die + einfo "Waiting for test server to stop" + sleep 10 +}