From ec38751798e9b38ddc6c6067ca808f093e03b073 Mon Sep 17 00:00:00 2001 From: "Joshua T. Fisher" Date: Mon, 26 Sep 2016 00:43:44 -0700 Subject: Adding constexpr --- ports/constexpr/CONTROL | 2 ++ ports/constexpr/portfile.cmake | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 ports/constexpr/CONTROL create mode 100644 ports/constexpr/portfile.cmake (limited to 'ports/constexpr') diff --git a/ports/constexpr/CONTROL b/ports/constexpr/CONTROL new file mode 100644 index 000000000..090351704 --- /dev/null +++ b/ports/constexpr/CONTROL @@ -0,0 +1,2 @@ +Source: constexpr +Version: 1.0 diff --git a/ports/constexpr/portfile.cmake b/ports/constexpr/portfile.cmake new file mode 100644 index 000000000..9adebea51 --- /dev/null +++ b/ports/constexpr/portfile.cmake @@ -0,0 +1,16 @@ +include(vcpkg_common_functions) +vcpkg_download_distfile(ARCHIVE + URL "https://github.com/elbeno/constexpr/archive/a98b1db39c909e0130d21d3910d4faf97035a625.zip" + FILENAME "constexpr-a98b1db39c909e0130d21d3910d4faf97035a625.zip" + SHA512 847E09F9DF30CB5FBD8AA280679FF359D73C9E9454FFE3090F66975A15665080629E9A664D057F039B17430D42B5E5F5F3F92831E73C15024060991090209C2E +) +vcpkg_extract_source_archive(${ARCHIVE}) + +# Put the licence file where vcpkg expects it +set(SOURCE_DIR ${CURRENT_BUILDTREES_DIR}/src/constexpr-a98b1db39c909e0130d21d3910d4faf97035a625) +file(COPY ${SOURCE_DIR}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/README.md) +file(COPY ${SOURCE_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/copyright) + +# Copy the constexpr header files +file(GLOB HEADER_FILES ${SOURCE_DIR}/src/include/*.h) +file(COPY ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include) -- cgit v1.2.3 From eb4f6482375571ef83a81bcb07e2be30d8702a85 Mon Sep 17 00:00:00 2001 From: "Joshua T. Fisher" Date: Mon, 26 Sep 2016 00:43:59 -0700 Subject: fixed description --- ports/constexpr/CONTROL | 1 + 1 file changed, 1 insertion(+) (limited to 'ports/constexpr') diff --git a/ports/constexpr/CONTROL b/ports/constexpr/CONTROL index 090351704..e8cb4749f 100644 --- a/ports/constexpr/CONTROL +++ b/ports/constexpr/CONTROL @@ -1,2 +1,3 @@ Source: constexpr Version: 1.0 +Description: Small MIT License Library of general stdlib functions written as C++11 constexpr functions. -- cgit v1.2.3 From 2dc365e508548f1a297065757bb4d91a4f8a6b1f Mon Sep 17 00:00:00 2001 From: "Joshua T. Fisher" Date: Mon, 26 Sep 2016 00:47:58 -0700 Subject: Fixed hash to be lowercase. --- ports/constexpr/portfile.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ports/constexpr') diff --git a/ports/constexpr/portfile.cmake b/ports/constexpr/portfile.cmake index 9adebea51..2efbd0e16 100644 --- a/ports/constexpr/portfile.cmake +++ b/ports/constexpr/portfile.cmake @@ -2,7 +2,7 @@ include(vcpkg_common_functions) vcpkg_download_distfile(ARCHIVE URL "https://github.com/elbeno/constexpr/archive/a98b1db39c909e0130d21d3910d4faf97035a625.zip" FILENAME "constexpr-a98b1db39c909e0130d21d3910d4faf97035a625.zip" - SHA512 847E09F9DF30CB5FBD8AA280679FF359D73C9E9454FFE3090F66975A15665080629E9A664D057F039B17430D42B5E5F5F3F92831E73C15024060991090209C2E + SHA512 847e09f9df30cb5fbd8aa280679ff359d73c9e9454ffe3090f66975a15665080629e9a664d057f039b17430d42b5e5f5f3f92831e73c15024060991090209c2e ) vcpkg_extract_source_archive(${ARCHIVE}) -- cgit v1.2.3 From 9d5f46ed5b18b404704260e7b49d8cc80c3a6e13 Mon Sep 17 00:00:00 2001 From: "Joshua T. Fisher" Date: Mon, 26 Sep 2016 01:55:18 -0700 Subject: Fi license placement. --- ports/constexpr/portfile.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ports/constexpr') diff --git a/ports/constexpr/portfile.cmake b/ports/constexpr/portfile.cmake index 2efbd0e16..47df30d12 100644 --- a/ports/constexpr/portfile.cmake +++ b/ports/constexpr/portfile.cmake @@ -8,8 +8,8 @@ vcpkg_extract_source_archive(${ARCHIVE}) # Put the licence file where vcpkg expects it set(SOURCE_DIR ${CURRENT_BUILDTREES_DIR}/src/constexpr-a98b1db39c909e0130d21d3910d4faf97035a625) -file(COPY ${SOURCE_DIR}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/README.md) -file(COPY ${SOURCE_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/copyright) +file(COPY ${SOURCE_DIR}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/constexpr/LICENSE ${CURRENT_PACKAGES_DIR}/share/constexpr/copyright) # Copy the constexpr header files file(GLOB HEADER_FILES ${SOURCE_DIR}/src/include/*.h) -- cgit v1.2.3 From 8b7c0594ab982f1e1abb18832588fe9e7f19dce9 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 26 Sep 2016 16:46:31 -0700 Subject: Fix URL to URLS in portfile URLS is the new name. It was changed in another pull request --- ports/constexpr/portfile.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ports/constexpr') diff --git a/ports/constexpr/portfile.cmake b/ports/constexpr/portfile.cmake index 47df30d12..592e67094 100644 --- a/ports/constexpr/portfile.cmake +++ b/ports/constexpr/portfile.cmake @@ -1,6 +1,6 @@ include(vcpkg_common_functions) vcpkg_download_distfile(ARCHIVE - URL "https://github.com/elbeno/constexpr/archive/a98b1db39c909e0130d21d3910d4faf97035a625.zip" + URLS "https://github.com/elbeno/constexpr/archive/a98b1db39c909e0130d21d3910d4faf97035a625.zip" FILENAME "constexpr-a98b1db39c909e0130d21d3910d4faf97035a625.zip" SHA512 847e09f9df30cb5fbd8aa280679ff359d73c9e9454ffe3090f66975a15665080629e9a664d057f039b17430d42b5e5f5f3f92831e73c15024060991090209c2e ) -- cgit v1.2.3