File: extratmacdirs.patch

package info (click to toggle)
groff 1.23.0-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,108 kB
  • sloc: cpp: 74,810; ansic: 27,845; sh: 12,201; perl: 7,709; cs: 3,688; makefile: 906; awk: 91; sed: 80
file content (33 lines) | stat: -rw-r--r-- 1,210 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From 8d089f72758f5abf62fe667cb6a7bef1b5d2e36b Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Thu, 2 Jan 2014 13:13:20 +0000
Subject: Allow adding a version-independent directory to the macro path

This allows us to put /usr/share/groff/tmac at the end of groff's macro
path in Debian.

This uses GNU-make-specific code, so it may not be forwardable in its
current state.  A more upstreamable approach might be to add a --with-*
option to configure.

Forwarded: no
Last-Update: 2018-03-05

Patch-Name: extratmacdirs.patch
---
 Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index f7ab4107e..c4d09b7be 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -207,7 +207,7 @@ localtmacdir=$(dataprogramdir)/site-tmac
 # directory will be always added.
 # `troffrc' and `troffrc-end' (and `eqnrc') are searched neither in the
 # current nor in the home directory.
-tmacpath=$(systemtmacdir)$(RT_SEP)$(localtmacdir)$(RT_SEP)$(tmacdir)
+tmacpath=$(systemtmacdir)$(RT_SEP)$(localtmacdir)$(RT_SEP)$(tmacdir)$(if $(extratmacdirs),$(RT_SEP)$(extratmacdirs))
 
 # sys_tmac_prefix
 # `sys_tmac_prefix' is prefix (if any) for system macro packages.