commit:     f61b2e48ba6a7ff859dcd35468d767e144cc1c89
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 28 08:32:17 2021 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Apr 28 08:36:19 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f61b2e48

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 <AT> gentoo.org>

 .../tex4ht-20090611_p1038_p20210423-hyperref.patch      | 17 +++++++++++++++++
 ...ebuild => tex4ht-20090611_p1038_p20210423-r1.ebuild} |  1 +
 2 files changed, 18 insertions(+)

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 00000000000..d3acc4c74ad
--- /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
similarity index 98%
rename from dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423.ebuild
rename to dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423-r1.ebuild
index c1ef76c28fa..cb06c8c6208 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

Reply via email to