diff options
author | Hans de Graaff <graaff@gentoo.org> | 2024-10-24 08:31:45 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2024-10-24 08:33:11 +0200 |
commit | 2509e649fd24c66852e6b3e90e887ac9dc49b422 (patch) | |
tree | e85dccce007fcbbfc1dd6af9a78d30fd44c69a34 /dev-ruby/git | |
parent | dev-ruby/execjs: drop 2.8.1-r1 (diff) | |
download | gentoo-2509e649fd24c66852e6b3e90e887ac9dc49b422.tar.gz gentoo-2509e649fd24c66852e6b3e90e887ac9dc49b422.tar.bz2 gentoo-2509e649fd24c66852e6b3e90e887ac9dc49b422.zip |
dev-ruby/git: add 2.3.1
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/git')
-rw-r--r-- | dev-ruby/git/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/git/git-2.3.1.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/git/Manifest b/dev-ruby/git/Manifest index 97ba72065a2b..0e837679c462 100644 --- a/dev-ruby/git/Manifest +++ b/dev-ruby/git/Manifest @@ -2,3 +2,4 @@ DIST git-1.19.1.tar.gz 177887 BLAKE2B 0da2a829679fd4e2d4b3aec5e88f421d221593729b DIST git-2.1.1.tar.gz 189005 BLAKE2B 8c273d28bc0b8ccc1a1ac74242086e56941fb6827e39d358adab0e645d080eaf5e4727b0a9aa131ea068efbd77c1ff645b55ddf69d615d13b972566f964aca06 SHA512 4815dff308a32b4b1d4984ea8b96e3cf2870412771afa7b56c74031f66d1eba607506587bf7de740091c285b84c3f4fa1929523d653870679ea317e8933c6b4a DIST git-2.2.0.tar.gz 192227 BLAKE2B 9c3ff354c0484863991a83d4ccba68181e64311bcde7699ac4c211ab1fe92fba7ad108f179b88e61c73681bd1e0b3e7b67f53ab33224a0fc4a00b10201beb608 SHA512 f8da84b8ba0bc9adb2b20eb33ef92f3050941297bf0fe0983d387a150c4cfd1b3342b61417bb1ee732e310c203de2acdca4cc3dad5b1a5f2a08556e19c905905 DIST git-2.3.0.tar.gz 194653 BLAKE2B a82ea8c7b8cd239de2cb4dd08f013412efcc7dfcd4c85839ff145b2998df4cf4da6cbf7b5942592b086741ed1fca0a3678bfb4ce5ab45c7c4a3259ce9c3c8d94 SHA512 6ca0a9f33fe4cb24b69035d80f689664558d3ebe868604e8592da225e14102fc572b472e7fd8db697c4338569a560ba012694a637d1dd9622fd33d06e9f55780 +DIST git-2.3.1.tar.gz 197100 BLAKE2B b0051f15f537524ecfac78ba24873aba988935777b516457f7c9f71a9939bfb4aec458dfee7758843b3cdd5f911de17702437befdef24931a64b034c0bf3b08b SHA512 2829cb7f2bc0afd568b75e26b27082f918abb79e90295b14d30eb6727b4d2cabc38b825800ca2c3270777075eed2d4db71c5347322ed5d714ce9263c0feff857 diff --git a/dev-ruby/git/git-2.3.1.ebuild b/dev-ruby/git/git-2.3.1.ebuild new file mode 100644 index 000000000000..ddb8abb8b33d --- /dev/null +++ b/dev-ruby/git/git-2.3.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby31 ruby32 ruby33" + +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="$(ver_cut 1)" +KEYWORDS="~amd64 ~ppc ~ppc64" +IUSE="test" + +DEPEND="test? ( >=dev-vcs/git-1.6.0.0 net-misc/openssh app-arch/tar )" +RDEPEND=">=dev-vcs/git-1.6.0.0" + +ruby_add_rdepend " + >=dev-ruby/activesupport-5.0:* + >=dev-ruby/addressable-2.8:0 + >=dev-ruby/process_executer-1.1:1 + >=dev-ruby/rchardet-1.8:1 +" + +ruby_add_bdepend "test? ( dev-ruby/bundler >=dev-ruby/minitar-0.9 >=dev-ruby/mocha-2.1:2 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 + + # Don't use deprecated key type that is removed from openssh + sed -i -e 's/-t dsa/-t rsa/' tests/units/test_signed_commits.rb || die +} + +each_ruby_test() { + git config --global user.email "git@example.com" || die + git config --global user.name "GitExample" || die + ${RUBY} -Ilib:.:tests -e 'Dir["tests/**/test_*.rb"].each {|f| require f}' || die +} |