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

EAPI=5

EGIT_REPO_URI="https://github.com/vysheng/tg.git"
inherit git-2
IUSE="lua"
DESCRIPTION="Command line interface client for Telegram"
HOMEPAGE="https://github.com/vysheng/tg"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""

DEPEND="sys-libs/zlib
	sys-libs/readline
	dev-libs/libconfig
	dev-libs/openssl
	lua? ( dev-lang/lua )"

src_configure() {
	econf $(use_enable lua liblua ) --with-progname=telegram-cli
}

src_install() {
	newbin telegram telegram-cli

	insinto /etc/telegram-cli/
	newins tg.pub server.pub
}