dev-tex/git-latexdiff: Add version 20201119
[shuber-gentoo-overlay.git] / dev-tex / git-latexdiff / files / Makefile-distdir.patch
diff --git a/dev-tex/git-latexdiff/files/Makefile-distdir.patch b/dev-tex/git-latexdiff/files/Makefile-distdir.patch
new file mode 100644 (file)
index 0000000..906df58
--- /dev/null
@@ -0,0 +1,18 @@
+--- a/Makefile 2021-04-16 22:20:59.112809512 +0200
++++ b/Makefile 2021-04-16 22:22:08.415560216 +0200
+@@ -1,5 +1,5 @@
+-gitexecdir = ${shell git --exec-path}
+-gitmanpath = ${shell git --man-path}
++gitexecdir = ${DESTDIR}${shell git --exec-path}
++gitmanpath = ${DESTDIR}${shell git --man-path}
+ -include ./config.mak
+@@ -38,6 +38,7 @@ help:
+ install: install-bin install-doc
+ install-bin:
++      mkdir -p ${gitexecdir_SQ}
+       sed -e '1s|#!.*/bash|#!$(BASH_PATH_SQ)|' \
+           -e 's|@GIT_LATEXDIFF_VERSION@|$(GIT_LATEXDIFF_VERSION)|' \
+               $(SCRIPT) > '$(gitexecdir_SQ)/$(SCRIPT)'