mirror of https://github.com/microsoft/vcpkg.git
[kubernetes] Kubernetes C Client (#20255)
* Kubernetes C Client's port * Kubernetes C Client's port * Replace deprecated methods * Add version file * Remove extra include directories * Fix version * Use vcpkg_from_github with a valid hash Remove usage file * Fix Aws Crypto Abstraction Layer and S2N builds * Update library version * Update library version * Update ports/kubernetes/vcpkg.json Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * Update ports/kubernetes/portfile.cmake Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * Update ports/kubernetes/vcpkg.json Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * Update version Co-authored-by: Ahmed Yarub Hani Al Nuaimi <ahmed.alnuaimi@zwift.com> Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
This commit is contained in:
parent
70626f098f
commit
48aeaba25e
|
|
@ -0,0 +1,12 @@
|
|||
diff --git a/kubernetes/CMakeLists.txt b/kubernetes/CMakeLists.txt
|
||||
--- a/kubernetes/CMakeLists.txt (revision 6b98698c92c59d8c63815f74ed4183fc36cde37b)
|
||||
+++ b/kubernetes/CMakeLists.txt (date 1632055519986)
|
||||
@@ -1563,7 +1563,7 @@
|
||||
install(TARGETS ${pkgName} DESTINATION ${CMAKE_INSTALL_PREFIX})
|
||||
else()
|
||||
include(GNUInstallDirs)
|
||||
- install(TARGETS ${pkgName} DESTINATION ${CMAKE_INSTALL_PREFIX} EXPORT ${pkgName}Targets)
|
||||
+ install(TARGETS ${pkgName} EXPORT ${pkgName}Targets)
|
||||
|
||||
foreach(HDR_FILE ${HDRS})
|
||||
get_filename_component(HDR_DIRECTORY ${HDR_FILE} DIRECTORY)
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
vcpkg_fail_port_install(ON_TARGET "UWP")
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO kubernetes-client/c
|
||||
REF ecc9efc23656e747e97f86fbe2810f7e8471990f
|
||||
SHA512 e9bb1b6f68aacd82df2b33fcb432fdfee5fb56e0426835f8480afff1c2545f483eb0f4edeafb2e866ea74918d748aa48655b5819909c13a88f693e371047e8b7
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
001-fix-destination.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}/kubernetes
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
if (NOT VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL debug)
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
endif()
|
||||
|
||||
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"name": "kubernetes",
|
||||
"version": "0.0.1",
|
||||
"description": "Kubernetes C client",
|
||||
"homepage": "https://github.com/kubernetes-client/c/",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
"curl",
|
||||
"libwebsockets",
|
||||
"libyaml",
|
||||
"openssl",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
@ -3100,6 +3100,10 @@
|
|||
"baseline": "0.1.19",
|
||||
"port-version": 1
|
||||
},
|
||||
"kubernetes": {
|
||||
"baseline": "0.0.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"kuku": {
|
||||
"baseline": "2.1",
|
||||
"port-version": 1
|
||||
|
|
|
|||
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "d52624c3f3a26d3ad801cca6af68e7bd8273b29b",
|
||||
"version": "0.0.1",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue