Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tex/tex4ht/, dev-tex/tex4ht/files/
Date: Wed, 28 Apr 2021 08:38:33
Message-Id: 1619598979.f61b2e48ba6a7ff859dcd35468d767e144cc1c89.ulm@gentoo
1 commit: f61b2e48ba6a7ff859dcd35468d767e144cc1c89
2 Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 28 08:32:17 2021 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 28 08:36:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f61b2e48
7
8 dev-tex/tex4ht: Fix bug when hyperref is loaded from a class file
9
10 Bug: https://puszcza.gnu.org.ua/bugs/?508
11 Package-Manager: Portage-3.0.18, Repoman-3.0.3
12 Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
13
14 .../tex4ht-20090611_p1038_p20210423-hyperref.patch | 17 +++++++++++++++++
15 ...ebuild => tex4ht-20090611_p1038_p20210423-r1.ebuild} | 1 +
16 2 files changed, 18 insertions(+)
17
18 diff --git a/dev-tex/tex4ht/files/tex4ht-20090611_p1038_p20210423-hyperref.patch b/dev-tex/tex4ht/files/tex4ht-20090611_p1038_p20210423-hyperref.patch
19 new file mode 100644
20 index 00000000000..d3acc4c74ad
21 --- /dev/null
22 +++ b/dev-tex/tex4ht/files/tex4ht-20090611_p1038_p20210423-hyperref.patch
23 @@ -0,0 +1,17 @@
24 +https://puszcza.gnu.org.ua/bugs/?508
25 +
26 +--- a/texmf/tex/generic/tex4ht/hyperref.4ht
27 ++++ b/texmf/tex/generic/tex4ht/hyperref.4ht
28 +@@ -306,6 +306,12 @@
29 + \Hy@MakeCurrentHref{#1.\the\Hy@linkcounter}%
30 + }
31 +
32 ++\@ifpackageloaded{nameref}{}
33 ++{%
34 ++ \let\sv:label\label
35 ++ \RequirePackage{nameref}%
36 ++ \let\label\sv:label
37 ++}
38 + \def\hyper@makecurrent#1{%
39 + \begingroup
40 + \edef\Hy@param{#1}%
41
42 diff --git a/dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423.ebuild b/dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423-r1.ebuild
43 similarity index 98%
44 rename from dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423.ebuild
45 rename to dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423-r1.ebuild
46 index c1ef76c28fa..cb06c8c6208 100644
47 --- a/dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423.ebuild
48 +++ b/dev-tex/tex4ht/tex4ht-20090611_p1038_p20210423-r1.ebuild
49 @@ -33,6 +33,7 @@ DEPEND="dev-libs/kpathsea
50 BDEPEND="virtual/pkgconfig"
51
52 S="${WORKDIR}/${MY_P}"
53 +PATCHES=("${FILESDIR}/${P}-hyperref.patch")
54
55 src_prepare() {
56 cp -a "${WORKDIR}/texmf-dist/"* texmf/ || die