* [gentoo-commits] repo/gentoo:master commit in: app-doc/pms/, app-doc/pms/files/
@ 2020-06-15 17:40 Ulrich Müller
0 siblings, 0 replies; only message in thread
From: Ulrich Müller @ 2020-06-15 17:40 UTC (permalink / raw
To: gentoo-commits
commit: 0bd5747249121094e21657aed150c284fb61fe58
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 15 17:39:09 2020 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Jun 15 17:39:57 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bd57472
app-doc/pms: Fix HTML output with TeX Live 2020.
Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
app-doc/pms/files/pms-5-Makefile.patch | 24 ++++++++++++++++++++++++
app-doc/pms/files/pms-7-Makefile.patch | 12 ++++++++++++
app-doc/pms/pms-5_p20120920.ebuild | 1 +
app-doc/pms/pms-7_p20180430-r1.ebuild | 2 ++
4 files changed, 39 insertions(+)
diff --git a/app-doc/pms/files/pms-5-Makefile.patch b/app-doc/pms/files/pms-5-Makefile.patch
new file mode 100644
index 00000000000..5f50404881c
--- /dev/null
+++ b/app-doc/pms/files/pms-5-Makefile.patch
@@ -0,0 +1,24 @@
+--- a/Makefile
++++ b/Makefile
+@@ -19,19 +19,11 @@
+ @# need to do it twice to make the big env var table work
+ mk4ht xhlatex pms
+ mk4ht xhlatex pms
++ @# ... and a third time for the eapi features table
++ mk4ht xhlatex pms
+ @# some www servers ignore meta tags, resulting in a wrong charset.
+ @# therefore recode the very few non-ascii characters
+ recode -d l1..h3 pms.html
+- @# work around irregularity in how links to longtables are
+- @# formatted in the List of Tables
+- LC_ALL=C sed -i -e '/<span class="lotToc" > /{N;N;s/\( <a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]/\2\1/}' pms.html
+- @# fix xhtml syntax in longtable captions
+- LC_ALL=C sed -i -e 's%</td>\( *<div class="multicolumn"\)%\1%;tx;b;:x;s%</tr>%</td>&%;t;n;bx' pms.html
+- @# indent algorithms properly, and avoid adding extra vertical
+- @# space in Konqueror
+- LC_ALL=C sed -i -e 's/span style="width:/span style="display:-moz-inline-box;display:inline-block;height:1px;width:/' pms.html
+- @# align algorithm line numbers properly
+- LC_ALL=C sed -i -e '/<span class="ALCitem">/{N;s/\n\(class="[^"]\+">\)\([0-9]:<\/span>\)/\1\ \2/}' pms.html
+
+ pms.bbl: pms.bib pms.tex vc.tex eapi-cheatsheet.pdf
+ latex pms
diff --git a/app-doc/pms/files/pms-7-Makefile.patch b/app-doc/pms/files/pms-7-Makefile.patch
new file mode 100644
index 00000000000..d96abd421f0
--- /dev/null
+++ b/app-doc/pms/files/pms-7-Makefile.patch
@@ -0,0 +1,12 @@
+--- a/Makefile
++++ b/Makefile
+@@ -52,9 +52,6 @@
+ recode -d l1..h3 $@
+ @# declare encoding as utf-8, although it is pure ascii
+ LC_ALL=C sed -i -e '/<?xml\|<meta/s/iso-8859-1/utf-8/' $@
+- @# work around irregularity in how links to longtables are
+- @# formatted in the List of Tables
+- LC_ALL=C sed -i -e '/<span class="lotToc" > /{N;N;s/\( <a \nhref="[^"]\+">\)\([0-9A-Z.]\+\)[ \n]\+/\2\1/}' $@
+ @# remove redundant span elements
+ LC_ALL=C sed -i -e ':x;/<span\(\s\+[^>]*\)\?$$/{N;bx;};:y;s/\(<span\s\+[^>]*>\)\([^<]*\)<\/span>\1/\1\2/;ty' $@
+
diff --git a/app-doc/pms/pms-5_p20120920.ebuild b/app-doc/pms/pms-5_p20120920.ebuild
index 7ceaee49436..51d0d7b9b25 100644
--- a/app-doc/pms/pms-5_p20120920.ebuild
+++ b/app-doc/pms/pms-5_p20120920.ebuild
@@ -27,6 +27,7 @@ BDEPEND="dev-tex/leaflet
RDEPEND="!app-doc/pms-bin"
S="${WORKDIR}/${MY_P}"
+PATCHES=("${FILESDIR}/${PN}-5-Makefile.patch")
src_compile() {
# just in case; we shouldn't be generating any fonts
diff --git a/app-doc/pms/pms-7_p20180430-r1.ebuild b/app-doc/pms/pms-7_p20180430-r1.ebuild
index a71c1856b81..975b3f69fc8 100644
--- a/app-doc/pms/pms-7_p20180430-r1.ebuild
+++ b/app-doc/pms/pms-7_p20180430-r1.ebuild
@@ -29,6 +29,8 @@ BDEPEND="dev-tex/leaflet
)"
RDEPEND="!app-doc/pms-bin"
+PATCHES=("${FILESDIR}/${PN}-7-Makefile.patch")
+
src_compile() {
# just in case; we shouldn't be generating any fonts
export VARTEXFONTS="${T}/fonts"
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-15 19:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-15 17:40 [gentoo-commits] repo/gentoo:master commit in: app-doc/pms/, app-doc/pms/files/ Ulrich Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox