commit:     bd0f0542858bfea43694ca1843ae790004978414
Author:     Pavel Sobolev <contact <AT> paveloom <DOT> dev>
AuthorDate: Wed Jul 30 19:53:29 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Sat Aug  2 10:41:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bd0f0542

dev-libs/discord-rpc: new package, add 3.4.0

Signed-off-by: Pavel Sobolev <contact <AT> paveloom.dev>

 dev-libs/discord-rpc/Manifest                      |  1 +
 dev-libs/discord-rpc/discord-rpc-3.4.0.ebuild      | 31 ++++++++++++++++++++++
 ...0-install-examples-for-RelWithDebInfo-too.patch | 19 +++++++++++++
 dev-libs/discord-rpc/metadata.xml                  | 12 +++++++++
 4 files changed, 63 insertions(+)

diff --git a/dev-libs/discord-rpc/Manifest b/dev-libs/discord-rpc/Manifest
new file mode 100644
index 0000000000..a24da06ed1
--- /dev/null
+++ b/dev-libs/discord-rpc/Manifest
@@ -0,0 +1 @@
+DIST discord-rpc-3.4.0.tar.gz 2107644 BLAKE2B 
f86f079524f3c00ff767f14b78c8826e48f66ef0867a5fdce38411b8e7b57d62c6c34f9f45c9d4fd2e5d29cb8c30af55ab92efc6b4673bcaf915a9d0287f0f65
 SHA512 
ca981b833aff5f21fd629a704deadd8e3fb5423d959ddb75e381313f6462d984c567671b10c8f031905c08d85792ddbe2dddc402ba2613c42de9e80fc68d0d51

diff --git a/dev-libs/discord-rpc/discord-rpc-3.4.0.ebuild 
b/dev-libs/discord-rpc/discord-rpc-3.4.0.ebuild
new file mode 100644
index 0000000000..3269270833
--- /dev/null
+++ b/dev-libs/discord-rpc/discord-rpc-3.4.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Library for interfacing a game with a locally running Discord 
desktop client"
+HOMEPAGE="https://github.com/discord/discord-rpc";
+SRC_URI="https://github.com/discord/discord-rpc/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="examples"
+
+DEPEND="
+       dev-libs/rapidjson
+"
+
+PATCHES=(
+       "${FILESDIR}/${PN}-3.4.0-install-examples-for-RelWithDebInfo-too.patch"
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DBUILD_EXAMPLES=$(usex examples)
+       )
+
+       cmake_src_configure
+}

diff --git 
a/dev-libs/discord-rpc/files/discord-rpc-3.4.0-install-examples-for-RelWithDebInfo-too.patch
 
b/dev-libs/discord-rpc/files/discord-rpc-3.4.0-install-examples-for-RelWithDebInfo-too.patch
new file mode 100644
index 0000000000..bdbb44ac87
--- /dev/null
+++ 
b/dev-libs/discord-rpc/files/discord-rpc-3.4.0-install-examples-for-RelWithDebInfo-too.patch
@@ -0,0 +1,19 @@
+From: Pavel Sobolev <[email protected]>
+Subject: [PATCH] Install examples for `RelWithDebInfo`, too.
+
+Signed-off-by: Pavel Sobolev <[email protected]>
+
+--- a/examples/send-presence/CMakeLists.txt
++++ b/examples/send-presence/CMakeLists.txt
+@@ -14,8 +14,8 @@ install(
+     TARGETS send-presence
+     RUNTIME
+         DESTINATION "bin"
+-        CONFIGURATIONS Release
++        CONFIGURATIONS Release RelWithDebInfo
+     BUNDLE
+         DESTINATION "bin"
+-        CONFIGURATIONS Release
++        CONFIGURATIONS Release RelWithDebInfo
+ )
+\ No newline at end of file

diff --git a/dev-libs/discord-rpc/metadata.xml 
b/dev-libs/discord-rpc/metadata.xml
new file mode 100644
index 0000000000..31a400e898
--- /dev/null
+++ b/dev-libs/discord-rpc/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>[email protected]</email>
+    <name>Pavel Sobolev</name>
+  </maintainer>
+  <upstream>
+    <bugs-to>https://github.com/discord/discord-rpc/issues</bugs-to>
+    <remote-id type="github">discord/discord-rpc</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to