summaryrefslogtreecommitdiff
path: root/sci-libs/gdal/files/gdal-2.2.3-bashcomp-path.patch
blob: 620b05fecbd13bf3e48fabcf9781399208e10a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Fixes Gentoo-bug #641866

--- a/scripts/GNUmakefile
+++ b/scripts/GNUmakefile
@@ -6,5 +6,5 @@
 install:
 	if test "x`pkg-config --version 2>/dev/null`" != "x" -a "x`pkg-config --variable=compatdir bash-completion`" != "x"; then \
-		$(INSTALL_DIR) $(DESTDIR)${prefix}`pkg-config --variable=compatdir bash-completion` ; \
-		cp gdal-bash-completion.sh $(DESTDIR)${prefix}`pkg-config --variable=compatdir bash-completion`; \
+		$(INSTALL_DIR) $(DESTDIR)`pkg-config --variable=completionsdir bash-completion` ; \
+		cp gdal-bash-completion.sh $(DESTDIR)`pkg-config --variable=completionsdir bash-completion`/gdal.sh; \
 	fi