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 DEDB6138359 for ; Fri, 23 Oct 2020 05:09:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3551AE091F; Fri, 23 Oct 2020 05:09:39 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 EBD24E091F for ; Fri, 23 Oct 2020 05:09:38 +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 BC1E9335DAF for ; Fri, 23 Oct 2020 05:09:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 705AE3A7 for ; Fri, 23 Oct 2020 05:09:36 +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: <1603429772.668dd819f954bdaa9b2997cc7a0f23d4f381b36b.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/rack-cache/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/rack-cache/Manifest dev-ruby/rack-cache/rack-cache-1.12.1.ebuild X-VCS-Directories: dev-ruby/rack-cache/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 668dd819f954bdaa9b2997cc7a0f23d4f381b36b X-VCS-Branch: master Date: Fri, 23 Oct 2020 05:09:36 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 108289c4-f1e1-46d5-a1fa-0b802ab3d1dc X-Archives-Hash: f4435d7c5ce4182cc37879ce7df07baa commit: 668dd819f954bdaa9b2997cc7a0f23d4f381b36b Author: Hans de Graaff gentoo org> AuthorDate: Fri Oct 23 04:54:42 2020 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Fri Oct 23 05:09:32 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=668dd819 dev-ruby/rack-cache: add 1.12.1 Package-Manager: Portage-3.0.8, Repoman-3.0.2 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/rack-cache/Manifest | 1 + dev-ruby/rack-cache/rack-cache-1.12.1.ebuild | 47 ++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) diff --git a/dev-ruby/rack-cache/Manifest b/dev-ruby/rack-cache/Manifest index 557398a8770..869a3e65de3 100644 --- a/dev-ruby/rack-cache/Manifest +++ b/dev-ruby/rack-cache/Manifest @@ -1 +1,2 @@ DIST rack-cache-1.12.0.tar.gz 262794 BLAKE2B 63668875cbfba5a6012f43fcfb504e99e357301b8c4b26bfd007b6d22fd9cd3d2f40b096505f9b9523c49ca2a7c980fa15c95187284a339604ca8acadfad374b SHA512 67101c2fec86db94d177c4cc476a17e5bda51d222ac8530fe6cdef8fb196b3b7ffe301003abbc14430c4f4068da0627ffcdd498fd79faebd190571bfbaec3ab5 +DIST rack-cache-1.12.1.tar.gz 262878 BLAKE2B c287c547496f0c4659f16cf45aa4c562cfccc5d6ba9e71a10a6507346797bba7d9d1e287ef1fe3d8c6bb6e8ef148d6c24d90e92db1ae53ea2f7d1ee91e3fd148 SHA512 f850facb28f302db819b6d67fd86e0dd18ae8f5d132044582bbcd6792b287c7d4a29219a47e708b5047fb373b5857632597d9743b4ba530b1258d29924ca4cf9 diff --git a/dev-ruby/rack-cache/rack-cache-1.12.1.ebuild b/dev-ruby/rack-cache/rack-cache-1.12.1.ebuild new file mode 100644 index 00000000000..dfad5edb6bd --- /dev/null +++ b/dev-ruby/rack-cache/rack-cache-1.12.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +USE_RUBY="ruby25 ruby26 ruby27" + +# no documentation is generable, it needs hanna, which is broken +RUBY_FAKEGEM_RECIPE_DOC="none" + +RUBY_FAKEGEM_TASK_TEST="none" + +RUBY_FAKEGEM_EXTRADOC="CHANGES README.md doc/*" + +RUBY_FAKEGEM_GEMSPEC="rack-cache.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Enable HTTP caching for Rack-based applications that produce freshness info" +HOMEPAGE="https://github.com/rtomayko/rack-cache" +SRC_URI="https://github.com/rtomayko/rack-cache/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="1.2" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_rdepend "dev-ruby/rack:*" + +ruby_add_bdepend "test? ( + >=dev-ruby/maxitest-3.4.0 + >=dev-ruby/minitest-5.7.0:5 + >=dev-ruby/mocha-0.13.0 )" + +all_ruby_prepare() { + sed -i -e '/bundler/ s:^:#:' \ + -e "2i require 'timeout'" \ + test/test_helper.rb || die +} + +all_ruby_prepare() { + sed -i -e 's/git ls-files/find/' ${RUBY_FAKEGEM_GEMSPEC} || die + sed -i -e '/bundler/ s:^:#:' test/test_helper.rb || die +} + +each_ruby_test() { + ${RUBY} -I.:lib:test -e 'Dir["test/*_test.rb"].each{|f| require f}' || die +}