aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/poppler/0004-disable-clang-format.patch12
-rw-r--r--ports/poppler/portfile.cmake1
-rw-r--r--ports/poppler/vcpkg.json2
3 files changed, 14 insertions, 1 deletions
diff --git a/ports/poppler/0004-disable-clang-format.patch b/ports/poppler/0004-disable-clang-format.patch
new file mode 100644
index 000000000..43a48da78
--- /dev/null
+++ b/ports/poppler/0004-disable-clang-format.patch
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 0b04be7..947d5be 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -532,7 +532,6 @@ if (GPERF AND RUN_GPERF_IF_PRESENT)
+ add_custom_command(OUTPUT poppler/${input}.c
+ COMMAND ${GPERF} poppler/${input}.gperf > ${CMAKE_CURRENT_BINARY_DIR}/poppler/${input}.c
+ COMMAND ${GPERF} poppler/${input}.gperf > ${CMAKE_CURRENT_SOURCE_DIR}/poppler/${input}.pregenerated.c
+- COMMAND clang-format -i ${CMAKE_CURRENT_SOURCE_DIR}/poppler/${input}.pregenerated.c || true
+ DEPENDS poppler/${input}.gperf
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
+
diff --git a/ports/poppler/portfile.cmake b/ports/poppler/portfile.cmake
index 4d5b58dee..77ebf431c 100644
--- a/ports/poppler/portfile.cmake
+++ b/ports/poppler/portfile.cmake
@@ -8,6 +8,7 @@ vcpkg_from_github(
0001-remove-CMAKE_CXX_STANDARD.patch
0002-remove-test-subdirectory.patch
0003-fix-gperf-not-recognized.patch
+ 0004-disable-clang-format.patch
)
vcpkg_find_acquire_program(GPERF)
diff --git a/ports/poppler/vcpkg.json b/ports/poppler/vcpkg.json
index 788c88abc..b9af52083 100644
--- a/ports/poppler/vcpkg.json
+++ b/ports/poppler/vcpkg.json
@@ -1,7 +1,7 @@
{
"name": "poppler",
"version-string": "20.12.1",
- "port-version": 2,
+ "port-version": 3,
"description": "a PDF rendering library",
"homepage": "https://poppler.freedesktop.org/",
"dependencies": [