x11-plugins/purple-hangouts: add live ebuild.
authorStefan Strogin <stefan.strogin@gmail.com>
Thu, 1 Nov 2018 20:52:55 +0000 (22:52 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Sat, 10 Nov 2018 22:42:38 +0000 (23:42 +0100)
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Stefan Strogin <stefan.strogin@gmail.com>
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
x11-plugins/purple-hangouts/purple-hangouts-9999.ebuild [new file with mode: 0644]

diff --git a/x11-plugins/purple-hangouts/purple-hangouts-9999.ebuild b/x11-plugins/purple-hangouts/purple-hangouts-9999.ebuild
new file mode 100644 (file)
index 0000000..2a8db6f
--- /dev/null
@@ -0,0 +1,45 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs mercurial
+
+DESCRIPTION="Hangouts Plugin for libpurple"
+HOMEPAGE="https://bitbucket.org/EionRobb/purple-hangouts"
+EHG_REPO_URI="https://bitbucket.org/EionRobb/purple-hangouts"
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+RDEPEND="
+       dev-libs/glib:2
+       dev-libs/json-glib
+       dev-libs/protobuf-c:=
+       net-im/pidgin
+       sys-libs/zlib"
+
+DEPEND="${RDEPEND}
+       virtual/pkgconfig"
+
+src_prepare() {
+       default
+
+       # Does not respect CFLAGS
+       sed -i Makefile -e 's/-g -ggdb//g' || die
+}
+
+src_compile() {
+       emake \
+               CC="$(tc-getCC)" \
+               PKG_CONFIG="$(tc-getPKG_CONFIG)"
+}
+
+src_install() {
+       emake \
+               PKG_CONFIG="$(tc-getPKG_CONFIG)" \
+               DESTDIR="${ED}" \
+               install
+
+       einstalldocs
+}