aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-02-02 12:37:22 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-02-02 12:37:22 -0800
commit3bb83774a53a36d67789b1ba4a309e6b8d973e53 (patch)
treea97b9e3c10d31be69f5b016ec2b373777237d9f2
parent51e8b5da7cd8fd1273a99dac953de1aa193e7ac9 (diff)
downloadvcpkg-3bb83774a53a36d67789b1ba4a309e6b8d973e53.tar.gz
vcpkg-3bb83774a53a36d67789b1ba4a309e6b8d973e53.zip
[highfive] Update to v1.5. Install cmake targets. Remove boost dependency as optional and does not require build sequencing.
-rw-r--r--ports/highfive/CONTROL4
-rw-r--r--ports/highfive/portfile.cmake31
2 files changed, 25 insertions, 10 deletions
diff --git a/ports/highfive/CONTROL b/ports/highfive/CONTROL
index 17aa55c8f..22c7d616b 100644
--- a/ports/highfive/CONTROL
+++ b/ports/highfive/CONTROL
@@ -1,4 +1,4 @@
Source: highfive
-Version: 1.3
+Version: 1.5
Description: HighFive is a modern C++/C++11 friendly interface for libhdf5
-Build-Depends: hdf5, boost \ No newline at end of file
+Build-Depends: hdf5
diff --git a/ports/highfive/portfile.cmake b/ports/highfive/portfile.cmake
index 9fea72553..72f644e0e 100644
--- a/ports/highfive/portfile.cmake
+++ b/ports/highfive/portfile.cmake
@@ -1,13 +1,28 @@
include(vcpkg_common_functions)
-set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/HighFive-1.3)
-vcpkg_download_distfile(ARCHIVE
- URLS "https://github.com/BlueBrain/HighFive/archive/v1.3.tar.gz"
- FILENAME "highfive.v1.3.tar.gz"
- SHA512 258efae1ef5eed45ac1cf93c21c79fab9ee3c340d49a36a4aa2b43c98df1c80db9167a40a0b6a59c4f99b7c190d41d545b53c0f2c5c59aabaffc4b2584b4390b
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO BlueBrain/HighFive
+ REF v1.5
+ SHA512 4133ec2768f54cb3e56c32f3193d6c61ea96013dc73901c39d31ecaf10b04ea2861b0f6f5c9795985050ef72a75e2d360a4b906c9cdeb8ee49309961e15d39bf
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DHIGHFIVE_UNIT_TESTS=OFF
+ -DHIGHFIVE_EXAMPLES=OFF
+ -DUSE_BOOST=OFF
+ -DHIGH_FIVE_DOCUMENTATION=OFF
)
-vcpkg_extract_source_archive(${ARCHIVE})
-# Copy the highfive header files
-file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.hpp")
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH share/HighFive/CMake)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
+
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/highfive RENAME copyright)