diff options
author | Hans de Graaff <graaff@gentoo.org> | 2023-01-08 09:32:19 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2023-01-08 09:33:15 +0100 |
commit | e647870301a6f119a07b3d3f9323b3cb8e064afd (patch) | |
tree | 0a9fc77aa3354f9a3142470985e667f7b7bd7f43 /dev-ruby/git | |
parent | dev-db/mysql-workbench: drop 8.0.29-r1 (diff) | |
download | gentoo-e647870301a6f119a07b3d3f9323b3cb8e064afd.tar.gz gentoo-e647870301a6f119a07b3d3f9323b3cb8e064afd.tar.bz2 gentoo-e647870301a6f119a07b3d3f9323b3cb8e064afd.zip |
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 <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/git')
-rw-r--r-- | dev-ruby/git/git-1.13.0-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
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 +} |