Skip to content

Commit

Permalink
[highfive] Update to v1.5. Install cmake targets. Remove boost depend…
Browse files Browse the repository at this point in the history
…ency as optional and does not require build sequencing.
  • Loading branch information
ras0219-msft committed Feb 2, 2018
1 parent 51e8b5d commit 3bb8377
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
4 changes: 2 additions & 2 deletions ports/highfive/CONTROL
Original file line number Diff line number Diff line change
@@ -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
Build-Depends: hdf5
31 changes: 23 additions & 8 deletions ports/highfive/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 3bb8377

Please sign in to comment.