summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2019-04-13 20:06:56 +0200
committerHans de Graaff <hans@degraaff.org>2019-04-13 20:06:56 +0200
commit1c4809fac6d3036483bcf9b63467d516d9def1aa (patch)
treebc205a1bf3444fd21e9a230869edc4fe1b4b585d /dev-vcs
parentapp-forensics/brakeman: cleanup (diff)
downloadgraaff-1c4809fac6d3036483bcf9b63467d516d9def1aa.tar.gz
graaff-1c4809fac6d3036483bcf9b63467d516d9def1aa.tar.bz2
graaff-1c4809fac6d3036483bcf9b63467d516d9def1aa.zip
dev-vcs/overcommit: install proper rights for hooks
Signed-off-by: Hans de Graaff <hans@degraaff.org> Package-Manager: Portage-2.3.62, Repoman-2.3.11
Diffstat (limited to 'dev-vcs')
-rw-r--r--dev-vcs/overcommit/overcommit-0.47.0.ebuild9
1 files changed, 9 insertions, 0 deletions
diff --git a/dev-vcs/overcommit/overcommit-0.47.0.ebuild b/dev-vcs/overcommit/overcommit-0.47.0.ebuild
index 7cd26428..db9be97b 100644
--- a/dev-vcs/overcommit/overcommit-0.47.0.ebuild
+++ b/dev-vcs/overcommit/overcommit-0.47.0.ebuild
@@ -25,3 +25,12 @@ ruby_add_rdepend "
>=dev-ruby/childprocess-0.6.3:2
>=dev-ruby/iniparse-1.4:1
"
+
+each_ruby_install() {
+ each_fakegem_install
+
+ local hooks
+ hooks="$(ruby_fakegem_gemsdir)/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}/template-dir/hooks"
+
+ fperms 0755 "${hooks}"/*
+}