aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-04-01 00:30:13 +0800
committerPhil Christensen <philc@microsoft.com>2019-03-31 09:30:13 -0700
commit8757c643f5cf1817bbdd25768e7d198e9bfd1666 (patch)
treebafa1c120ef339b8a0614ba11389ba59abeecfb4
parent3cc4de62c1a2d6000687573d2d90893fa76d1816 (diff)
downloadvcpkg-8757c643f5cf1817bbdd25768e7d198e9bfd1666.tar.gz
vcpkg-8757c643f5cf1817bbdd25768e7d198e9bfd1666.zip
[brunocodutra-metal] Add new port (#5817)
* [brunocodutra-metal] Add new port * [brunocodutra-metal] Rename
-rw-r--r--ports/brunocodutra-metal/CONTROL3
-rw-r--r--ports/brunocodutra-metal/portfile.cmake31
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/brunocodutra-metal/CONTROL b/ports/brunocodutra-metal/CONTROL
new file mode 100644
index 000000000..9a0519df9
--- /dev/null
+++ b/ports/brunocodutra-metal/CONTROL
@@ -0,0 +1,3 @@
+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/brunocodutra-metal/portfile.cmake b/ports/brunocodutra-metal/portfile.cmake
new file mode 100644
index 000000000..857fc7dea
--- /dev/null
+++ b/ports/brunocodutra-metal/portfile.cmake
@@ -0,0 +1,31 @@
+# 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/Metal
+ TARGET_PATH share/metal
+)
+
+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})