aboutsummaryrefslogtreecommitdiff
path: root/ports/boost-di
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/boost-di
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/boost-di')
-rw-r--r--ports/boost-di/CONTROL4
-rw-r--r--ports/boost-di/portfile.cmake13
2 files changed, 7 insertions, 10 deletions
diff --git a/ports/boost-di/CONTROL b/ports/boost-di/CONTROL
index d7c9aea41..da0873af8 100644
--- a/ports/boost-di/CONTROL
+++ b/ports/boost-di/CONTROL
@@ -1,4 +1,4 @@
Source: boost-di
-Version: 1.1.0
+Version: 1.1.0-1
Homepage: https://github.com/boost-experimental/di
-Description: C++14 Dependency Injection Library. \ No newline at end of file
+Description: C++14 Dependency Injection Library.
diff --git a/ports/boost-di/portfile.cmake b/ports/boost-di/portfile.cmake
index f6fe59a3f..2027ba0d4 100644
--- a/ports/boost-di/portfile.cmake
+++ b/ports/boost-di/portfile.cmake
@@ -1,19 +1,16 @@
-#header-only library
include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/di-1.1.0)
-vcpkg_download_distfile(ARCHIVE
- URLS "https://github.com/boost-experimental/di/archive/v1.1.0.tar.gz"
- FILENAME "di-1.1.0.tar.gz"
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO boost-experimental/di
+ REF v1.1.0
SHA512 69f7b0567cffea9bf983aedd7eabd1a07ae20249cd56a13de98eaa0cc835cbe3b76e790da68489536dd07edeb99271a69111f4d0c6b0aa3721ce9f5ead848fe0
+ HEAD_REF master
)
-vcpkg_extract_source_archive(${ARCHIVE})
file(INSTALL ${SOURCE_PATH}/include/boost
DESTINATION ${CURRENT_PACKAGES_DIR}/include)
-# boost-di license does not exist in source folder.
-# it shares the boost license.
vcpkg_download_distfile(LICENSE
URLS http://www.boost.org/LICENSE_1_0.txt
FILENAME "boost-di-copyright"