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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9BEA2158094 for ; Sun, 24 Jul 2022 07:26:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BFBBFE0E99; Sun, 24 Jul 2022 07:26:21 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A07A5E0E97 for ; Sun, 24 Jul 2022 07:26:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6FEF633FD24 for ; Sun, 24 Jul 2022 07:26:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9DB9F50D for ; Sun, 24 Jul 2022 07:26:18 +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: <1658646575.5cfeb0a3e69e952d781c7f7ea338ab0a04970b0c.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/crack/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/crack/crack-0.4.4-r1.ebuild X-VCS-Directories: dev-ruby/crack/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 5cfeb0a3e69e952d781c7f7ea338ab0a04970b0c X-VCS-Branch: master Date: Sun, 24 Jul 2022 07:26:18 +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: 42d1410a-c416-45a9-b95a-c663b6042caa X-Archives-Hash: f70264cbb54906fee943ff97138b2c54 commit: 5cfeb0a3e69e952d781c7f7ea338ab0a04970b0c Author: Hans de Graaff gentoo org> AuthorDate: Sat Jul 23 08:14:33 2022 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sun Jul 24 07:09:35 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5cfeb0a3 dev-ruby/crack: EAPI 7 -> 8, fix gemspec, fix tests Closes: https://bugs.gentoo.org/835132 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/crack/crack-0.4.4-r1.ebuild | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/dev-ruby/crack/crack-0.4.4-r1.ebuild b/dev-ruby/crack/crack-0.4.4-r1.ebuild new file mode 100644 index 000000000000..01cf2faa06cb --- /dev/null +++ b/dev-ruby/crack/crack-0.4.4-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +USE_RUBY="ruby27 ruby30" + +RUBY_FAKEGEM_EXTRADOC="README.md History" + +RUBY_FAKEGEM_GEMSPEC="crack.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Really simple JSON and XML parsing, ripped from Merb and Rails" +HOMEPAGE="https://github.com/jnunemaker/crack" +SRC_URI="https://github.com/jnunemaker/crack/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +ruby_add_rdepend "dev-ruby/rexml" + +ruby_add_bdepend "test? ( dev-ruby/minitest )" + +all_ruby_prepare() { + sed -i -e 's/git ls-files --/find/' ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_prepare() { + # Remove tests which fail when run by portage but pass when run by hand + sed -i -e '/{"regex": \/foo.*\/}/d' test/json_test.rb || die + sed -i -e '/{"regex": \/foo.*\/i}/d' test/json_test.rb || die + sed -i -e '/{"regex": \/foo.*\/mix}/d' test/json_test.rb || die +} + +each_ruby_test() { + ${RUBY} -Itest -Ilib -e 'gem "psych", "~> 3.0"; Dir["test/*_test.rb"].each { |f| load f }' || die +}