summaryrefslogtreecommitdiff
path: root/dev-cpp/dpp
diff options
context:
space:
mode:
Diffstat (limited to 'dev-cpp/dpp')
-rw-r--r--dev-cpp/dpp/Manifest4
-rw-r--r--dev-cpp/dpp/dpp-10.0.30.ebuild53
-rw-r--r--dev-cpp/dpp/dpp-10.0.33.ebuild53
-rw-r--r--dev-cpp/dpp/dpp-10.1.4.ebuild52
-rw-r--r--dev-cpp/dpp/dpp-10.1.5.ebuild52
-rw-r--r--dev-cpp/dpp/metadata.xml19
6 files changed, 233 insertions, 0 deletions
diff --git a/dev-cpp/dpp/Manifest b/dev-cpp/dpp/Manifest
new file mode 100644
index 000000000000..ef5854555c43
--- /dev/null
+++ b/dev-cpp/dpp/Manifest
@@ -0,0 +1,4 @@
+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
+DIST dpp-10.1.5.tar.gz 21026323 BLAKE2B 3cb7082a06e4f50bbd252bac3c519e5dd54747f2257c228dcf082cc5399e0a4064069598e383baeb9303e7de500445b626f11d80995cfb600767e99f273a28a5 SHA512 e9c34449c4746c015cbec667d99905c4064f43c379a2280e0d5eddad4b446ee26c6c67acb162d9dcbf73cf2400b0e9b75a45bf1716982ef96e88d34d9e1f8b74
diff --git a/dev-cpp/dpp/dpp-10.0.30.ebuild b/dev-cpp/dpp/dpp-10.0.30.ebuild
new file mode 100644
index 000000000000..717fcce9da3f
--- /dev/null
+++ b/dev-cpp/dpp/dpp-10.0.30.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_CORO="$(usex coro)"
+ )
+
+ cmake_src_configure
+}
diff --git a/dev-cpp/dpp/dpp-10.0.33.ebuild b/dev-cpp/dpp/dpp-10.0.33.ebuild
new file mode 100644
index 000000000000..717fcce9da3f
--- /dev/null
+++ b/dev-cpp/dpp/dpp-10.0.33.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_CORO="$(usex coro)"
+ )
+
+ cmake_src_configure
+}
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..b7c7d00f8265
--- /dev/null
+++ b/dev-cpp/dpp/dpp-10.1.4.ebuild
@@ -0,0 +1,52 @@
+# 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? (
+ 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
+}
diff --git a/dev-cpp/dpp/dpp-10.1.5.ebuild b/dev-cpp/dpp/dpp-10.1.5.ebuild
new file mode 100644
index 000000000000..b7c7d00f8265
--- /dev/null
+++ b/dev-cpp/dpp/dpp-10.1.5.ebuild
@@ -0,0 +1,52 @@
+# 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? (
+ 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
+}
diff --git a/dev-cpp/dpp/metadata.xml b/dev-cpp/dpp/metadata.xml
new file mode 100644
index 000000000000..1e20241ef7f4
--- /dev/null
+++ b/dev-cpp/dpp/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <name>Filip Hoffmann</name>
+ <email>folosp2@gmail.com</email>
+ </maintainer>
+ <maintainer type="person">
+ <name>Samuel Hautamäki</name>
+ <email>reachme@samuelhautamaki.eu</email>
+ </maintainer>
+ <use>
+ <flag name="voice">Enable voice-chat support</flag>
+ <flag name="coro">Enable coroutine support</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">brainboxdotcc/dpp</remote-id>
+ </upstream>
+</pkgmetadata>