git: 2afbeac18952 - main - graphics/pdfpc: Fix build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 08 Aug 2023 01:49:05 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=2afbeac189525b12b321756d4ef62187ed3d4457 commit 2afbeac189525b12b321756d4ef62187ed3d4457 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-08 00:19:17 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-08 01:48:37 +0000 graphics/pdfpc: Fix build - Add missing dependencies reported by poudriere testport - Pet port{clippy|fmt} Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- graphics/pdfpc/Makefile | 15 ++++++++---- ...tch-src_classes_drawings_drawing__commands.vala | 27 ++++++++++++++++++++++ 2 files changed, 37 insertions(+), 5 deletions(-) diff --git a/graphics/pdfpc/Makefile b/graphics/pdfpc/Makefile index f07097d2b86c..4fa79dc80003 100644 --- a/graphics/pdfpc/Makefile +++ b/graphics/pdfpc/Makefile @@ -13,14 +13,19 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= ${LOCALBASE}/lib/libmarkdown.a:textproc/discount LIB_DEPENDS= libgee-0.8.so:devel/libgee \ + libharfbuzz.so:print/harfbuzz \ + libjson-glib-1.0.so:devel/json-glib \ + libmarkdown.so:textproc/discount \ libpoppler-glib.so:graphics/poppler-glib \ - libwebkit2gtk-4.0.so:www/webkit2-gtk3 \ - libqrencode.so:graphics/libqrencode + libqrencode.so:graphics/libqrencode \ + libsoup-2.4.so:devel/libsoup \ + libwebkit2gtk-4.0.so:www/webkit2-gtk3 -USE_GITHUB= yes +USES= cmake compiler:c11 gnome gstreamer pkgconfig vala:build xorg +USE_GNOME= cairo gdkpixbuf2 gtk30 +USE_XORG= x11 -USES= cmake compiler:c11 gnome gstreamer pkgconfig vala:build -USE_GNOME= gtk30 +USE_GITHUB= yes CMAKE_ARGS= -DMANDIR:STRING="man/" diff --git a/graphics/pdfpc/files/patch-src_classes_drawings_drawing__commands.vala b/graphics/pdfpc/files/patch-src_classes_drawings_drawing__commands.vala new file mode 100644 index 000000000000..5453aafedfce --- /dev/null +++ b/graphics/pdfpc/files/patch-src_classes_drawings_drawing__commands.vala @@ -0,0 +1,27 @@ +--- src/classes/drawings/drawing_commands.vala.orig 2023-08-08 00:11:53 UTC ++++ src/classes/drawings/drawing_commands.vala +@@ -54,8 +54,8 @@ namespace pdfpc { + } + + public void clear() { +- this.drawing_commands = new List<DrawingCommand>(); +- this.redo_commands = new List<DrawingCommand>(); ++ this.drawing_commands = new List<DrawingCommand?>(); ++ this.redo_commands = new List<DrawingCommand?>(); + } + + public void add_line(bool is_eraser, +@@ -70,7 +70,7 @@ namespace pdfpc { + + // After adding a new line you can no longer redo the old + // path. +- this.redo_commands = new List<DrawingCommand>(); // clear ++ this.redo_commands = new List<DrawingCommand?>(); // clear + + bool new_path = true; + double epsilon = 1e-4; // Less than 0.1 pixel for a 1000x1000 img +@@ -171,4 +171,3 @@ namespace pdfpc { + } + } + } +-