pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/print/zathura-pdf-mupdf zathura-pdf-mupdf: Clean up co...
details: https://anonhg.NetBSD.org/pkgsrc/rev/3228b72fff0a
branches: trunk
changeset: 384280:3228b72fff0a
user: nia <nia%pkgsrc.org@localhost>
date: Tue Aug 30 14:16:09 2022 +0000
description:
zathura-pdf-mupdf: Clean up confusing dependency handling, eliminating
some deps that are pulled as a result of some workarounds for how
Linux distributions are distributing mupdf. Concern raised by leot@.
diffstat:
print/zathura-pdf-mupdf/Makefile | 5 +-
print/zathura-pdf-mupdf/distinfo | 3 +-
print/zathura-pdf-mupdf/patches/patch-meson.build | 51 +++++++++++++++++++++++
3 files changed, 55 insertions(+), 4 deletions(-)
diffs (89 lines):
diff -r d8c3153cc60d -r 3228b72fff0a print/zathura-pdf-mupdf/Makefile
--- a/print/zathura-pdf-mupdf/Makefile Tue Aug 30 12:48:15 2022 +0000
+++ b/print/zathura-pdf-mupdf/Makefile Tue Aug 30 14:16:09 2022 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.54 2022/08/30 12:47:51 nia Exp $
+# $NetBSD: Makefile,v 1.55 2022/08/30 14:16:09 nia Exp $
#
DISTNAME= zathura-pdf-mupdf-0.3.9
+PKGREVISION= 1
CATEGORIES= print
MASTER_SITES= https://pwmt.org/projects/zathura-pdf-mupdf/download/
EXTRACT_SUFX= .tar.xz
@@ -19,8 +20,6 @@
.include "../../devel/meson/build.mk"
.include "../../graphics/cairo/buildlink3.mk"
-.include "../../graphics/tesseract/buildlink3.mk"
-.include "../../lang/mujs/buildlink3.mk"
BUILDLINK_API_DEPENDS.mupdf+= mupdf>=1.16.0
.include "../../print/mupdf/buildlink3.mk"
.include "../../print/zathura/buildlink3.mk"
diff -r d8c3153cc60d -r 3228b72fff0a print/zathura-pdf-mupdf/distinfo
--- a/print/zathura-pdf-mupdf/distinfo Tue Aug 30 12:48:15 2022 +0000
+++ b/print/zathura-pdf-mupdf/distinfo Tue Aug 30 14:16:09 2022 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.18 2022/08/30 12:47:51 nia Exp $
+$NetBSD: distinfo,v 1.19 2022/08/30 14:16:09 nia Exp $
BLAKE2s (zathura-pdf-mupdf-0.3.9.tar.xz) = 147d127c61be82e0fbfd063cf80d28a683c1474cf0c4b7c87266495db090d2e0
SHA512 (zathura-pdf-mupdf-0.3.9.tar.xz) = 6a81e562965a0d6a2a25e301b0cc20ee70ada43ed7261f5d4ef6c132de1136f0222ebee0088d80cc2e0d1d60595e335cb1a1a914cb761aad36b487d7c16ac034
Size (zathura-pdf-mupdf-0.3.9.tar.xz) = 8640 bytes
SHA1 (patch-document.c) = ad929680aa1de6f21b71cabc06da9ba54491687a
+SHA1 (patch-meson.build) = 66c4da399ea6772e9b716626647d898ba488db89
diff -r d8c3153cc60d -r 3228b72fff0a print/zathura-pdf-mupdf/patches/patch-meson.build
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/print/zathura-pdf-mupdf/patches/patch-meson.build Tue Aug 30 14:16:09 2022 +0000
@@ -0,0 +1,51 @@
+$NetBSD: patch-meson.build,v 1.3 2022/08/30 14:16:09 nia Exp $
+
+Link against mupdf normally, not assuming static linking.
+
+--- meson.build.orig 2022-08-22 21:00:38.000000000 +0000
++++ meson.build
+@@ -19,7 +19,7 @@ zathura = dependency('zathura', version:
+ girara = dependency('girara-gtk3')
+ glib = dependency('glib-2.0')
+ cairo = dependency('cairo')
+-mupdf = dependency('mupdf', required: false)
++mupdf = dependency('mupdf')
+ mupdfthird = cc.find_library('mupdf-third')
+
+ build_dependencies = [
+@@ -29,32 +29,9 @@ build_dependencies = [
+ cairo,
+ ]
+
+-if not mupdf.found()
+- # normal build of mupdf
+- mupdf = cc.find_library('mupdf')
+- build_dependencies += [mupdf, mupdfthird]
+-else
+- # build from Debian's libmupdf-dev
+- build_dependencies += [mupdf, mupdfthird]
+-
+- libjpeg = dependency('libjpeg')
+- libjbig2dec = cc.find_library('jbig2dec')
+- libopenjp2 = dependency('libopenjp2')
+- gumbo = dependency('gumbo')
+- tesseract = dependency('tesseract')
+- leptonica = dependency('lept')
+- mujs = dependency('mujs')
+-
+- build_dependencies += [
+- libjpeg,
+- libjbig2dec,
+- libopenjp2,
+- gumbo,
+- tesseract,
+- leptonica,
+- mujs
+- ]
+-endif
++# normal build of mupdf
++mupdf = cc.find_library('mupdf')
++build_dependencies += [mupdf, mupdfthird]
+
+ if get_option('plugindir') == ''
+ plugindir = zathura.get_pkgconfig_variable('plugindir')
Home |
Main Index |
Thread Index |
Old Index