summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2021-04-28 10:32:17 +0200
committerUlrich Müller <ulm@gentoo.org>2021-04-28 10:36:19 +0200
commitf61b2e48ba6a7ff859dcd35468d767e144cc1c89 (patch)
treed3dd24cb8439347c0cecc22a7505e9653d9de065 /dev-tex
parentsys-fs/cryptsetup: Revbump to fix default pw-hashing with USE="-argon2" (diff)
downloadgentoo-f61b2e48ba6a7ff859dcd35468d767e144cc1c89.tar.gz
gentoo-f61b2e48ba6a7ff859dcd35468d767e144cc1c89.tar.bz2
gentoo-f61b2e48ba6a7ff859dcd35468d767e144cc1c89.zip
dev-tex/tex4ht: Fix bug when hyperref is loaded from a class file
Bug: https://puszcza.gnu.org.ua/bugs/?508 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'dev-tex')
-rw-r--r--dev-tex/tex4ht/files/tex4ht-20090611_p1038_p20210423-hyperref.patch17
-rw-r--r--dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423-r1.ebuild (renamed from dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423.ebuild)1
2 files changed, 18 insertions, 0 deletions
diff --git a/dev-tex/tex4ht/files/tex4ht-20090611_p1038_p20210423-hyperref.patch b/dev-tex/tex4ht/files/tex4ht-20090611_p1038_p20210423-hyperref.patch
new file mode 100644
index 000000000000..d3acc4c74adf
--- /dev/null
+++ b/dev-tex/tex4ht/files/tex4ht-20090611_p1038_p20210423-hyperref.patch
@@ -0,0 +1,17 @@
+https://puszcza.gnu.org.ua/bugs/?508
+
+--- a/texmf/tex/generic/tex4ht/hyperref.4ht
++++ b/texmf/tex/generic/tex4ht/hyperref.4ht
+@@ -306,6 +306,12 @@
+ \Hy@MakeCurrentHref{#1.\the\Hy@linkcounter}%
+ }
+
++\@ifpackageloaded{nameref}{}
++{%
++ \let\sv:label\label
++ \RequirePackage{nameref}%
++ \let\label\sv:label
++}
+ \def\hyper@makecurrent#1{%
+ \begingroup
+ \edef\Hy@param{#1}%
diff --git a/dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423.ebuild b/dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423-r1.ebuild
index c1ef76c28fa9..cb06c8c62089 100644
--- a/dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423.ebuild
+++ b/dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423-r1.ebuild
@@ -33,6 +33,7 @@ DEPEND="dev-libs/kpathsea
BDEPEND="virtual/pkgconfig"
S="${WORKDIR}/${MY_P}"
+PATCHES=("${FILESDIR}/${P}-hyperref.patch")
src_prepare() {
cp -a "${WORKDIR}/texmf-dist/"* texmf/ || die