mirror of
https://github.com/microsoft/vcpkg.git
synced 2026-01-18 01:11:23 +01:00
[jbcoe-value-types] New port (#46140)
This commit is contained in:
34
ports/jbcoe-value-types/fix-install.patch
Normal file
34
ports/jbcoe-value-types/fix-install.patch
Normal file
@@ -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(
|
||||
25
ports/jbcoe-value-types/portfile.cmake
Normal file
25
ports/jbcoe-value-types/portfile.cmake
Normal file
@@ -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)
|
||||
17
ports/jbcoe-value-types/vcpkg.json
Normal file
17
ports/jbcoe-value-types/vcpkg.json
Normal file
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -3968,6 +3968,10 @@
|
||||
"baseline": "4.2.4",
|
||||
"port-version": 2
|
||||
},
|
||||
"jbcoe-value-types": {
|
||||
"baseline": "1.0.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"jbig2dec": {
|
||||
"baseline": "0.20",
|
||||
"port-version": 0
|
||||
|
||||
9
versions/j-/jbcoe-value-types.json
Normal file
9
versions/j-/jbcoe-value-types.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "4a6e450439907bf9e0837fa1decf156ebd324c2b",
|
||||
"version": "1.0.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user