diff --git a/app-emacs/diff-hl/Manifest b/app-emacs/diff-hl/Manifest index 76acdee831f64..b5d342eaf838c 100644 --- a/app-emacs/diff-hl/Manifest +++ b/app-emacs/diff-hl/Manifest @@ -1 +1,2 @@ DIST diff-hl-1.10.0.tar.gz 243449 BLAKE2B 64d091f3d9a1c6956f3d1d579299fd5ca3863053990cc03ae0318acc70ce88018fc4721f48abd18a30abfc410bf63f5154993d07d35fad431f0ea48892407ed0 SHA512 686d424fccec19bce4880e967a2ad3f27c8ea457a0e5f0d56eae0c46bd4c8df9951443115a2ee2614301cf5dbbc862f8233f00d3c8be0aa3c8335d1f5bbc7432 +DIST diff-hl-1.11.2_p20261123.snapshot.gh.tar.gz 253010 BLAKE2B be7dcc025f0a7717cbf71cc3e9ec35d2dd27f65f8409d788e39d204a4e687d4b24a356958e52ab951a14f486a45c7f31aea53da0e593f5baf0d9c0a61e351078 SHA512 ef4b4237d49691983f29f5fbd2062c1c81415a209fd070f6894a1c0a396615a76005205cb41e467b0c88584e12809c14afe207db37b40e19ee3bd1f45386e873 diff --git a/app-emacs/diff-hl/diff-hl-1.11.2_p20261123.ebuild b/app-emacs/diff-hl/diff-hl-1.11.2_p20261123.ebuild new file mode 100644 index 0000000000000..71ac5b291faef --- /dev/null +++ b/app-emacs/diff-hl/diff-hl-1.11.2_p20261123.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=9 + +inherit elisp + +DESCRIPTION="Highlight uncommitted changes, jump between and revert them selectively" +HOMEPAGE="https://github.com/dgutov/diff-hl/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/dgutov/${PN}.git" +else + [[ "${PV}" == *p20261123 ]] && COMMIT=768b8f16943a85e096930ac0b5982ef681fcef30 + SRC_URI="https://github.com/dgutov/${PN}/archive/${COMMIT}.tar.gz + -> ${P}.snapshot.gh.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + dev-vcs/git + ) +" + +DOCS=( README.md screenshot{,-dired,-margin}.png ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + # Remove broken tests + sed -i \ + -e "s|(diff-hl-deftest diff-hl-indirect-buffer-move-async|'&|g" \ + -e "s|(diff-hl-deftest diff-hl-resolved-revision-with-hg|'&|g" \ + test/diff-hl-test.el \ + || die + + default +} + +src_test() { + ebegin "Creating a git repository for tests" + git init "${S}" --initial-branch="master" && + git add "${S}" && + git config --local user.email "test@test" && + git config --local user.name "test" && + git commit --message "test" --quiet + eend "${?}" || die + + emake EMACS="${EMACS} ${EMACSFLAGS}" test +}