2015-12-23 12:07:54 -05:00
|
|
|
# Copyright 1999-2013 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
2017-02-05 18:36:10 -05:00
|
|
|
EGIT_REPO_URI="https://austenwares.com/gitea/applications/tg"
|
2015-12-23 12:07:54 -05:00
|
|
|
EGIT_BRANCH="master"
|
|
|
|
EGIT_HAS_SUBMODULES=1
|
2017-01-18 11:02:10 -05:00
|
|
|
inherit eutils git-2
|
2015-12-23 12:07:54 -05:00
|
|
|
IUSE="+lua +json +python"
|
|
|
|
DESCRIPTION="Command line interface client for Telegram"
|
2017-02-05 18:36:10 -05:00
|
|
|
HOMEPAGE="https://austenwares.com/gitea/applications/tg"
|
2015-12-23 12:07:54 -05:00
|
|
|
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 )"
|
|
|
|
|
2017-01-16 00:10:23 -05:00
|
|
|
src_prepare() {
|
|
|
|
einfo "Patching so channels don't beep"
|
|
|
|
epatch "${FILESDIR}/tg-no-channel-beep.patch"
|
2017-01-18 11:02:10 -05:00
|
|
|
epatch_user
|
2017-01-16 00:10:23 -05:00
|
|
|
}
|
|
|
|
|
2015-12-23 12:07:54 -05:00
|
|
|
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
|
|
|
|
}
|