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

[DPP] Add new port #25949

Merged
merged 13 commits into from
Jul 26, 2022
28 changes: 28 additions & 0 deletions ports/dpp/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO brainboxdotcc/DPP
REF 5075759fb5645d7a56e14ee52a8d36721f7a8015
SHA512 5bbb74c4b7ff3709c83656d297c49210d2ea52bb505fecb980adb732a045784cb463ca9dccb948e8c018cbf9df8328551cda600867cf42de119ce696aaa9346c
HEAD_REF master
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)

vcpkg_cmake_install()

vcpkg_cmake_config_fixup(NO_PREFIX_CORRECTION)
braindigitalis marked this conversation as resolved.
Show resolved Hide resolved

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share/dpp")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")

if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
endif()

file(
INSTALL "${SOURCE_PATH}/LICENSE"
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}"
RENAME copyright
)
23 changes: 23 additions & 0 deletions ports/dpp/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "dpp",
"version-date": "2022-07-24",
braindigitalis marked this conversation as resolved.
Show resolved Hide resolved
"description": "D++ Extremely Lightweight C++ Discord Library.",
"homepage": "dpp.dev/",
braindigitalis marked this conversation as resolved.
Show resolved Hide resolved
"license": "Apache-2.0",
"supports": "(windows & !static & !uwp) | linux | osx",
"dependencies": [
"libsodium",
"nlohmann-json",
"openssl",
"opus",
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
"zlib"
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1972,6 +1972,10 @@
"baseline": "22.03",
"port-version": 1
},
"dpp": {
"baseline": "2022-07-24",
"port-version": 0
},
"draco": {
"baseline": "1.5.2",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/d-/dpp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "129c1a7c3c79effa509e6b7071e1bfdc22b9ac7e",
"version-date": "2022-07-24",
"port-version": 0
}
]
}