diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/eve | |
Diffstat (limited to 'vcpkg/ports/eve')
| -rw-r--r-- | vcpkg/ports/eve/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/eve/usage | 7 | ||||
| -rw-r--r-- | vcpkg/ports/eve/vcpkg.json | 19 |
3 files changed, 55 insertions, 0 deletions
diff --git a/vcpkg/ports/eve/portfile.cmake b/vcpkg/ports/eve/portfile.cmake new file mode 100644 index 0000000..bccc8c4 --- /dev/null +++ b/vcpkg/ports/eve/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION} + +string(REGEX REPLACE "^(v[0-9]+)[.]([0-9])[.]([0-9]+)\$" "\\1.0\\2.\\3" git_ref "v${VERSION}") +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO jfalcou/eve + REF "${git_ref}" + SHA512 20b55996465fa5016d43cee95541510b6470b2358635b0e269965d3fb43731e83b92bc2df0502fcdfadd31de47f877f22b1c6ae84638f1f3db92c70315cc1b29 + HEAD_REF main +) + +set(VCPKG_BUILD_TYPE release) # header-only port + +vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}") + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(CONFIG_PATH "lib/eve-${VERSION}") +if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/share/eve/eve-config.cmake") + message(FATAL_ERROR "CMake config is missing") +endif() + +file(REMOVE_RECURSE + "${CURRENT_PACKAGES_DIR}/lib" + "${CURRENT_PACKAGES_DIR}/share/doc" +) + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/eve/usage b/vcpkg/ports/eve/usage new file mode 100644 index 0000000..ca06522 --- /dev/null +++ b/vcpkg/ports/eve/usage @@ -0,0 +1,7 @@ +eve provides CMake targets:
+
+ find_package(eve CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE eve::eve)
+
+Using eve requires a C++20 compliant compiler.
+GCC-11 and clang-12 are known to work.
diff --git a/vcpkg/ports/eve/vcpkg.json b/vcpkg/ports/eve/vcpkg.json new file mode 100644 index 0000000..434ac60 --- /dev/null +++ b/vcpkg/ports/eve/vcpkg.json @@ -0,0 +1,19 @@ +{ + "name": "eve", + "version": "2023.2.15", + "description": "EVE - the Expressive Vector Engine : C++20 SIMD Programming Library", + "homepage": "https://github.com/jfalcou/eve", + "documentation": "https://jfalcou.github.io/eve/", + "license": "BSL-1.0", + "supports": "!windows, mingw", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |