diff options
| author | Stefano Sinigardi <stesinigardi@hotmail.com> | 2019-10-07 19:35:13 +0200 |
|---|---|---|
| committer | Curtis J Bezault <curtbezault@gmail.com> | 2019-10-07 10:35:13 -0700 |
| commit | 726c11148105a97aef39bec024fdb7c140b1b154 (patch) | |
| tree | 26bd2aee0c13a8351b259cc4ffffaf0efededb4e /ports/tgc | |
| parent | e86ff2cc54bda9e9ee322ab69141e7113d5c40a9 (diff) | |
| download | vcpkg-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/tgc')
| -rw-r--r-- | ports/tgc/CONTROL | 2 | ||||
| -rw-r--r-- | ports/tgc/portfile.cmake | 36 |
2 files changed, 7 insertions, 31 deletions
diff --git a/ports/tgc/CONTROL b/ports/tgc/CONTROL index 85466c147..7961312cb 100644 --- a/ports/tgc/CONTROL +++ b/ports/tgc/CONTROL @@ -1,4 +1,4 @@ Source: tgc
-Version: 2019-08-11
+Version: 2019-08-11-1
Description: A tiny garbage collector for C
Homepage: https://github.com/orangeduck/tgc
diff --git a/ports/tgc/portfile.cmake b/ports/tgc/portfile.cmake index ebd9c66c3..4efe63c21 100644 --- a/ports/tgc/portfile.cmake +++ b/ports/tgc/portfile.cmake @@ -2,34 +2,12 @@ include(vcpkg_common_functions) vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
-set(SOURCE_VERSION 35207051557c79ea25942c021fb18856c72af8e3)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/orangeduck-tgc-${SOURCE_VERSION})
-
-file(MAKE_DIRECTORY ${SOURCE_PATH})
-
-# See ports/nlohmann-json/portfile.cmake
-function(download_src SUBPATH SHA512)
- vcpkg_download_distfile(
- FILE
- URLS "https://raw.githubusercontent.com/orangeduck/tgc/master/${SUBPATH}"
- FILENAME "orangeduck-tgc-${SOURCE_VERSION}/${SUBPATH}"
- SHA512 ${SHA512}
- )
- get_filename_component(SUBPATH_DIR "${SOURCE_PATH}/${SUBPATH}" DIRECTORY)
- file(COPY ${FILE} DESTINATION ${SUBPATH_DIR})
-endfunction()
-
-download_src(
- tgc.h
- 55944055fa83cfc1cbdf026f6ea65d42c1704800d26a7cb6d31a0afcfc61a2ca61d5e539edbf354c4572a885dbc6f38cbb6593cbb66d5dc78eb7d3b66d613dd8
-)
-download_src(
- tgc.c
- 942eefd9b02558f94315023734e9b3b74e326d5a705e9e8809cb4ddb0c6272d8ba9b9715f7d53d7a6151b8cff1377561d169a310c48d200698f9d26ba2c106c3
-)
-download_src(
- LICENSE.md
- 89c46e23f61d2912f47a10e807ee823e78b708804c5cfea2382e1d5a9955f0f1a67e421453b5868db2f71229aae8b83c271bb1cf89631b43e91e5d6c4fcbf1a7
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO orangeduck/tgc
+ REF 35207051557c79ea25942c021fb18856c72af8e3
+ SHA512 d56153cfb00ad4941c7c88e6cc54b54812466e95b61581e9f71e41b6200746e2143344f0d292032e92f7c90eaa60d0df91120b36e3aad0e354836df6d28e2c35
+ HEAD_REF master
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
@@ -47,8 +25,6 @@ vcpkg_fixup_cmake_targets(CONFIG_PATH share/unofficial-${PORT} TARGET_PATH share file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
-# CMake integration test
vcpkg_test_cmake(PACKAGE_NAME unofficial-${PORT})
|
