summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2023-12-21 07:44:27 +0100
committerHans de Graaff <hans@degraaff.org>2023-12-21 07:44:27 +0100
commite25d865e397b36bbb44d79afe3238fac6c6efeab (patch)
tree342449f5ff638313535c69c1257318e40b66e96a /dev-vcs
parentdev-ruby/authlogic: add 6.4.3 (diff)
downloadgraaff-e25d865e397b36bbb44d79afe3238fac6c6efeab.tar.gz
graaff-e25d865e397b36bbb44d79afe3238fac6c6efeab.tar.bz2
graaff-e25d865e397b36bbb44d79afe3238fac6c6efeab.zip
dev-vcs/overcommit: add 0.61.0
Signed-off-by: Hans de Graaff <hans@degraaff.org>
Diffstat (limited to 'dev-vcs')
-rw-r--r--dev-vcs/overcommit/Manifest1
-rw-r--r--dev-vcs/overcommit/overcommit-0.61.0.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-vcs/overcommit/Manifest b/dev-vcs/overcommit/Manifest
index 0e88515f..b627b73c 100644
--- a/dev-vcs/overcommit/Manifest
+++ b/dev-vcs/overcommit/Manifest
@@ -1 +1,2 @@
DIST overcommit-0.60.0.tar.gz 198926 BLAKE2B eb5bec2d59bb423f3b9918a96141952c8361fe922abf88df83885904d82152ee5815ca31a12764d27abd0e5a87f4b9c22970921822ae2d77d51bf499baba8406 SHA512 8e962b0899190c3ea92bea8e8410ab07a24c065d85375e3e9278f499ceb3d923736e2f4665da4240318a2139d81fbd1e12365ff19c38031682f4d666b3712a87
+DIST overcommit-0.61.0.tar.gz 199110 BLAKE2B 947b74a7039d1bca49a278d8375b1224bbcf30173197e237ebbba6a2c12e367441469ffd2bf217aaa8b2d7bbdd8331e4087159495a0077c0799c0e46a6f71fbf SHA512 cd8513b1306755dec92d08edf530dfe2664a042b95650a6df0f6947ab1bbe0444062af0bac118178e0a1239625b7dacfb724d22d92b87b1ac13a72c087da8264
diff --git a/dev-vcs/overcommit/overcommit-0.61.0.ebuild b/dev-vcs/overcommit/overcommit-0.61.0.ebuild
new file mode 100644
index 00000000..cc83b4d3
--- /dev/null
+++ b/dev-vcs/overcommit/overcommit-0.61.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="ruby31 ruby32"
+
+RUBY_FAKEGEM_RECIPE_TEST="none"
+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"
+
+KEYWORDS="~amd64"
+SLOT="0"
+IUSE=""
+
+ruby_add_rdepend "
+ 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
+}
+
+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}
+}