* Add port kissnet

* Small fixes again according to the GitHub bot

* Update ports/kissnet/portfile.cmake

Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>

* Bump port version

* Update ports/kissnet/portfile.cmake

Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>

* Overwrite version

* Only copy header and add usage

* Add version

* Update ports/kissnet/portfile.cmake

Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>

* version

* vdb

* Add quotes, remove 'add 1 to x' comments.

Co-authored-by: Frank <65999885+FrankXie05@users.noreply.github.com>
Co-authored-by: FrankXie <v-frankxie@microsoft.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
BullyWiiPlaza 2022-11-15 06:32:25 +01:00 коммит произвёл GitHub
Родитель 1ecdbe80b3
Коммит 41b95a3c7d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 48 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,14 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Ybalrid/kissnet
REF 6c2bbbc1a114d83f11cea86d4370766ac12fbbd0 # 2022-10-18
SHA512 40182631e1c32628380369b7f8ca4dbae2049b0c0480396efb6a8197cca5006c8b68bc64553182c129ef8366a52a2434fd4f134bf5ffa1c0303af80b2e2a8cee
HEAD_REF master
)
# Install the header-only library
file(INSTALL "${SOURCE_PATH}/kissnet.hpp"
DESTINATION "${CURRENT_PACKAGES_DIR}/include")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")

4
ports/kissnet/usage Normal file
Просмотреть файл

@ -0,0 +1,4 @@
The package kissnet is header only and can be used from CMake via:
find_path(KISSNET_INCLUDE_DIRS "kissnet.hpp")
target_include_directories(main PRIVATE ${KISSNET_INCLUDE_DIRS})

17
ports/kissnet/vcpkg.json Normal file
Просмотреть файл

@ -0,0 +1,17 @@
{
"name": "kissnet",
"version-date": "2022-10-18",
"description": "Keep It Simple Stupid NETwork - C++17 wrapping of your OS's native socket API",
"homepage": "https://github.com/Ybalrid/kissnet",
"license": "MIT",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

Просмотреть файл

@ -3436,6 +3436,10 @@
"baseline": "2021-11-14",
"port-version": 0
},
"kissnet": {
"baseline": "2022-10-18",
"port-version": 0
},
"klein": {
"baseline": "2021-05-09",
"port-version": 0

9
versions/k-/kissnet.json Normal file
Просмотреть файл

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "a8b6b18919cd26da45a720b5fb0b22fcc0282180",
"version-date": "2022-10-18",
"port-version": 0
}
]
}