mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 22:58:00 +08:00
[sleepy-discord] Add new port (#17604)
* New port sleepy-discord * Add versions for Sleepy Discord * SleepyDiscord: use website as homepage * SleepyDiscord: Remove No newline at end git diff * SleepyDiscord: format manifest * SleepyDiscord: rerun x-add-version * SleepyDiscord: add compression feature * SleepyDiscord: Update version string * SleepyDiscord: rerun x-add-version again * SleepyDiscord: set version-date * SleepyDiscord: rerun add-version * SleepyDiscord: Add requested changes * SleepyDiscord: run add version * SleepyDiscord: update library * SleepyDiscord: rerun x-add-version * SleepyDiscord: copy config file to share folder * SleepyDiscord: run add-version * SleepyDiscord: Fix issue with parallel configuring * SleepyDiscord: x-add-version * SleepyDiscord: replace deprecated functions * SleepyDiscord: x-add-version * SleepyDiscord: Install config during configure * SleepyDiscord: x-add-version * [sleepy-discord] update: add Select Menus * [sleepy-discord] run add-version * [sleepy-discord] rerun add-verion
This commit is contained in:
parent
c55570ee66
commit
335a3c73c8
43
ports/sleepy-discord/portfile.cmake
Normal file
43
ports/sleepy-discord/portfile.cmake
Normal file
@ -0,0 +1,43 @@
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
"websocketpp" USE_WEBSOCKETPP
|
||||
"websocketpp" USE_BOOST_ASIO
|
||||
"cpr" USE_CPR
|
||||
"voice" ENABLE_VOICE
|
||||
"compression" USE_ZLIB
|
||||
)
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO yourWaifu/sleepy-discord
|
||||
REF 53e68d6a569ab6da17b74279e308bf94919db933
|
||||
SHA512 1ee6de7aa70f3d7fc6ec0e21f5e65c6a868c23a29b4f26f614b59bbce3425c1305ce192562bf287d40f98060301b8638bc4bef95789fe8594ce5809adb6dc1e5
|
||||
HEAD_REF develop
|
||||
)
|
||||
|
||||
# Handle version data here to prevent issues from doing this twice in parallel
|
||||
set(SLEEPY_DISCORD_VERSION_HASH 53e68d6a569ab6da17b74279e308bf94919db933)
|
||||
set(SLEEPY_DISCORD_VERSION_BUILD 908)
|
||||
set(SLEEPY_DISCORD_VERSION_BRANCH "develop")
|
||||
set(SLEEPY_DISCORD_VERSION_IS_MASTER 0)
|
||||
set(SLEEPY_DISCORD_VERSION_DESCRIPTION_CONCAT " ")
|
||||
set(SLEEPY_DISCORD_VERSION_DESCRIPTION "53e68d6")
|
||||
configure_file(
|
||||
"${SOURCE_PATH}/include/sleepy_discord/version.h.in"
|
||||
"${SOURCE_PATH}/include/sleepy_discord/version.h"
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DSLEEPY_VCPKG=ON
|
||||
-DAUTO_DOWNLOAD_LIBRARY=OFF
|
||||
${FEATURE_OPTIONS}
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/sleepy-discord)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
44
ports/sleepy-discord/vcpkg.json
Normal file
44
ports/sleepy-discord/vcpkg.json
Normal file
@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "sleepy-discord",
|
||||
"version-date": "2021-07-07",
|
||||
"description": "C++ library for the Discord chat client",
|
||||
"homepage": "https://yourwaifu.dev/sleepy-discord/",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"default-features": [
|
||||
"cpr",
|
||||
"websocketpp"
|
||||
],
|
||||
"features": {
|
||||
"compression": {
|
||||
"description": "Allow compression for Websockets connection",
|
||||
"dependencies": [
|
||||
"zlib"
|
||||
]
|
||||
},
|
||||
"cpr": {
|
||||
"description": "Use CPR library for handling HTTPS",
|
||||
"dependencies": [
|
||||
"cpr"
|
||||
]
|
||||
},
|
||||
"voice": {
|
||||
"description": "Voice Chat support",
|
||||
"dependencies": [
|
||||
"libsodium",
|
||||
"opus"
|
||||
]
|
||||
},
|
||||
"websocketpp": {
|
||||
"description": "Use Websocketpp for handling WebSockets",
|
||||
"dependencies": [
|
||||
"boost-random",
|
||||
"websocketpp"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
@ -5816,6 +5816,10 @@
|
||||
"baseline": "3.5.1",
|
||||
"port-version": 0
|
||||
},
|
||||
"sleepy-discord": {
|
||||
"baseline": "2021-07-07",
|
||||
"port-version": 0
|
||||
},
|
||||
"slikenet": {
|
||||
"baseline": "2019-10-22-2",
|
||||
"port-version": 0
|
||||
|
14
versions/s-/sleepy-discord.json
Normal file
14
versions/s-/sleepy-discord.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "9ef84b8cb8cdd5d278b005a551044a6635490bda",
|
||||
"version-date": "2021-07-07",
|
||||
"port-version": 0
|
||||
},
|
||||
{
|
||||
"git-tree": "0d9d62b7213333d04c90878bb1e6573ad3f5316f",
|
||||
"version-date": "2021-05-02",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user