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 532A6158010 for ; Sun, 8 Jan 2023 08:33:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6F5DCE07C7; Sun, 8 Jan 2023 08:33:23 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 5B8AFE07C7 for ; Sun, 8 Jan 2023 08:33:23 +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 6FCE8340D5A for ; Sun, 8 Jan 2023 08:33:22 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CA1DE7FA for ; Sun, 8 Jan 2023 08:33:20 +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: <1673166795.e647870301a6f119a07b3d3f9323b3cb8e064afd.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/git/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ruby/git/git-1.13.0-r1.ebuild X-VCS-Directories: dev-ruby/git/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: e647870301a6f119a07b3d3f9323b3cb8e064afd X-VCS-Branch: master Date: Sun, 8 Jan 2023 08:33:20 +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: 62dc7ca9-d5a0-4e9d-9d67-a3893af9e87a X-Archives-Hash: cdab9949ba1fb624126333bddb5ff11d commit: e647870301a6f119a07b3d3f9323b3cb8e064afd Author: Hans de Graaff gentoo org> AuthorDate: Sun Jan 8 08:32:19 2023 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sun Jan 8 08:33:15 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6478703 dev-ruby/git: fix version number in gemspec Upstream tagged this release before changing the version number. Closes: https://bugs.gentoo.org/889537 Signed-off-by: Hans de Graaff gentoo.org> dev-ruby/git/git-1.13.0-r1.ebuild | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/dev-ruby/git/git-1.13.0-r1.ebuild b/dev-ruby/git/git-1.13.0-r1.ebuild new file mode 100644 index 000000000000..d9cbcab1b2db --- /dev/null +++ b/dev-ruby/git/git-1.13.0-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby27 ruby30 ruby31" + +RUBY_FAKEGEM_BINWRAP="" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_GEMSPEC="git.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="Library for using Git in Ruby" +HOMEPAGE="https://github.com/schacon/ruby-git" +SRC_URI="https://github.com/schacon/ruby-git/archive/v${PV}.tar.gz -> ${P}.tar.gz" +RUBY_S="ruby-git-${PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="test" + +DEPEND+="test? ( >=dev-vcs/git-1.6.0.0 app-arch/tar )" +RDEPEND+=">=dev-vcs/git-1.6.0.0" + +ruby_add_rdepend ">=dev-ruby/addressable-2.8:0 >=dev-ruby/rchardet-1.8:1" + +ruby_add_bdepend "test? ( dev-ruby/bundler dev-ruby/minitar dev-ruby/test-unit:2 )" + +all_ruby_prepare() { + # Don't use hardcoded /tmp directory. + sed -i -e "s:/tmp:${TMPDIR}:" tests/units/test_archive.rb tests/test_helper.rb || die + + sed -i -e 's/__dir__/"."/' -e 's/git ls-files -z/find * -print0/' ${RUBY_FAKEGEM_GEMSPEC} || die + + sed -i -e 's/1.12.0/'${PV}'/' lib/git/version.rb || die +} + +each_ruby_test() { + git config --global user.email "git@example.com" || die + git config --global user.name "GitExample" || die + ${RUBY} -Ilib:.:test -e 'Dir["tests/**/test_*.rb"].each {|f| require f}' || die +}