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 +Subject: [PATCH] Install examples for `RelWithDebInfo`, too. + +Signed-off-by: Pavel Sobolev + +--- 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 @@ + + + + + contact@paveloom.dev + Pavel Sobolev + + + https://github.com/discord/discord-rpc/issues + discord/discord-rpc + +