From bab298c970df72ab4dd202bfe3e163b97f8c9053 Mon Sep 17 00:00:00 2001 From: Daniel Marshall Date: Fri, 25 Jan 2019 21:07:17 +0000 Subject: [PATCH] Added port for effolkronium-random (#5203) --- ports/effolkronium-random/CONTROL | 3 +++ ports/effolkronium-random/portfile.cmake | 25 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 ports/effolkronium-random/CONTROL create mode 100644 ports/effolkronium-random/portfile.cmake diff --git a/ports/effolkronium-random/CONTROL b/ports/effolkronium-random/CONTROL new file mode 100644 index 0000000000..33e61c6394 --- /dev/null +++ b/ports/effolkronium-random/CONTROL @@ -0,0 +1,3 @@ +Source: effolkronium-random +Version: 1.2.0 +Description: Random with a modern C++ API diff --git a/ports/effolkronium-random/portfile.cmake b/ports/effolkronium-random/portfile.cmake new file mode 100644 index 0000000000..d96401e22b --- /dev/null +++ b/ports/effolkronium-random/portfile.cmake @@ -0,0 +1,25 @@ +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO effolkronium/random + REF v1.2.0 + SHA512 92c5447196601d7dfb0320b517494f4e75cb55011c800cd2f18655cd4ab867672ad39830a3dbb3fc5f39a41c8ae03b6a6910f1eac4a2f131cffca896554be561 + HEAD_REF master +) + +vcpkg_replace_string(${SOURCE_PATH}/CMakeLists.txt "effolkronium_random" "effolkronium-random") +vcpkg_replace_string(${SOURCE_PATH}/cmake/config.cmake.in "effolkronium_random" "effolkronium-random") + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA + OPTIONS + -DRandom_BuildTests=OFF +) + +vcpkg_install_cmake() +vcpkg_fixup_cmake_targets(CONFIG_PATH cmake/ TARGET_PATH /share/effolkronium-random) + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib) +file(INSTALL ${SOURCE_PATH}/LICENSE.MIT DESTINATION ${CURRENT_PACKAGES_DIR}/share/effolkronium-random RENAME copyright)