Skip to content

Commit

Permalink
[co] Rename port co to cocoyaxi (microsoft#22442)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
idealvin and strega-nil authored Jan 20, 2022
1 parent 495a0a0 commit 20f8760
Show file tree
Hide file tree
Showing 9 changed files with 90 additions and 63 deletions.
37 changes: 1 addition & 36 deletions ports/co/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
30 changes: 4 additions & 26 deletions ports/co/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions ports/cocoyaxi/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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 changes: 34 additions & 0 deletions ports/cocoyaxi/vcpkg.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
}
}
6 changes: 5 additions & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions versions/c-/co.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "569af78fe06ff14cd71ec70f14915d06344ed62b",
"version-semver": "2.0.3",
"port-version": 1
},
{
"git-tree": "812bf72c24739504b6ddc3d3c4d941981ff3a032",
"version-semver": "2.0.3",
Expand Down
9 changes: 9 additions & 0 deletions versions/c-/cocoyaxi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "5d874995d9ab680be3c0bb8d18ceebfd9485f1bd",
"version-semver": "2.0.3",
"port-version": 1
}
]
}

0 comments on commit 20f8760

Please sign in to comment.