aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorSleepy Flower Girl <wuhao64@gmail.com>2021-07-07 18:06:54 -0400
committerGitHub <noreply@github.com>2021-07-07 15:06:54 -0700
commit335a3c73c8c0508bcebb24f384375b7079dc7098 (patch)
tree80925c4be43083a5beb219adb5b5eee96b79a1c6 /ports
parentc55570ee6696bea297efa35829a118a05bf59b07 (diff)
downloadvcpkg-335a3c73c8c0508bcebb24f384375b7079dc7098.tar.gz
vcpkg-335a3c73c8c0508bcebb24f384375b7079dc7098.zip
[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
Diffstat (limited to 'ports')
-rw-r--r--ports/sleepy-discord/portfile.cmake43
-rw-r--r--ports/sleepy-discord/vcpkg.json44
2 files changed, 87 insertions, 0 deletions
diff --git a/ports/sleepy-discord/portfile.cmake b/ports/sleepy-discord/portfile.cmake
new file mode 100644
index 000000000..b59a2779f
--- /dev/null
+++ b/ports/sleepy-discord/portfile.cmake
@@ -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)
diff --git a/ports/sleepy-discord/vcpkg.json b/ports/sleepy-discord/vcpkg.json
new file mode 100644
index 000000000..2e4ff128e
--- /dev/null
+++ b/ports/sleepy-discord/vcpkg.json
@@ -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"
+ ]
+ }
+ }
+}