blob: 28bbd2e5f895a7a3ecb943924e0fe6438e0ffb32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit toolchain-funcs git-r3
DESCRIPTION="Steam protocol plugin for pidgin"
HOMEPAGE="https://github.com/eionrobb/pidgin-opensteamworks"
EGIT_REPO_URI="git://github.com/EionRobb/${PN}.git
https://github.com/EionRobb/${PN}.git"
EGIT_BOOTSTRAP=""
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="gnutls"
RDEPEND="dev-libs/glib:2
dev-libs/json-glib
dev-libs/nss
gnome-base/libgnome-keyring
gnutls? ( net-im/pidgin[gnutls] )
!gnutls? ( net-im/pidgin[-gnutls] )"
DEPEND="${RDEPEND}
app-arch/unzip
virtual/pkgconfig"
S=${WORKDIR}
pkg_setup() {
if [[ ${MERGE_TYPE} != binary ]]; then
tc-export CC PKG_CONFIG
fi
}
src_prepare() {
unzip "${S}"/steam-mobile/releases/icons.zip || die
}
src_configure() {
if use gnutls; then
export STEAM_CRYPT_BACKEND="gcrypt"
else
export STEAM_CRYPT_BACKEND="nss"
fi
}
src_compile() {
pushd "${S}"/steam-mobile || die
default
popd || die
}
src_install() {
pushd "${S}"/steam-mobile || die
default
popd || die
insinto /usr/share/pixmaps/pidgin/protocols
doins -r "${WORKDIR}"/{16,48}
dodoc "${S}/README.md"
}
|