[immer] Add new port (#6814)

* [immer] Add new port

* [immer] Clean

* [immer] Update to 2019-06-07
This commit is contained in:
myd7349 2019-06-09 10:10:26 +08:00 committed by Robert Schumacher
parent 2ab1207027
commit a6960ed0b1
2 changed files with 32 additions and 0 deletions

3
ports/immer/CONTROL Normal file
View File

@ -0,0 +1,3 @@
Source: immer
Version: 2019-06-07
Description: Postmodern immutable and persistent data structures for C++

View File

@ -0,0 +1,29 @@
# header-only library
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO arximboldi/immer
REF fe1d5151f8e62a97a953664f8de39b05ac0d2031
SHA512 2f78c2d85a24b2bcb69bbbf8b038c8bacb5a841e0f0ce7e4e521d369423c7d44f803a1c766a77d0955246a1b22476de15fa708a3786f05c41a3b705a574bbb71
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DENABLE_PYTHON=OFF
-DENABLE_GUILE=OFF
-DENABLE_BOOST_COROUTINE=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Immer)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
# Handle copyright
configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)