freebsd-ports/graphics/qgis-ltr/files/patch-doc_INSTALL.t2t
Loïc Bartoletti d0e1c0462a graphics/qgis-ltr, graphics/qgis: Fix build after textproc/txt2tags update
The FreeBSD package builder complains about encoding problems after [1]. This happens, because newer versions of textproc/txt2tags do not need the option '--encoding=utf-8' any more[2].

The patch is a workaround to remove such encoding entries from the QGIS port, until QGIS project changes upstream for newer txt2tags versions.

While I'm here, replace sed commands by a patch file [3]

[1] http://svnweb.freebsd.org/changeset/ports/525495
[2] https://github.com/txt2tags/txt2tags/blob/v3/CHANGELOG.md#35-2020-02-01
[3] https://reviews.freebsd.org/D23188#511597

PR:	243998, 243996
Submitted by:	Rainer Hurling (maintainer)
Reviewed by:	lbartoletti
Approved by:	tcbernor (mentor)
Differential Revision:	https://reviews.freebsd.org/D23602
2020-02-23 11:02:42 +00:00

28 lines
1.1 KiB
Text

--- doc/INSTALL.t2t.orig 2019-08-16 12:03:55 UTC
+++ doc/INSTALL.t2t
@@ -4,14 +4,14 @@ Building QGIS from source - step by step
%! target : html
%! style : style.css
-%! Options : --toc --toc-level 2 --enum-title --css-sugar --css-inside
+%! Options : --toc --toc-level 2 --enum-title
%! preproc : TUT_URL https://qgis.org
%! PostProc(html): '(?i)(<pre>)' '<div class="code">\1'
%! PostProc(html): '(?i)(</pre>)' '\1</div>'
%! PostProc(html): \(R\) &reg;
% Next line will replace tabs with 2 spaces in txt generated outputs
%! PostProc(txt): '(?i)(\t)' ' '
-%! encoding: iso-8859-1
+%! encoding: utf-8
%
% Tex processing
%
@@ -36,7 +36,7 @@ Building QGIS from source - step by step
%! PostProc(tex): NEWPAGE '\\newpage'
% Give alternating table rows different colors and use a smaller font in tables (\tiny)
%! PostProc(tex): '\\begin{tabular}' '\\rowcolors{2}{tableShade}{white} \n\\tiny\\begin{tabular}'
-%! encoding: iso-8859-1
+%! encoding: utf-8
%! PostProc(tex): WALLPAPER-IMAGE 'qgis-footer.png'
% These are comments and will not be generated in any output