2023-07-06 00:16:45 +02:00
|
|
|
# Copyright 1999-2023 Gentoo Authors
|
2021-01-02 19:49:56 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2023-07-06 00:16:45 +02:00
|
|
|
EAPI=8
|
2021-01-02 19:49:56 +01:00
|
|
|
|
|
|
|
DESCRIPTION="Pidgin/Purple PRotocol PLugin for Discord"
|
|
|
|
HOMEPAGE="https://github.com/EionRobb/purple-discord"
|
2023-07-06 00:16:45 +02:00
|
|
|
|
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/EionRobb/${PN}.git"
|
|
|
|
else
|
|
|
|
COMMIT="4a091883e646f2c103ae68c41d04b1b880e8d0bf"
|
|
|
|
SRC_URI="https://github.com/EionRobb/purple-discord/archive/${COMMIT}.tar.gz"
|
|
|
|
S="${WORKDIR}/${PN}-${COMMIT}"
|
|
|
|
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
2021-01-02 19:49:56 +01:00
|
|
|
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
2023-07-06 00:16:45 +02:00
|
|
|
|
|
|
|
IUSE="+qrcode"
|
2021-01-02 19:49:56 +01:00
|
|
|
|
|
|
|
RDEPEND="
|
2023-07-06 00:16:45 +02:00
|
|
|
dev-libs/glib:2
|
2021-01-02 19:49:56 +01:00
|
|
|
dev-libs/json-glib
|
2023-07-06 00:16:45 +02:00
|
|
|
dev-libs/nss
|
|
|
|
net-im/pidgin:=
|
|
|
|
sys-libs/zlib
|
|
|
|
virtual/libintl
|
|
|
|
qrcode? ( media-gfx/qrencode:= )
|
2021-01-02 19:49:56 +01:00
|
|
|
"
|
|
|
|
DEPEND="${RDEPEND}"
|
2023-07-06 00:16:45 +02:00
|
|
|
BDEPEND="
|
|
|
|
media-gfx/imagemagick[png]
|
|
|
|
sys-devel/gettext
|
|
|
|
"
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
emake USE_QRCODE_AUTH=$(usex qrcode 1 0)
|
|
|
|
}
|