From fcc56585244cd981b0f91c1e07f172d2e6cd5592 Mon Sep 17 00:00:00 2001 From: myd7349 Date: Tue, 19 Mar 2019 18:51:18 +0800 Subject: [PATCH 1/2] [brunocodutra-metal] Add new port --- ports/metal/CONTROL | 3 +++ ports/metal/portfile.cmake | 28 ++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 ports/metal/CONTROL create mode 100644 ports/metal/portfile.cmake diff --git a/ports/metal/CONTROL b/ports/metal/CONTROL new file mode 100644 index 00000000000000..eea88badc12e7f --- /dev/null +++ b/ports/metal/CONTROL @@ -0,0 +1,3 @@ +Source: metal +Version: v2.0.1 +Description: A single header C++11 library designed to make you love template metaprogramming diff --git a/ports/metal/portfile.cmake b/ports/metal/portfile.cmake new file mode 100644 index 00000000000000..28abc55fc0795b --- /dev/null +++ b/ports/metal/portfile.cmake @@ -0,0 +1,28 @@ +# header-only library + +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO brunocodutra/metal + REF v2.0.1 + SHA512 6aca54e2f2a6d99466d247dbd57706caef33d2399989c2eb14e99d1419922eff753acb53248f8684c1ed11bb87d79b2e850637190e8949f69e0f5ee7304281dc + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA +) + +vcpkg_install_cmake() + +vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) + +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) + +# CMake integration test +vcpkg_test_cmake(PACKAGE_NAME ${PORT}) From eff755b7f0c0baf3d274523dc64b32a682b81b61 Mon Sep 17 00:00:00 2001 From: myd7349 Date: Sat, 30 Mar 2019 16:33:14 +0800 Subject: [PATCH 2/2] [brunocodutra-metal] Rename --- ports/{metal => brunocodutra-metal}/CONTROL | 4 ++-- ports/{metal => brunocodutra-metal}/portfile.cmake | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) rename ports/{metal => brunocodutra-metal}/CONTROL (66%) rename ports/{metal => brunocodutra-metal}/portfile.cmake (84%) diff --git a/ports/metal/CONTROL b/ports/brunocodutra-metal/CONTROL similarity index 66% rename from ports/metal/CONTROL rename to ports/brunocodutra-metal/CONTROL index eea88badc12e7f..9a0519df917fec 100644 --- a/ports/metal/CONTROL +++ b/ports/brunocodutra-metal/CONTROL @@ -1,3 +1,3 @@ -Source: metal -Version: v2.0.1 +Source: brunocodutra-metal +Version: v2.0.1-1 Description: A single header C++11 library designed to make you love template metaprogramming diff --git a/ports/metal/portfile.cmake b/ports/brunocodutra-metal/portfile.cmake similarity index 84% rename from ports/metal/portfile.cmake rename to ports/brunocodutra-metal/portfile.cmake index 28abc55fc0795b..857fc7dea43941 100644 --- a/ports/metal/portfile.cmake +++ b/ports/brunocodutra-metal/portfile.cmake @@ -17,7 +17,10 @@ vcpkg_configure_cmake( vcpkg_install_cmake() -vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT}) +vcpkg_fixup_cmake_targets( + CONFIG_PATH lib/cmake/Metal + TARGET_PATH share/metal +) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)