tg/gentoo/net-im/telegram-cli/telegram-cli-9999.ebuild

45 lines
926 B
Bash
Raw Permalink Normal View History

2014-02-06 09:22:21 -05:00
# 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"
2014-11-28 10:59:37 -05:00
EGIT_BRANCH="master"
EGIT_HAS_SUBMODULES=1
2014-02-06 09:22:21 -05:00
inherit git-2
IUSE="+lua +json +python"
2014-02-06 09:22:21 -05:00
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
2014-08-24 18:40:54 -04:00
dev-libs/libevent
2015-05-23 20:43:33 -04:00
lua? ( dev-lang/lua )
json? ( dev-libs/jansson )
2015-05-23 20:43:33 -04:00
python? ( dev-lang/python )"
2014-02-06 09:22:21 -05:00
2014-11-28 10:59:37 -05:00
src_unpack() {
git-2_src_unpack
cd $EGIT_SOURCEDIR
git submodule update --init --recursive
}
2014-02-06 09:22:21 -05:00
src_configure() {
2014-08-22 07:50:21 -04:00
econf $(use_enable lua liblua )
2015-05-23 20:43:33 -04:00
econf $(use_enable python python )
econf $(use_enable json json )
2014-02-06 09:22:21 -05:00
}
src_install() {
2014-08-24 18:40:54 -04:00
newbin bin/telegram-cli telegram-cli
2014-02-06 09:22:21 -05:00
insinto /etc/telegram-cli/
2014-03-16 08:44:44 -04:00
newins tg-server.pub server.pub
2014-02-06 09:22:21 -05:00
}