diff options
author | 2024-07-24 07:55:01 +0200 | |
---|---|---|
committer | 2024-07-24 07:55:01 +0200 | |
commit | af6d82c93e0c8f78be875ca278e019bbf9a8f169 (patch) | |
tree | a2ccb5cc050d2ce607bd3460bf7e03cf983becf5 | |
parent | dev-ruby/get_process_mem: add 1.0.0 (diff) | |
download | graaff-af6d82c93e0c8f78be875ca278e019bbf9a8f169.tar.gz graaff-af6d82c93e0c8f78be875ca278e019bbf9a8f169.tar.bz2 graaff-af6d82c93e0c8f78be875ca278e019bbf9a8f169.zip |
dev-vcs/overcommit: add 0.64.0
Signed-off-by: Hans de Graaff <hans@degraaff.org>
-rw-r--r-- | dev-vcs/overcommit/Manifest | 1 | ||||
-rw-r--r-- | dev-vcs/overcommit/overcommit-0.64.0.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/dev-vcs/overcommit/Manifest b/dev-vcs/overcommit/Manifest index 4f1d2b01..643a5c54 100644 --- a/dev-vcs/overcommit/Manifest +++ b/dev-vcs/overcommit/Manifest @@ -1,2 +1,3 @@ DIST overcommit-0.62.0.tar.gz 200711 BLAKE2B 98a806f2aea913f92b7af5b4d2acda0f0a69656dc046585bfddefa3f943c9c3f410438f9c505e6bc48784d776f5e7b1514c2e491ce2c3ad2ed59efa721cf55fc SHA512 0a6b9769c5a4525290d96ab9b257cc28a86d495e4ed6f9cd1984afc64ffa6b4dd8b8ed2d9aa702c097b215dfd962392e3a6eb0bf6111f194eb7ad64fb9293941 DIST overcommit-0.63.0.tar.gz 202161 BLAKE2B fe362c574eaa8bb9b6d1675611ceb9d5fe7c660c36a57bf1da26342e3cee2324a5edb44f6988fc23f510c9e83c779a1230bb56496e94004cb849c7d69706e7ea SHA512 d690318b461926b1ce9184ffc71954ee2d68de4e21739a3c5e5e42e635e1b3ffeb7ff04eb64f4a16146ad03afd9532acf0f239aff4840d642a98d7649291f6f0 +DIST overcommit-0.64.0.tar.gz 202214 BLAKE2B b356cb1a5a1baaa1e5e2996d348de7d7eb719c5a03a3a55bcc97056a6883fde4d2cd6ba8984217afc9aea8467d0e236fa66dbf3d8f3f38ec63b0ad77934e82b1 SHA512 1b05dfa54bbb278d40452c008786d575ff1495cdfea61861d691882acc60e496b9086080c54b34187d39475bcdc74360481a7647c490d96fefe4cdd9d07d20e5 diff --git a/dev-vcs/overcommit/overcommit-0.64.0.ebuild b/dev-vcs/overcommit/overcommit-0.64.0.ebuild new file mode 100644 index 00000000..d9274386 --- /dev/null +++ b/dev-vcs/overcommit/overcommit-0.64.0.ebuild @@ -0,0 +1,48 @@ +# 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_RECIPE_TEST="rspec3" +RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md" + +RUBY_FAKEGEM_EXTRAINSTALL="config libexec template-dir" + +RUBY_FAKEGEM_GEMSPEC="overcommit.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="The Opinionated Git Hook Manager" +HOMEPAGE="https://github.com/sds/overcommit" +SRC_URI="https://github.com/sds/overcommit/archive/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="MIT" + +SLOT="0" +KEYWORDS="~amd64" + +ruby_add_rdepend " + || ( dev-ruby/childprocess:5 dev-ruby/childprocess:2 ) + >=dev-ruby/iniparse-1.4:1 + >=dev-ruby/rexml-3.2:3 +" + +all_ruby_prepare() { + sed -i -e "s/_relative //" ${RUBY_FAKEGEM_GEMSPEC} || die + + # Avoid specs that expect a git directory. This can probably be + # narrowed down a bit more to specific tests but we did not run + # tests at all before. + rm -f spec/overcommit/{configuration,installer}_spec.rb \ + spec/overcommit/hook_context/{pre_commit,commit_msg}_spec.rb \ + spec/overcommit/hook/pre_push/minitest_spec.rb || die +} + +each_ruby_install() { + each_fakegem_install + + local hdir + hdir="$(ruby_fakegem_gemsdir)/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}/template-dir/hooks" + + fperms 0755 "${hdir}"/{commit-msg,overcommit-hook,post-checkout,post-commit,post-merge,post-rewrite,pre-commit,prepare-commit-msg,pre-push,pre-rebase} +} |