diff options
Diffstat (limited to 'dev-vcs')
-rw-r--r-- | dev-vcs/overcommit/Manifest | 1 | ||||
-rw-r--r-- | dev-vcs/overcommit/overcommit-0.59.1.ebuild | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-vcs/overcommit/Manifest b/dev-vcs/overcommit/Manifest index 4c8dae22..8d19e8e2 100644 --- a/dev-vcs/overcommit/Manifest +++ b/dev-vcs/overcommit/Manifest @@ -1,2 +1,3 @@ DIST overcommit-0.57.0.tar.gz 193539 BLAKE2B e430916592baf5906c9458ce9648498903702d93a1f9e07f12054878aca0cec6a7d4d032b612e5f20d51e1275e57efb5bfd94ad0e94ecc41c054ecefe5e50a9a SHA512 b7834475e2028cecc9d9c59fee102207b17cdead652f577f1334a109ec2d537ffe0c652cf97af6825602748be865330eabfd50000bd52012e005f23d1204a38d DIST overcommit-0.58.0.tar.gz 196477 BLAKE2B 28c03042c9fe51a63711da584f5fe25a2ac266eb87ef66c9ab6599ebbfc2dddb6b6bf692d1b6671b53a609d04c41a2b2a3b4c6bdca645ca90e727375410c9fe5 SHA512 d63dad5f187211ce92737f3f2658371f1e685afb3e2d3340d1faf46103f6aff0d9283634fb0cfd760fe3cdd6536e42a8f8994d27db0a131342ed04564c83fd3c +DIST overcommit-0.59.1.tar.gz 197027 BLAKE2B 96d1068129a24d76a35e5e215a2be9c616c8ea6b6ac38a84cb400fa111e2caa2ec4497adb3ecabc9e7de41d73a0bc34ba1f4c122929cc25d6f693642bce6ddad SHA512 300706e91455b7e42d232ebd169d016045e86a8666570ab2a22a9649977df243562a6f8d1866d353c8def65cca2a2bedd906d15aba88aa8f9656b75047b53b71 diff --git a/dev-vcs/overcommit/overcommit-0.59.1.ebuild b/dev-vcs/overcommit/overcommit-0.59.1.ebuild new file mode 100644 index 00000000..f1314811 --- /dev/null +++ b/dev-vcs/overcommit/overcommit-0.59.1.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +USE_RUBY="ruby26 ruby27 ruby30 ruby31" + +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/causes/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 hookdir + hookdir="$(ruby_fakegem_gemsdir)/gems/${RUBY_FAKEGEM_NAME}-${RUBY_FAKEGEM_VERSION}/template-dir/hooks" + + fperms 0755 "${hookdir}"/{commit-msg,overcommit-hook,post-checkout,post-commit,post-merge,post-rewrite,pre-commit,prepare-commit-msg,pre-push,pre-rebase} +} |