Skip to content

Commit b285803

Browse files
committed
pdfpc: update to 4.6.0, fix build on powerpc
1 parent ceb84cf commit b285803

File tree

2 files changed

+50
-9
lines changed

2 files changed

+50
-9
lines changed

graphics/pdfpc/Portfile

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ PortGroup github 1.0
55
PortGroup active_variants 1.1
66
PortGroup cmake 1.1
77

8-
github.setup pdfpc pdfpc 4.5.0 v
8+
github.setup pdfpc pdfpc 4.6.0 v
99

1010
maintainers {gmx.de:Torsten.Maehne @maehne} openmaintainer
1111

@@ -21,29 +21,37 @@ long_description ${description}\
2121
the presentation. The input files processed by pdfpc are PDF documents, \
2222
which can be created using nearly any of today's presentation software.
2323

24-
platforms darwin
2524
license GPL-2+
2625

2726
homepage https://${github.author}.github.io/
2827

28+
checksums rmd160 2aa443ba7f47fbc4aaf9e23ce81534d72026affc \
29+
sha256 3b1a393f36a1b0ddc29a3d5111d8707f25fb2dd2d93b0401ff1c66fa95f50294 \
30+
size 7766521
31+
github.tarball_from archive
32+
2933
depends_build-append path:bin/vala:vala \
30-
port:pkgconfig
34+
path:bin/pkg-config:pkgconfig
3135
depends_lib-append path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
3236
path:lib/pkgconfig/poppler.pc:poppler \
3337
port:libgee \
3438
path:lib/pkgconfig/librsvg-2.0.pc:librsvg \
3539
port:discount \
36-
path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk
37-
38-
cmake.out_of_source yes
40+
port:qrencode
3941

40-
checksums rmd160 2c55ae8fad8e1ec208ae2e25d0187dbc3e7d1739 \
41-
sha256 034aa0ffbaeacb87611792c4d02ad8cb8927b9edfcf5f2c542ac94dbddf8ce10 \
42-
size 7754721
42+
# https://github.com/pdfpc/pdfpc/pull/687
43+
patchfiles-append 18beaecbbcc066e0d4c889b3aa3ecaa7351f7768.patch
4344

4445
configure.args -DCMAKE_INSTALL_SYSCONFDIR=${prefix}/etc \
46+
-DMDVIEW=off \
4547
-DMOVIES=off
4648

49+
if {${configure.build_arch} ni [list ppc ppc64]} {
50+
depends_lib-append path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk
51+
52+
configure.args-delete -DMDVIEW=off
53+
}
54+
4755
pre-configure {
4856
if {![variant_isset quartz] && ![variant_isset x11]} {
4957
error "Either +x11 or +quartz is required"
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
From 18beaecbbcc066e0d4c889b3aa3ecaa7351f7768 Mon Sep 17 00:00:00 2001
2+
From: Evgeny Stambulchik <[email protected]>
3+
Date: Tue, 25 Apr 2023 16:11:25 +0300
4+
Subject: [PATCH] Create Lists of nullable types
5+
6+
---
7+
src/classes/drawings/drawing_commands.vala | 6 +++---
8+
1 file changed, 3 insertions(+), 3 deletions(-)
9+
10+
diff --git a/src/classes/drawings/drawing_commands.vala b/src/classes/drawings/drawing_commands.vala
11+
index 77e56e6d..c305a8c5 100644
12+
--- src/classes/drawings/drawing_commands.vala
13+
+++ src/classes/drawings/drawing_commands.vala
14+
@@ -54,8 +54,8 @@ namespace pdfpc {
15+
}
16+
17+
public void clear() {
18+
- this.drawing_commands = new List<DrawingCommand>();
19+
- this.redo_commands = new List<DrawingCommand>();
20+
+ this.drawing_commands = new List<DrawingCommand?>();
21+
+ this.redo_commands = new List<DrawingCommand?>();
22+
}
23+
24+
public void add_line(bool is_eraser,
25+
@@ -70,7 +70,7 @@ namespace pdfpc {
26+
27+
// After adding a new line you can no longer redo the old
28+
// path.
29+
- this.redo_commands = new List<DrawingCommand>(); // clear
30+
+ this.redo_commands = new List<DrawingCommand?>(); // clear
31+
32+
bool new_path = true;
33+
double epsilon = 1e-4; // Less than 0.1 pixel for a 1000x1000 img

0 commit comments

Comments
 (0)