mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 13:57:29 +08:00
[co] Rename port co to cocoyaxi (#22442)
* rename port co to cocoyaxi * update version * update port version * update sha * rename co to cocoyaxi * update sha * cleanup portfile for cocoyaxi * update sha * add co * update version for co * fix version files Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
This commit is contained in:
parent
495a0a04ce
commit
20f876042b
@ -1,36 +1 @@
|
||||
if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP)
|
||||
vcpkg_fail_port_install(ON_ARCH "arm" ON_TAREGT "uwp")
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO idealvin/co
|
||||
REF 3fd22601de4d7a06548ca4d24ac36b4f82cde8c5 #v2.0.3
|
||||
SHA512 fc3188355d3d4a8d56ebcca1cb4285be5bb4769328536f140d4ff6fc58f1e5ffe426f8a95506dfbc617acdd88c13d9b0420a03900bf63f83aeec090d4099c199
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
libcurl WITH_LIBCURL
|
||||
openssl WITH_OPENSSL
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DSTATIC_VS_CRT=${STATIC_CRT}
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
@ -1,33 +1,11 @@
|
||||
{
|
||||
"name": "co",
|
||||
"version-semver": "2.0.3",
|
||||
"port-version": 1,
|
||||
"description": "A go-style coroutine library in C++11 and more",
|
||||
"homepage": "https://github.com/idealvin/co",
|
||||
"homepage": "https://github.com/idealvin/cocoyaxi",
|
||||
"supports": "!uwp & !(arm & windows)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"libcurl": {
|
||||
"description": "libcurl with OpenSSL support",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "curl",
|
||||
"default-features": false,
|
||||
"features": [
|
||||
"openssl"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"openssl": {
|
||||
"description": "SSL support (OpenSSL)",
|
||||
"dependencies": [
|
||||
"openssl"
|
||||
]
|
||||
}
|
||||
}
|
||||
"cocoyaxi"
|
||||
]
|
||||
}
|
||||
|
32
ports/cocoyaxi/portfile.cmake
Normal file
32
ports/cocoyaxi/portfile.cmake
Normal file
@ -0,0 +1,32 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO idealvin/cocoyaxi
|
||||
REF 3fd22601de4d7a06548ca4d24ac36b4f82cde8c5 #v2.0.3
|
||||
SHA512 fc3188355d3d4a8d56ebcca1cb4285be5bb4769328536f140d4ff6fc58f1e5ffe426f8a95506dfbc617acdd88c13d9b0420a03900bf63f83aeec090d4099c199
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
libcurl WITH_LIBCURL
|
||||
openssl WITH_OPENSSL
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DSTATIC_VS_CRT=${STATIC_CRT}
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/share"
|
||||
)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
34
ports/cocoyaxi/vcpkg.json
Normal file
34
ports/cocoyaxi/vcpkg.json
Normal file
@ -0,0 +1,34 @@
|
||||
{
|
||||
"name": "cocoyaxi",
|
||||
"version-semver": "2.0.3",
|
||||
"port-version": 1,
|
||||
"description": "A go-style coroutine library in C++11 and more",
|
||||
"homepage": "https://github.com/idealvin/cocoyaxi",
|
||||
"supports": "!uwp & !(arm & windows)",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"libcurl": {
|
||||
"description": "libcurl with OpenSSL support",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "curl",
|
||||
"default-features": false,
|
||||
"features": [
|
||||
"openssl"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"openssl": {
|
||||
"description": "SSL support (OpenSSL)",
|
||||
"dependencies": [
|
||||
"openssl"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -1442,7 +1442,11 @@
|
||||
},
|
||||
"co": {
|
||||
"baseline": "2.0.3",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"cocoyaxi": {
|
||||
"baseline": "2.0.3",
|
||||
"port-version": 1
|
||||
},
|
||||
"coin": {
|
||||
"baseline": "4.0.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "569af78fe06ff14cd71ec70f14915d06344ed62b",
|
||||
"version-semver": "2.0.3",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "812bf72c24739504b6ddc3d3c4d941981ff3a032",
|
||||
"version-semver": "2.0.3",
|
||||
|
9
versions/c-/cocoyaxi.json
Normal file
9
versions/c-/cocoyaxi.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "5d874995d9ab680be3c0bb8d18ceebfd9485f1bd",
|
||||
"version-semver": "2.0.3",
|
||||
"port-version": 1
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user