summaryrefslogtreecommitdiff
path: root/user/scrot/docdir.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2022-06-01 01:05:19 -0500
committerZach van Rijn <me@zv.io>2022-10-21 18:34:01 -0500
commit456764eb6b1c59869e58733565e846dff42e55bf (patch)
tree11afc95dc92cd2795046c14bbe312c99bd5b734c /user/scrot/docdir.patch
parent587717b92b477b6f2ea83af1c26a6bb4cd1abb1e (diff)
downloadpackages-456764eb6b1c59869e58733565e846dff42e55bf.tar.gz
packages-456764eb6b1c59869e58733565e846dff42e55bf.tar.bz2
packages-456764eb6b1c59869e58733565e846dff42e55bf.tar.xz
packages-456764eb6b1c59869e58733565e846dff42e55bf.zip
user/scrot: Repair build, use --docdir properly
--docdir patch is from upstream: resurrecting-open-source-projects/scrot@ee8121c65d1e We were removing a configure line for dash compat, but since the autotools bump we don't need to do that. That removal was now causing build failures. This fixes #712.
Diffstat (limited to 'user/scrot/docdir.patch')
-rw-r--r--user/scrot/docdir.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/user/scrot/docdir.patch b/user/scrot/docdir.patch
new file mode 100644
index 000000000..b881802db
--- /dev/null
+++ b/user/scrot/docdir.patch
@@ -0,0 +1,51 @@
+From ee8121c65d1e6b84ef8a9fbc60a83734325b7fe2 Mon Sep 17 00:00:00 2001
+From: Sam James <sam@cmpct.info>
+Date: Wed, 5 Jan 2022 13:47:34 +0000
+Subject: [PATCH] autotools: respect --docdir
+
+Before this patch with --docdir=/usr/share/doc/scrot-1.7-r1 (example downstream
+versioning for patches):
+
+>>> /usr/share/doc/scrot-1.7-r1/
+>>> /usr/share/doc/scrot-1.7-r1/README.md.bz2
+>>> /usr/share/doc/scrot-1.7-r1/ChangeLog.bz2
+>>> /usr/share/doc/scrot-1.7-r1/AUTHORS.bz2
+>>> /usr/share/doc/scrot/
+>>> /usr/share/doc/scrot/scrot.png
+>>> /usr/share/doc/scrot/README.md.bz2
+>>> /usr/share/doc/scrot/ChangeLog.bz2
+>>> /usr/share/doc/scrot/AUTHORS.bz2
+
+After:
+
+>>> /usr/share/doc/scrot-1.7-r1/scrot.png
+>>> /usr/share/doc/scrot-1.7-r1/README.md.bz2
+>>> /usr/share/doc/scrot-1.7-r1/ChangeLog.bz2
+>>> /usr/share/doc/scrot-1.7-r1/AUTHORS.bz2
+
+This avoids installing duplicate files & installs them to the
+same location but it's overridable by --docdir in ./configure which
+helps downstreams.
+
+Bug: https://bugs.gentoo.org/828928
+---
+ Makefile.am | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 64439a8..7d2789c 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -34,10 +34,9 @@ MAINTAINERCLEANFILES = Makefile.in
+
+ man_MANS = man/scrot.1
+
+-docs_DATA = README.md AUTHORS ChangeLog doc/scrot.png
+-docsdir = $(prefix)/share/doc/scrot
++dist_doc_DATA = README.md AUTHORS ChangeLog doc/scrot.png
+
+-EXTRA_DIST = man/scrot.1 $(docs_DATA)
++EXTRA_DIST = $(man_MANS)
+
+ SUBDIRS = src
+