Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/mupdf/, app-text/mupdf/files/
Date: Thu, 29 Dec 2022 20:50:06
Message-Id: 1672346922.4a46119e0149990be553c6ee7723cdeb16410c7f.flow@gentoo
1 commit: 4a46119e0149990be553c6ee7723cdeb16410c7f
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Thu Dec 29 20:48:22 2022 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Thu Dec 29 20:48:42 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a46119e
7
8 app-text/mupdf: rename drm macro to GENTOO_MUPDF_DRM
9
10 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
11
12 app-text/mupdf/files/mupdf-1.21.1-no-drm.patch | 2 +-
13 app-text/mupdf/mupdf-1.21.1.ebuild | 2 +-
14 2 files changed, 2 insertions(+), 2 deletions(-)
15
16 diff --git a/app-text/mupdf/files/mupdf-1.21.1-no-drm.patch b/app-text/mupdf/files/mupdf-1.21.1-no-drm.patch
17 index 356ee4b852dd..9f2b9d692f4e 100644
18 --- a/app-text/mupdf/files/mupdf-1.21.1-no-drm.patch
19 +++ b/app-text/mupdf/files/mupdf-1.21.1-no-drm.patch
20 @@ -6,7 +6,7 @@ index f764242..83888dc 100644
21 epub_chapter **tailp;
22 int i;
23
24 -+ #ifdef drm
25 ++ #ifdef GENTOO_MUPDF_DRM
26 if (fz_has_archive_entry(ctx, zip, "META-INF/rights.xml"))
27 fz_throw(ctx, FZ_ERROR_GENERIC, "EPUB is locked by DRM");
28 if (fz_has_archive_entry(ctx, zip, "META-INF/encryption.xml"))
29
30 diff --git a/app-text/mupdf/mupdf-1.21.1.ebuild b/app-text/mupdf/mupdf-1.21.1.ebuild
31 index 5b4674fadf25..ac2702bc5da4 100644
32 --- a/app-text/mupdf/mupdf-1.21.1.ebuild
33 +++ b/app-text/mupdf/mupdf-1.21.1.ebuild
34 @@ -60,7 +60,7 @@ src_prepare() {
35
36 use hppa && append-cflags -ffunction-sections
37
38 - use drm && append-cflags -Ddrm
39 + use drm && append-cflags -DGENTOO_MUPDF_DRM
40
41 append-cflags "-DFZ_ENABLE_JS=$(usex javascript 1 0)"