From ebbdf2ebcc57bd2645812e6c1cc421afe050b8ca Mon Sep 17 00:00:00 2001 From: chausner Date: Sun, 31 Oct 2021 02:01:48 +0200 Subject: [PATCH 1/4] Add highway 0.14.2 port --- ports/highway/portfile.cmake | 23 +++++++++++++++++++++++ ports/highway/vcpkg.json | 13 +++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 ports/highway/portfile.cmake create mode 100644 ports/highway/vcpkg.json diff --git a/ports/highway/portfile.cmake b/ports/highway/portfile.cmake new file mode 100644 index 00000000000000..f91ae31b4697b0 --- /dev/null +++ b/ports/highway/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO google/highway + REF 0.14.2 + SHA512 fc1a35463c95c45b646c53f91a9996112726de1d588dcd4d25a7d366840f704ad9a4c0bb6e0a001e929409f04aad6922cbffcf93774a0c360aff875956c7cc8d + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF +) + +vcpkg_cmake_install() + +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") + +file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/ports/highway/vcpkg.json b/ports/highway/vcpkg.json new file mode 100644 index 00000000000000..90cfe5de98e463 --- /dev/null +++ b/ports/highway/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "highway", + "version-semver": "0.14.2", + "description": "Performance-portable, length-agnostic SIMD with runtime dispatch", + "homepage": "https://github.com/google/highway", + "license": "Apache-2.0", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} From 1301dc3ff4ee61001b7371840cb49184bec3b0f4 Mon Sep 17 00:00:00 2001 From: chausner Date: Sun, 31 Oct 2021 02:02:06 +0200 Subject: [PATCH 2/4] Update git-tree hash --- versions/baseline.json | 4 ++++ versions/h-/highway.json | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 versions/h-/highway.json diff --git a/versions/baseline.json b/versions/baseline.json index 0e1de0bb9637a8..6d8a7d6ff03ad4 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2676,6 +2676,10 @@ "baseline": "2.3", "port-version": 0 }, + "highway": { + "baseline": "0.14.2", + "port-version": 0 + }, "hiredis": { "baseline": "1.0.2", "port-version": 1 diff --git a/versions/h-/highway.json b/versions/h-/highway.json new file mode 100644 index 00000000000000..b2bc68b3dd98e1 --- /dev/null +++ b/versions/h-/highway.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "f4835f454cfb12c52a80ce11c685ae6c6213505a", + "version-semver": "0.14.2", + "port-version": 0 + } + ] +} From fa92f56a0baeda1763635648aee0c7b8e800dd75 Mon Sep 17 00:00:00 2001 From: chausner Date: Sun, 31 Oct 2021 02:20:54 +0200 Subject: [PATCH 3/4] Fix vcpkg_fixup_pkgconfig by removing libhwy-test.pc --- ports/highway/portfile.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ports/highway/portfile.cmake b/ports/highway/portfile.cmake index f91ae31b4697b0..8a7b9c50b620c8 100644 --- a/ports/highway/portfile.cmake +++ b/ports/highway/portfile.cmake @@ -16,6 +16,10 @@ vcpkg_cmake_configure( vcpkg_cmake_install() +# remove test-related pkg-config files that break vcpkg_fixup_pkgconfig +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig/libhwy-test.pc") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/libhwy-test.pc") + vcpkg_fixup_pkgconfig() file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") From a7928198fb34f573b522f7925cf1bc83741493dc Mon Sep 17 00:00:00 2001 From: chausner Date: Sun, 31 Oct 2021 02:21:08 +0200 Subject: [PATCH 4/4] Update git-tree hash --- versions/h-/highway.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/versions/h-/highway.json b/versions/h-/highway.json index b2bc68b3dd98e1..b3efe0ceb9df13 100644 --- a/versions/h-/highway.json +++ b/versions/h-/highway.json @@ -1,7 +1,7 @@ { "versions": [ { - "git-tree": "f4835f454cfb12c52a80ce11c685ae6c6213505a", + "git-tree": "5167bd4fba072a5f09398d913d5e575241c67c5e", "version-semver": "0.14.2", "port-version": 0 }