mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-libs/discord-rpc: new package, add 3.4.0
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
1
dev-libs/discord-rpc/Manifest
Normal file
1
dev-libs/discord-rpc/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST discord-rpc-3.4.0.tar.gz 2107644 BLAKE2B f86f079524f3c00ff767f14b78c8826e48f66ef0867a5fdce38411b8e7b57d62c6c34f9f45c9d4fd2e5d29cb8c30af55ab92efc6b4673bcaf915a9d0287f0f65 SHA512 ca981b833aff5f21fd629a704deadd8e3fb5423d959ddb75e381313f6462d984c567671b10c8f031905c08d85792ddbe2dddc402ba2613c42de9e80fc68d0d51
|
||||
31
dev-libs/discord-rpc/discord-rpc-3.4.0.ebuild
Normal file
31
dev-libs/discord-rpc/discord-rpc-3.4.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
From: Pavel Sobolev <contact@paveloom.dev>
|
||||
Subject: [PATCH] Install examples for `RelWithDebInfo`, too.
|
||||
|
||||
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
|
||||
|
||||
--- 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
|
||||
12
dev-libs/discord-rpc/metadata.xml
Normal file
12
dev-libs/discord-rpc/metadata.xml
Normal file
@@ -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>contact@paveloom.dev</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>
|
||||
Reference in New Issue
Block a user