nixpkgs/pkgs/applications/misc/gammu/bashcomp-dir.patch

12 lines
571 B
Diff
Raw Normal View History

2016-11-19 20:24:50 +00:00
--- a/contrib/CMakeLists.txt
+++ b/contrib/CMakeLists.txt
@@ -85,7 +85,7 @@ endif (INSTALL_PHP_EXAMPLES)
if (INSTALL_BASH_COMPLETION)
2016-11-19 20:24:50 +00:00
macro_optional_find_package (BashCompletion)
if (NOT BASH_COMPLETION_FOUND)
- set (BASH_COMPLETION_COMPLETIONSDIR "/etc/bash_completion.d" CACHE PATH "Location of bash_completion.d")
+ set (BASH_COMPLETION_COMPLETIONSDIR "${CMAKE_INSTALL_PREFIX}/share/bash-completion/completions" CACHE PATH "Location of bash_completion.d")
2016-11-19 20:24:50 +00:00
endif (NOT BASH_COMPLETION_FOUND)
install (
FILES bash-completion/gammu