telegram-cli-9999.ebuild (801B)
1 # Copyright 1999-2022 Gentoo Authors 2 # Distributed under the terms of the GNU General Public License v2 3 4 EAPI=8 5 6 inherit git-r3 7 8 HOMEPAGE="https://github.com/kenorb-contrib/tg" 9 DESCRIPTION="Command line interface client for Telegram" 10 EGIT_REPO_URI="https://github.com/kenorb-contrib/tg" 11 if [[ "${PV}" -ne "9999" ]]; then 12 EGIT_COMMIT="refs/tags/${PV}" 13 KEYWORDS="~amd64 ~x86" 14 else 15 KEYWORDS="" 16 fi 17 LICENSE="GPL-2" 18 SLOT="0" 19 IUSE="lua json" 20 21 DEPEND=" 22 sys-libs/zlib 23 sys-libs/readline 24 dev-libs/libconfig 25 dev-libs/openssl 26 dev-libs/libevent 27 lua? ( dev-lang/lua:* ) 28 json? ( dev-libs/jansson ) 29 " 30 RDEPEND="${DEPEND}" 31 32 src_configure() { 33 econf $(use_enable lua liblua) \ 34 $(use_enable json) 35 } 36 37 src_install() { 38 dobin bin/telegram-cli 39 40 insinto /etc/telegram-cli/ 41 newins tg-server.pub server.pub 42 }