summaryrefslogtreecommitdiff
path: root/net-misc/toxbot/toxbot-9999.ebuild
blob: a6b526935c90d0b60a27e5b47a85d29bde7e8ddc (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit eutils git-2 toolchain-funcs

DESCRIPTION="Tox groupchats bot"
HOMEPAGE="https://github.com/JFreegman/ToxBot"
SRC_URI=""
EGIT_REPO_URI="git://github.com/JFreegman/ToxBot.git"

LICENSE="GPL-3"
SLOT="0"
IUSE=""

RDEPEND="net-libs/tox[av]"

DEPEND="${RDEPEND}
	virtual/pkgconfig"

src_prepare() {
	# Verbose build
	sed -i \
			-e 's/@$(CC)/$(CC)/' \
			Makefile || die
	epatch_user
}

src_compile() {
	emake \
		CC="$(tc-getCC)" \
		USER_CFLAGS="${CFLAGS}" \
		USER_LDFLAGS="${LDFLAGS}"
}

src_install() {
	dobin "${S}/toxbot"
}