From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 49B93158010 for ; Fri, 6 Jan 2023 08:51:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 352D9E07C5; Fri, 6 Jan 2023 08:51:37 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 18B0CE07AE for ; Fri, 6 Jan 2023 08:51:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E62BB340CD8 for ; Fri, 6 Jan 2023 08:51:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 608D876F for ; Fri, 6 Jan 2023 08:51:34 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1672839260.aa0b0d773661a5dda6832b77fb5cff5e4adb8d6c.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-cpp/dpp/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-cpp/dpp/Manifest dev-cpp/dpp/dpp-10.0.21.ebuild dev-cpp/dpp/metadata.xml X-VCS-Directories: dev-cpp/dpp/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: aa0b0d773661a5dda6832b77fb5cff5e4adb8d6c X-VCS-Branch: master Date: Fri, 6 Jan 2023 08:51:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 559d836a-dc03-4585-8733-f76373d8711e X-Archives-Hash: 67decb75f22c181a8eb94b5e79747920 commit: aa0b0d773661a5dda6832b77fb5cff5e4adb8d6c Author: Adrian Schollmeyer nexadn de> AuthorDate: Wed Jan 4 13:34:20 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Wed Jan 4 13:34:20 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=aa0b0d77 dev-cpp/dpp: new package, add 10.0.21 Signed-off-by: Adrian Schollmeyer nexadn.de> dev-cpp/dpp/Manifest | 2 ++ dev-cpp/dpp/dpp-10.0.21.ebuild | 63 ++++++++++++++++++++++++++++++++++++++++++ dev-cpp/dpp/metadata.xml | 17 ++++++++++++ 3 files changed, 82 insertions(+) diff --git a/dev-cpp/dpp/Manifest b/dev-cpp/dpp/Manifest new file mode 100644 index 000000000..04fa1afc4 --- /dev/null +++ b/dev-cpp/dpp/Manifest @@ -0,0 +1,2 @@ +DIST dpp-10.0.21-fix-install.patch 4090 BLAKE2B b4177190fb620952619ed5a0e4147a9adde4871f00643129b1f1140152718816cbcc1099c25e0b350c65ede56c2c5f373aeaf6345c382ba953c3ad32e9e3f2fd SHA512 8dd9a5f7db0097bc7de8e0a50253bc144786786331e3cfbfb00884925c41746e7a81bd2f87254d3bcc8d72bb820415bd92013cd0968950533bffa382bc53f279 +DIST dpp-10.0.21.tar.gz 13706441 BLAKE2B e7e68d4d121d17ad840790f14375ddc4e3c95c56ced03a90667b8b838205f3e46162bc9d60ea33d50a619335c7395318a9dd47583eddca3e73481879fe35f393 SHA512 a335886cdde5772b5602426e68c50d91e921cd127bcb918066c450b39fc5b0cf87ae692096140e76176d87265bd0d9de1fbb9d808a1f217dc2c8ef27210ad57f diff --git a/dev-cpp/dpp/dpp-10.0.21.ebuild b/dev-cpp/dpp/dpp-10.0.21.ebuild new file mode 100644 index 000000000..f8bb48f57 --- /dev/null +++ b/dev-cpp/dpp/dpp-10.0.21.ebuild @@ -0,0 +1,63 @@ +# Copyright 2023 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 + https://patch-diff.githubusercontent.com/raw/brainboxdotcc/DPP/pull/591.patch -> ${P}-fix-install.patch +" + +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" + +RDEPEND=" + dev-libs/openssl:= + sys-libs/zlib:= + + voice? ( + dev-libs/libsodium:= + media-libs/opus + ) +" +DEPEND="${RDEPEND}" + +PATCHES=( + # Backport of the installation fixes, remove after 10.0.21 + "${DISTDIR}/${P}-fix-install.patch" +) + +S="${WORKDIR}/DPP-${PV}" + +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 + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + # Installation fix, remove after 10.0.21 + mv \ + "${ED}"/usr/$(get_libdir)/cmake/dpp/libdpp-config.cmake \ + "${ED}"/usr/$(get_libdir)/cmake/dpp/dpp-config.cmake \ + || die "Failed to fix libdpp.cmake file name" +} diff --git a/dev-cpp/dpp/metadata.xml b/dev-cpp/dpp/metadata.xml new file mode 100644 index 000000000..fe0768594 --- /dev/null +++ b/dev-cpp/dpp/metadata.xml @@ -0,0 +1,17 @@ + + + + + nex+b-g-o@nexadn.de + Adrian Schollmeyer + + + samuel@seals-are-bouncy.tech + + + Enable voice-chat support + + + brainboxdotcc/dpp + +