diff options
author | Sam James <sam@gentoo.org> | 2024-11-27 06:19:26 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-11-27 06:23:39 +0000 |
commit | 44b5a7337fed3ae495a40f948f53e403649fc9c8 (patch) | |
tree | 1544c78745c0646f0935ce3e1edd02ef72296854 /dev-vcs | |
parent | sys-apps/moar: add 1.30.0 (diff) | |
download | gentoo-44b5a7337fed3ae495a40f948f53e403649fc9c8.tar.gz gentoo-44b5a7337fed3ae495a40f948f53e403649fc9c8.tar.bz2 gentoo-44b5a7337fed3ae495a40f948f53e403649fc9c8.zip |
dev-vcs/git-extras: add 7.3.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-vcs')
-rw-r--r-- | dev-vcs/git-extras/Manifest | 1 | ||||
-rw-r--r-- | dev-vcs/git-extras/git-extras-7.3.0.ebuild | 76 |
2 files changed, 77 insertions, 0 deletions
diff --git a/dev-vcs/git-extras/Manifest b/dev-vcs/git-extras/Manifest index f6b8f5f88444..bd84a43f8e03 100644 --- a/dev-vcs/git-extras/Manifest +++ b/dev-vcs/git-extras/Manifest @@ -1,2 +1,3 @@ DIST git-extras-7.1.0.tar.gz 176733 BLAKE2B 697f09c2993e85595620e272465ad2f4afa3bbd456a1041b92b01a98f962f3aa1fb5f22f1c9ef7e484b87734e8c9e8d15da15f71fb345b9049dd5bb1b98093c9 SHA512 955161b40c48ab92578efe487db78ea8d0fff499aaf8d4da2b13e8194a7f9297a84542c8642dd3a7c61c9a4d1e92342b5c586d341e4a003c9838d5e9731127b9 DIST git-extras-7.2.0.tar.gz 183043 BLAKE2B 242adf211a39666b97996f0a45073171034930fe29ee3ebbfa07068886367832e17cc76398145d8802d32201c2563c8f2ba4171ed206344fbefbb10c4fadd6f3 SHA512 c97c00bab24415574c8b38f259a0becd5da2edafe8cb5ff373de50917bc2854e39b1c396c42b603d4f203af2853d0ebaefe074bfe353f7692af7b1a13e744586 +DIST git-extras-7.3.0.tar.gz 186768 BLAKE2B f9f32688fa286be67f6e64c4d061c9587bb664c60f1af2042130b6b18b04500f44cb9991a86c458cf5b613eebf3de6c119da0738b9425dff80a7036089ad4337 SHA512 14cb5cef986a4aeb12c8c1db332aafed14bc68cf830b17a00eef617dff9f120c3c68244d56300715d8d3ce61420399d5411f23a40ffec44d60332118fe36eb22 diff --git a/dev-vcs/git-extras/git-extras-7.3.0.ebuild b/dev-vcs/git-extras/git-extras-7.3.0.ebuild new file mode 100644 index 000000000000..45de416dfecf --- /dev/null +++ b/dev-vcs/git-extras/git-extras-7.3.0.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..12} ) +inherit bash-completion-r1 python-any-r1 + +DESCRIPTION="Git utilities -- repo summary, repl, changelog population, and many more" +HOMEPAGE="https://github.com/tj/git-extras" +SRC_URI="https://github.com/tj/git-extras/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=app-shells/bash-4.0:* + dev-vcs/git +" +BDEPEND=" + test? ( + $(python_gen_any_dep ' + >=dev-python/gitpython-3.1.40[${PYTHON_USEDEP}] + >=dev-python/pytest-7.2[${PYTHON_USEDEP}] + dev-python/testpath[${PYTHON_USEDEP}] + ') + ) +" + +python_check_deps() { + python_has_version ">=dev-python/gitpython-3.1.40[${PYTHON_USEDEP}]" && + python_has_version ">=dev-python/pytest-7.2[${PYTHON_USEDEP}]" && + python_has_version "dev-python/testpath[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_prepare() { + default + + # For now, don't force including the git completion + sed -i -e "1 i source $(get_bashcompdir)\/git" etc/bash_completion.sh || die +} + +src_compile() { + return +} + +src_test() { + epytest +} + +src_install() { + emake \ + DESTDIR="${D}" \ + PREFIX="${EPREFIX}/usr" \ + SYSCONFDIR="${EPREFIX}/etc" \ + COMPL_DIR="${D}/$(get_bashcompdir)" \ + install + + # TODO: Unfortunately, none of the completion seems to + # actually work for me yet(?) + + newbashcomp "${S}"/etc/bash_completion.sh ${PN} + + insinto /usr/share/zsh/site-functions + newins "${S}"/etc/${PN}-completion.zsh _${PN} + + insinto /usr/share/fish/vendor_completions.d + doins "${S}"/etc/${PN}.fish +} |