summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2022-12-29 21:48:22 +0100
committerFlorian Schmaus <flow@gentoo.org>2022-12-29 21:48:42 +0100
commit4a46119e0149990be553c6ee7723cdeb16410c7f (patch)
tree70b460acb3511f70b03fd7022b1b3de7f469e10e
parentapp-text/mupdf-1.21.1: allow disabling DRM checking (diff)
downloadgentoo-4a46119e.tar.gz
gentoo-4a46119e.tar.bz2
gentoo-4a46119e.zip
app-text/mupdf: rename drm macro to GENTOO_MUPDF_DRM
Signed-off-by: Florian Schmaus <flow@gentoo.org>
-rw-r--r--app-text/mupdf/files/mupdf-1.21.1-no-drm.patch2
-rw-r--r--app-text/mupdf/mupdf-1.21.1.ebuild2
2 files changed, 2 insertions, 2 deletions
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
index 356ee4b852dd..9f2b9d692f4e 100644
--- a/app-text/mupdf/files/mupdf-1.21.1-no-drm.patch
+++ b/app-text/mupdf/files/mupdf-1.21.1-no-drm.patch
@@ -6,7 +6,7 @@ index f764242..83888dc 100644
epub_chapter **tailp;
int i;
-+ #ifdef drm
++ #ifdef GENTOO_MUPDF_DRM
if (fz_has_archive_entry(ctx, zip, "META-INF/rights.xml"))
fz_throw(ctx, FZ_ERROR_GENERIC, "EPUB is locked by DRM");
if (fz_has_archive_entry(ctx, zip, "META-INF/encryption.xml"))
diff --git a/app-text/mupdf/mupdf-1.21.1.ebuild b/app-text/mupdf/mupdf-1.21.1.ebuild
index 5b4674fadf25..ac2702bc5da4 100644
--- a/app-text/mupdf/mupdf-1.21.1.ebuild
+++ b/app-text/mupdf/mupdf-1.21.1.ebuild
@@ -60,7 +60,7 @@ src_prepare() {
use hppa && append-cflags -ffunction-sections
- use drm && append-cflags -Ddrm
+ use drm && append-cflags -DGENTOO_MUPDF_DRM
append-cflags "-DFZ_ENABLE_JS=$(usex javascript 1 0)"