diff options
Diffstat (limited to 'vcpkg/ports/jbcoe-value-types')
| -rw-r--r-- | vcpkg/ports/jbcoe-value-types/fix-install.patch | 34 | ||||
| -rw-r--r-- | vcpkg/ports/jbcoe-value-types/portfile.cmake | 25 | ||||
| -rw-r--r-- | vcpkg/ports/jbcoe-value-types/vcpkg.json | 17 |
3 files changed, 76 insertions, 0 deletions
diff --git a/vcpkg/ports/jbcoe-value-types/fix-install.patch b/vcpkg/ports/jbcoe-value-types/fix-install.patch new file mode 100644 index 0000000..08d9e0f --- /dev/null +++ b/vcpkg/ports/jbcoe-value-types/fix-install.patch @@ -0,0 +1,34 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 552698a..5e595a5 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -126,9 +126,6 @@ target_sources(polymorphic_cxx17 + + if (${XYZ_VALUE_TYPES_IS_NOT_SUBPROJECT}) + +- add_subdirectory(benchmarks) +- add_subdirectory(compile_checks) +- add_subdirectory(exploration) + + if (${BUILD_TESTING}) + FetchContent_Declare( +diff --git a/cmake/coverage.cmake b/cmake/coverage.cmake +index 28022d6..1527f92 100644 +--- a/cmake/coverage.cmake ++++ b/cmake/coverage.cmake +@@ -16,7 +16,6 @@ set(COVERAGE_SUPPORTED_FLAGS + "--coverage" + ) + +-find_package(Python3 REQUIRED COMPONENTS Interpreter) + + #[=======================================================================[.rst: + virtualenv_create +@@ -84,6 +83,7 @@ function(virtualenv_create) + message(FATAL_ERROR "REQUIREMENTS must exist, invalid path: ${PYTHON_VENV_REQUIREMENTS}") + endif() + ++ find_package(Python3 REQUIRED COMPONENTS Interpreter) + set(PYTHON_VENV_INTERPRETER ${PYTHON_VENV_DESTINATION}/bin/python) + + add_custom_command( diff --git a/vcpkg/ports/jbcoe-value-types/portfile.cmake b/vcpkg/ports/jbcoe-value-types/portfile.cmake new file mode 100644 index 0000000..7bcfab4 --- /dev/null +++ b/vcpkg/ports/jbcoe-value-types/portfile.cmake @@ -0,0 +1,25 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO jbcoe/value_types + REF 0f3f7275bb374c6a2581fe65c0f158bfcc8cefa3 #v1.0.0 + SHA512 821cd420f79b3fb8eede18fde50beef49c1ce910476a4ac5aa71cd2cbb7ad89063f0a8f66cd8de2ea778ad302bee068ebc774e35b4ee456196e687748d82986f + HEAD_REF main + PATCHES + fix-install.patch +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DBUILD_TESTING=OFF + -DENABLE_SANITIZERS=OFF + -DENABLE_CODE_COVERAGE=OFF +) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup(PACKAGE_NAME xyz_value_types CONFIG_PATH lib/cmake/xyz_value_types) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" ) + +file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/jbcoe-value-types/vcpkg.json b/vcpkg/ports/jbcoe-value-types/vcpkg.json new file mode 100644 index 0000000..a864a23 --- /dev/null +++ b/vcpkg/ports/jbcoe-value-types/vcpkg.json @@ -0,0 +1,17 @@ +{ + "name": "jbcoe-value-types", + "version": "1.0.0", + "description": "Value-type for composite class design for C++26 (reference implementation of std::indirect and std::polymorphic from p3019r14)", + "homepage": "https://github.com/jbcoe/value_types", + "license": "MIT", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |