void-packages/srcpkgs/scrotty/patches/fish-completion-vendor.patch
Piraty 78fd911aec scrotty: needs gettext, texinfo (makeinfo)
install fish completion to vendor_completions.d
2020-03-03 18:12:48 +01:00

20 lines
993 B
Diff

#reason: fish-shell requires 3rd-party completion files to be installed to vendor_completions.d
--- mk/shell.mk
+++ mk/shell.mk
@@ -189,12 +189,12 @@
.PHONY: install-fish
install-fish: $(foreach F,$(_AUTO_COMPLETE),bin/$(F).fish-completion)
@$(PRINTF_INFO) '\e[00;01;31mINSTALL\e[34m %s\e[00m\n' "$@"
- $(Q)$(INSTALL_DIR) -- "$(DESTDIR)$(DATADIR)/fish/completions"
+ $(Q)$(INSTALL_DIR) -- "$(DESTDIR)$(DATADIR)/fish/vendor_completions.d"
ifndef __SHELL_COMMAND
- $(Q)$(foreach F,$(_AUTO_COMPLETE),$(INSTALL_DATA) bin/$(F).fish-completion -- "$(DESTDIR)$(DATADIR)/fish/completions/$(F).fish" &&) $(TRUE)
+ $(Q)$(foreach F,$(_AUTO_COMPLETE),$(INSTALL_DATA) bin/$(F).fish-completion -- "$(DESTDIR)$(DATADIR)/fish/vendor_completions.d/$(F).fish" &&) $(TRUE)
endif
ifdef __SHELL_COMMAND
- $(Q)$(INSTALL_DATA) $^ -- "$(DESTDIR)$(DATADIR)/fish/completions/$(COMMAND).fish"
+ $(Q)$(INSTALL_DATA) $^ -- "$(DESTDIR)$(DATADIR)/fish/vendor_completions.d/$(COMMAND).fish"
endif
@$(ECHO_EMPTY)