commit: 8a3bc2731f19cd15282c02ad2b420e5fc5cd88ca Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sat Mar 4 08:21:41 2023 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sat Mar 4 08:28:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a3bc273
dev-ruby/git: add 1.16.0 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/git/Manifest | 1 + dev-ruby/git/git-1.16.0.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/dev-ruby/git/Manifest b/dev-ruby/git/Manifest index d5b91e09a5ae..833e5b11787b 100644 --- a/dev-ruby/git/Manifest +++ b/dev-ruby/git/Manifest @@ -1,3 +1,4 @@ DIST git-1.13.0.tar.gz 219424 BLAKE2B 38d1821c59cbb743c50655e9426d77f76e77dda614a711b7d2185ed7f4caa853383ba85ecf05237da403061d002527c38a5c6e06cf5e6d482ac76bac49a0db56 SHA512 7920de37a3df67b743e91fb317bd0cba746d2343dfb77036398fc124d00eede7b9ade5dd2af5f26d65f1f24006608a29fca55d5be8a00557caaa31acd0b274d4 DIST git-1.13.1.tar.gz 219640 BLAKE2B c87fce3f83130f7a75a10a21c4c980ec1d3594b20afa7b482f21077083076df7b4c462908a05c7b2fb3091e1fda00857ae40c4809e89f059f63ce12b119f307b SHA512 58cd7f38a5c1d5ab3d68cf2d4b026a80073f5dba3cb4895e220ecad5dbdf6a2df4e1e44570bde9256371c5089b81523aca4a5c686348bd04638f4dd09927e876 DIST git-1.13.2.tar.gz 222112 BLAKE2B 13b2f8c67a27a147662fa019f6fac8f557e704fe1d0320188a097385f7692a190670ba375312e793d4d39fcf9ea7be8325394830c2c499b5132201f4a8f3f6ee SHA512 36425806c86e3c5d1a393ec657b60b8dafc88d92822270c299d3d1768c37d00e70b723d98a60127ab70de15809b27a49bcef5c8a972b88d7a516de093a643347 +DIST git-1.16.0.tar.gz 171700 BLAKE2B 92e518a9b282debad9a935882004f8047918ade0ceb660618e632087cfd44fbe952e45f0aa13d8b599e24c07a809622168637b58463578ec5882ec16afe194d5 SHA512 89e9180370b24e0240ba8226125c063ed008faf2c03905e3680a2e5e6b0dcb1d805f17755f259e9337e1418629057ba460e7ecadb8a4c98125a061b7f0116401 diff --git a/dev-ruby/git/git-1.16.0.ebuild b/dev-ruby/git/git-1.16.0.ebuild new file mode 100644 index 000000000000..12bd3c3a5b13 --- /dev/null +++ b/dev-ruby/git/git-1.16.0.ebuild @@ -0,0 +1,42 @@ +# 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/ruby-git/ruby-git" +SRC_URI="https://github.com/ruby-git/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 +} + +each_ruby_test() { + git config --global user.email "[email protected]" || die + git config --global user.name "GitExample" || die + ${RUBY} -Ilib:.:tests -e 'Dir["tests/**/test_*.rb"].each {|f| require f}' || die +}
