aboutsummaryrefslogtreecommitdiff
path: root/ports/jbigkit
diff options
context:
space:
mode:
authorStefano Sinigardi <stesinigardi@hotmail.com>2019-10-07 19:35:13 +0200
committerCurtis J Bezault <curtbezault@gmail.com>2019-10-07 10:35:13 -0700
commit726c11148105a97aef39bec024fdb7c140b1b154 (patch)
tree26bd2aee0c13a8351b259cc4ffffaf0efededb4e /ports/jbigkit
parente86ff2cc54bda9e9ee322ab69141e7113d5c40a9 (diff)
downloadvcpkg-726c11148105a97aef39bec024fdb7c140b1b154.tar.gz
vcpkg-726c11148105a97aef39bec024fdb7c140b1b154.zip
[vcpkg] fatal_error when patch fails to apply (#8087)
vcpkg will now fail on failure to apply patches except when using `--head`.
Diffstat (limited to 'ports/jbigkit')
-rw-r--r--ports/jbigkit/CONTROL2
-rw-r--r--ports/jbigkit/portfile.cmake7
2 files changed, 6 insertions, 3 deletions
diff --git a/ports/jbigkit/CONTROL b/ports/jbigkit/CONTROL
index cc0a00aa2..c1c76a89c 100644
--- a/ports/jbigkit/CONTROL
+++ b/ports/jbigkit/CONTROL
@@ -1,4 +1,4 @@
Source: jbigkit
-Version: 2.1-3
+Version: 2.1-4
Homepage: https://www.cl.cam.ac.uk/~mgk25/jbigkit
Description: A software implementation of the JBIG1 data compression standard (ITU-T T.82)
diff --git a/ports/jbigkit/portfile.cmake b/ports/jbigkit/portfile.cmake
index 9e63a426f..25c87930a 100644
--- a/ports/jbigkit/portfile.cmake
+++ b/ports/jbigkit/portfile.cmake
@@ -5,13 +5,16 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
set(JBIGKIT_VERSION 2.1)
set(JBIGKIT_HASH c4127480470ef90db1ef3bd2caa444df10b50ed8df0bc9997db7612cb48b49278baf44965028f1807a21028eb965d677e015466306b44683c4ec75a23e1922cf)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/jbigkit-${JBIGKIT_VERSION})
vcpkg_download_distfile(ARCHIVE
URLS "http://www.cl.cam.ac.uk/~mgk25/jbigkit/download/jbigkit-${JBIGKIT_VERSION}.tar.gz"
FILENAME "jbigkit-${JBIGKIT_VERSION}.tar.gz"
SHA512 ${JBIGKIT_HASH}
)
-vcpkg_extract_source_archive(${ARCHIVE})
+
+vcpkg_extract_source_archive_ex(
+ ARCHIVE ${ARCHIVE}
+ OUT_SOURCE_PATH SOURCE_PATH
+)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})