-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathtelegram-cli-9999.ebuild
More file actions
44 lines (37 loc) · 926 Bytes
/
Copy pathtelegram-cli-9999.ebuild
File metadata and controls
44 lines (37 loc) · 926 Bytes
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
# 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"
EGIT_BRANCH="master"
EGIT_HAS_SUBMODULES=1
inherit git-2
IUSE="+lua +json +python"
DESCRIPTION="Command line interface client for Telegram"
HOMEPAGE="https://github.com/vysheng/tg"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="sys-libs/zlib
sys-libs/readline
dev-libs/libconfig
dev-libs/openssl
dev-libs/libevent
lua? ( dev-lang/lua )
json? ( dev-libs/jansson )
python? ( dev-lang/python )"
src_unpack() {
git-2_src_unpack
cd $EGIT_SOURCEDIR
git submodule update --init --recursive
}
src_configure() {
econf $(use_enable lua liblua )
econf $(use_enable python python )
econf $(use_enable json json )
}
src_install() {
newbin bin/telegram-cli telegram-cli
insinto /etc/telegram-cli/
newins tg-server.pub server.pub
}