commit: e65aa04453ff90c597f38ccb3db1bd50ef525e23 Author: Yixun Lan <dlan <AT> gentoo <DOT> org> AuthorDate: Thu Mar 13 00:09:48 2025 +0000 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> CommitDate: Thu Mar 13 00:15:29 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e65aa044
dev-vcs/git-absorb: fix build doc error doc fail to build if 'which' utility not installed, replace it with the built-in shell 'command'. Link: https://github.com/tummychow/git-absorb/pull/169 Closes: https://bugs.gentoo.org/951208 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> dev-vcs/git-absorb/files/git-absorb-0.7.0-doc.patch | 11 +++++++++++ dev-vcs/git-absorb/git-absorb-0.7.0.ebuild | 2 ++ 2 files changed, 13 insertions(+) diff --git a/dev-vcs/git-absorb/files/git-absorb-0.7.0-doc.patch b/dev-vcs/git-absorb/files/git-absorb-0.7.0-doc.patch new file mode 100644 index 000000000000..a891182db42e --- /dev/null +++ b/dev-vcs/git-absorb/files/git-absorb-0.7.0-doc.patch @@ -0,0 +1,11 @@ +--- a/Documentation/Makefile ++++ b/Documentation/Makefile +@@ -1,7 +1,7 @@ + build-manpage: git-absorb.1 + + git-absorb.1: git-absorb.adoc +- $(if $(shell which a2x),,$(error "No a2x in PATH; install asciidoc.")) ++ $(if $(shell command a2x),,$(error "No a2x in PATH; install asciidoc.")) + $(info Building manpage. This may take a few moments...) + a2x -L -d manpage -f manpage git-absorb.adoc --attribute man-version=${GA_VERSION} + diff --git a/dev-vcs/git-absorb/git-absorb-0.7.0.ebuild b/dev-vcs/git-absorb/git-absorb-0.7.0.ebuild index 12d660c41aec..0dab407b8114 100644 --- a/dev-vcs/git-absorb/git-absorb-0.7.0.ebuild +++ b/dev-vcs/git-absorb/git-absorb-0.7.0.ebuild @@ -127,6 +127,8 @@ DOCS=( README.md ) QA_FLAGS_IGNORED="usr/bin/${PN}" +PATCHES=( "${FILESDIR}"/${P}-doc.patch ) + src_compile() { export LIBGIT2_NO_VENDOR=1
