summaryrefslogtreecommitdiff
path: root/dev-cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/dpp/Manifest1
-rw-r--r--dev-cpp/dpp/dpp-10.1.4.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-cpp/dpp/Manifest b/dev-cpp/dpp/Manifest
index 7bc990311b1c..aead3efb4903 100644
--- a/dev-cpp/dpp/Manifest
+++ b/dev-cpp/dpp/Manifest
@@ -1,2 +1,3 @@
DIST dpp-10.0.30.tar.gz 15726421 BLAKE2B 647571d5c7434c3b5636a66a3365d2af8b2d11c81165666d3df2b2ad36d4b61b683a8e3c7ef304fba96a4ac365365272fffa3f0d7d05f697dfe48ba7f972ced6 SHA512 4842e5e688893275e524f998bdcac1d308165a02c280f69eaa898aa8f9986a97fe687e20e3428f30777c49f1feb47905da462bbdba8c9a5ea00067e560208f91
DIST dpp-10.0.33.tar.gz 17222706 BLAKE2B b4443eade64cb6f98742d37c2cd0776b1a1a643fa86732f964488ff8835f2eee2e85553498d3b63159434a6512c9a7726eeddd0b84d8e725fb65e6bbb2290141 SHA512 69fe3323aceb4ad52ec1fcfb38a8770e88c03ae0b6cb49768441b603e13659625720d984b992311fcca8ef863d40b8b7fb082996fae2d396e785b637b673a328
+DIST dpp-10.1.4.tar.gz 21018829 BLAKE2B f984c749298a827d9ad8b2a68a2bfea1000a3715c0b5ed148be5d96f7b4d64932439b9df05618213a79e73f2ff425323837fba9549d6c22b0d07d9789ef51664 SHA512 c840f0c36babaf8a193132a56c62673092901c7814deafb4bc37753596e35bf31bd08051d79aa9b71ef439c55a327b046aea6bc4f07c984ab61204e3ff7e7ebe
diff --git a/dev-cpp/dpp/dpp-10.1.4.ebuild b/dev-cpp/dpp/dpp-10.1.4.ebuild
new file mode 100644
index 000000000000..173557983532
--- /dev/null
+++ b/dev-cpp/dpp/dpp-10.1.4.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Lightweight C++ Discord bot library"
+HOMEPAGE="https://dpp.dev/ https://github.com/brainboxdotcc/DPP"
+SRC_URI="
+ https://github.com/brainboxdotcc/DPP/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
+"
+
+S="${WORKDIR}/DPP-${PV}"
+
+LICENSE="Apache-2.0"
+# DPP is extremely ABI instable due to frequent changes in the Discord API
+# See https://github.com/brainboxdotcc/DPP/issues/207#issuecomment-1007030157
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="voice +coro"
+
+RDEPEND="
+ dev-libs/openssl:=
+ virtual/zlib:=
+
+ voice? (
+ dev-libs/libsodium:=
+ media-libs/opus
+ )
+"
+DEPEND="
+ ${RDEPEND}
+
+ dev-cpp/nlohmann_json
+"
+
+DOCS=( "README.md" "SECURITY.md" )
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_SHARED_LIBS=true
+ -DBUILD_VOICE_SUPPORT="$(usex voice)"
+ -DRUN_LDCONFIG=false
+ # Tests require network access
+ -DDPP_BUILD_TEST=false
+ -DDPP_NO_VCPKG=true
+ -DDPP_USE_EXTERNAL_JSON=true
+ -DDPP_NO_CORO="$(usex !coro)" # set DPP_NO_CORO if coroutines disabled.
+ )
+
+ cmake_src_configure
+}