summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2023-06-23 06:15:46 +0200
committerHans de Graaff <hans@degraaff.org>2023-06-23 06:15:46 +0200
commit50c22d602e7833523413f492c894ebf31e504b7b (patch)
treeeb858044999a380f5b187bb29391602786f7e7e7 /dev-vcs
parentdev-ruby/iniparse: add github upstream metadata (diff)
downloadgraaff-50c22d602e7833523413f492c894ebf31e504b7b.tar.gz
graaff-50c22d602e7833523413f492c894ebf31e504b7b.tar.bz2
graaff-50c22d602e7833523413f492c894ebf31e504b7b.zip
dev-vcs/overcommit: add 0.60.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.60.0.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-vcs/overcommit/Manifest b/dev-vcs/overcommit/Manifest
index 4765b4e1..ea03d87e 100644
--- a/dev-vcs/overcommit/Manifest
+++ b/dev-vcs/overcommit/Manifest
@@ -1 +1,2 @@
DIST overcommit-0.59.1.tar.gz 197027 BLAKE2B 96d1068129a24d76a35e5e215a2be9c616c8ea6b6ac38a84cb400fa111e2caa2ec4497adb3ecabc9e7de41d73a0bc34ba1f4c122929cc25d6f693642bce6ddad SHA512 300706e91455b7e42d232ebd169d016045e86a8666570ab2a22a9649977df243562a6f8d1866d353c8def65cca2a2bedd906d15aba88aa8f9656b75047b53b71
+DIST overcommit-0.60.0.tar.gz 198926 BLAKE2B eb5bec2d59bb423f3b9918a96141952c8361fe922abf88df83885904d82152ee5815ca31a12764d27abd0e5a87f4b9c22970921822ae2d77d51bf499baba8406 SHA512 8e962b0899190c3ea92bea8e8410ab07a24c065d85375e3e9278f499ceb3d923736e2f4665da4240318a2139d81fbd1e12365ff19c38031682f4d666b3712a87
diff --git a/dev-vcs/overcommit/overcommit-0.60.0.ebuild b/dev-vcs/overcommit/overcommit-0.60.0.ebuild
new file mode 100644
index 00000000..1866d0e1
--- /dev/null
+++ b/dev-vcs/overcommit/overcommit-0.60.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="ruby30 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}
+}