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 d9eb0083c7d4f3bb188ac4fde12f3af9a4443696
SHA512 5b6514a1152d566bba8959f2e51284142d57eec086e634a2b33a08186ee5cb5800a6244d92b9c8e367b60a542ed75b4401f4d68b510f16226633b958aa4aeefa
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": "10.0.15",
"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": "10.0.15",
"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": "dcbf9e1fe5ed0da9ad205de49494218f53b42b0e",
"version": "10.0.15",
"port-version": 0
}
]
}