Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sleepy-discord] Add new port #17604

Merged
merged 28 commits into from
Jul 7, 2021
Merged
Show file tree
Hide file tree
Changes from 23 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f5a7bd8
New port sleepy-discord
yourWaifu May 1, 2021
46671ad
Add versions for Sleepy Discord
yourWaifu May 1, 2021
e5010b0
SleepyDiscord: use website as homepage
yourWaifu May 1, 2021
77f8f7e
SleepyDiscord: Remove No newline at end git diff
yourWaifu May 1, 2021
03237cd
SleepyDiscord: format manifest
yourWaifu May 1, 2021
d638d8e
SleepyDiscord: rerun x-add-version
yourWaifu May 2, 2021
4bb8300
SleepyDiscord: add compression feature
yourWaifu May 2, 2021
f7edd5e
SleepyDiscord: Update version string
yourWaifu May 2, 2021
3d01760
SleepyDiscord: rerun x-add-version again
yourWaifu May 2, 2021
9f70801
SleepyDiscord: set version-date
yourWaifu May 4, 2021
2da2bc5
SleepyDiscord: rerun add-version
yourWaifu May 4, 2021
cc143b4
SleepyDiscord: Add requested changes
yourWaifu May 8, 2021
51171f1
SleepyDiscord: run add version
yourWaifu May 8, 2021
9d201e1
SleepyDiscord: update library
yourWaifu May 8, 2021
b3cbdf9
SleepyDiscord: rerun x-add-version
yourWaifu May 8, 2021
b0cbe8e
SleepyDiscord: copy config file to share folder
yourWaifu May 20, 2021
f457f57
SleepyDiscord: run add-version
yourWaifu May 20, 2021
df221fd
SleepyDiscord: Fix issue with parallel configuring
yourWaifu May 21, 2021
858e2e6
SleepyDiscord: x-add-version
yourWaifu May 21, 2021
51941a0
SleepyDiscord: replace deprecated functions
yourWaifu Jun 3, 2021
22f9ce1
SleepyDiscord: x-add-version
yourWaifu Jun 3, 2021
17b5658
SleepyDiscord: Install config during configure
yourWaifu Jun 24, 2021
cbcf5f7
SleepyDiscord: x-add-version
yourWaifu Jun 24, 2021
b8908ef
Merge branch 'master' into master
yourWaifu Jun 30, 2021
a1511d8
[sleepy-discord] update: add Select Menus
yourWaifu Jul 7, 2021
a3c6c2b
[sleepy-discord] run add-version
yourWaifu Jul 7, 2021
574650a
Merge branch 'master' of github.com:yourWaifu/vcpkg into yourwaifu
yourWaifu Jul 7, 2021
90e4160
[sleepy-discord] rerun add-verion
yourWaifu Jul 7, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions ports/sleepy-discord/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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 1d818e1084b85e56b8ab99852f79b974d615c66d
SHA512 b137ba378c00d476d1bb725c9d52801b5e0114f96743f842b7b8332ed2050185dd49a58efff233c91217abb1e31b8a35d37f8a45f6497d96953bbb38c77ea202
HEAD_REF develop
)

# Handle version data here to prevent issues from doing this twice in parallel
set(SLEEPY_DISCORD_VERSION_HASH 1d818e1084b85e56b8ab99852f79b974d615c66d)
set(SLEEPY_DISCORD_VERSION_BUILD 905)
set(SLEEPY_DISCORD_VERSION_BRANCH "develop")
set(SLEEPY_DISCORD_VERSION_IS_MASTER 0)
set(SLEEPY_DISCORD_VERSION_DESCRIPTION_CONCAT " ")
set(SLEEPY_DISCORD_VERSION_DESCRIPTION "1d818e1")
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 changes: 44 additions & 0 deletions ports/sleepy-discord/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"name": "sleepy-discord",
"version-date": "2021-05-02",
"description": "C++ library for the Discord chat client",
"homepage": "https://yourwaifu.dev/sleepy-discord/",
"dependencies": [
{
"name": "vcpkg-cmake",
"host": true
}
],
"default-features": [
"cpr",
"websocketpp"
],
Comment on lines +12 to +15
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do these need to be on-by-default? Does it ever make sense for them to be disabled?

Copy link
Contributor Author

@yourWaifu yourWaifu May 3, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a very rare case, where you might need to replace these libraries depending on the hardware you want to run on. However, I gave it some thought and I can replace this with a feature called "core-only" that turns these off, removes the the default features thing, and doesn't depend on other dependences.

Copy link
Contributor Author

@yourWaifu yourWaifu May 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I'm not sure how to add a feature that removes dependencies.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Features are there to extend something, never to reduce something. So you can't remove dependencies with features.

"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"
yourWaifu marked this conversation as resolved.
Show resolved Hide resolved
]
},
"websocketpp": {
"description": "Use Websocketpp for handling WebSockets",
"dependencies": [
"boost-random",
"websocketpp"
]
}
}
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -5628,6 +5628,10 @@
"baseline": "1.13.0",
"port-version": 0
},
"sleepy-discord": {
"baseline": "2021-05-02",
"port-version": 0
},
"slikenet": {
"baseline": "2019-10-22-2",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/s-/sleepy-discord.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "0d9d62b7213333d04c90878bb1e6573ad3f5316f",
"version-date": "2021-05-02",
"port-version": 0
}
]
}