summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen, Chih-Chia <pigfoot@gmail.com>2020-02-23 18:28:35 +0800
committerChen, Chih-Chia <pigfoot@gmail.com>2020-02-23 18:28:35 +0800
commit1873ebbe35272ec7f2a5c2ee1f1fe392881c5f22 (patch)
treeeb5f986f18b289f9b1748b12fac093c28ebd8833
parentFix build failure due to git-2 decommission #3 (diff)
downloadpigfoot-1873ebbe35272ec7f2a5c2ee1f1fe392881c5f22.tar.gz
pigfoot-1873ebbe35272ec7f2a5c2ee1f1fe392881c5f22.tar.bz2
pigfoot-1873ebbe35272ec7f2a5c2ee1f1fe392881c5f22.zip
Add net-im/telegram-cli v20200106
Signed-off-by: Chen, Chih-Chia <pigfoot@gmail.com>
-rw-r--r--net-im/telegram-cli/Manifest2
l---------net-im/telegram-cli/telegram-cli-20200106.ebuild1
-rw-r--r--net-im/telegram-cli/telegram-cli-9999.ebuild73
3 files changed, 76 insertions, 0 deletions
diff --git a/net-im/telegram-cli/Manifest b/net-im/telegram-cli/Manifest
new file mode 100644
index 0000000..d1677ea
--- /dev/null
+++ b/net-im/telegram-cli/Manifest
@@ -0,0 +1,2 @@
+DIST telegram-cli-20200106.tar.gz 167440 BLAKE2B 222b2bc466ae68340f25e8563275c503be6e98bc662b729feb3ff3a0b85395b7b4f98bfd96959f18c3b959cd56d7cb5a3faadcc1eab6c6111dcc555807fe6115 SHA512 c9f0bcb67376d34c08eea4ea963b385d79385a698e15be48b2bc877afe54fb8de9a19a0da1ab43952c293070b70ec4050c1b1837c58fedc09d4f696d39bc1413
+DIST tgl-57f1bc41ae13297e6c3e23ac465fd45ec6659f50.tar.gz 271586 BLAKE2B bfa4a937d0dab2069f039f05773c37f3b1e724090b714de56d0170d45f78b91a82123f7b7972dcab5620db5d9a44b540893589a03f81897b7b8b04e1cc3d0594 SHA512 a68bd6ebad6c274df64cd4f8171794ec4740b0695a0660e267fa500b04d6337100021fef8630d433e1956d20cbf2b04e99d442d77b2778c17671640f34d4786d
diff --git a/net-im/telegram-cli/telegram-cli-20200106.ebuild b/net-im/telegram-cli/telegram-cli-20200106.ebuild
new file mode 120000
index 0000000..968c8fb
--- /dev/null
+++ b/net-im/telegram-cli/telegram-cli-20200106.ebuild
@@ -0,0 +1 @@
+telegram-cli-9999.ebuild \ No newline at end of file
diff --git a/net-im/telegram-cli/telegram-cli-9999.ebuild b/net-im/telegram-cli/telegram-cli-9999.ebuild
new file mode 100644
index 0000000..e605d24
--- /dev/null
+++ b/net-im/telegram-cli/telegram-cli-9999.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="github.com/jorgonzalez/${PN}"
+MY_P="${P}"
+
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://${MY_PN}"
+ EGIT_SUBMODULES=( tgl )
+else
+ EGIT_COMMIT="20200106"
+ EGIT_COMMIT_TGL="57f1bc41ae13297e6c3e23ac465fd45ec6659f50"
+ MY_P="${PN}-${EGIT_COMMIT}"
+ SRC_URI="https://${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
+ https://github.com/kenorb-contrib/tgl//archive/${EGIT_COMMIT_TGL}.tar.gz -> tgl-${EGIT_COMMIT_TGL}.tar.gz"
+fi
+
+DESCRIPTION="telegram-cli for Telegram IM"
+HOMEPAGE="https://github.com/jorgonzalez/telegram-cli"
+
+LICENSE="GPL-2"
+SLOT="0/${PVR}"
+KEYWORDS="~amd64 ~x86"
+IUSE="json libressl lua luajit"
+RESTRICT="mirror"
+
+DEPEND="sys-libs/zlib
+ sys-libs/readline
+ dev-libs/libconfig
+ dev-libs/libevent
+ json? ( dev-libs/jansson )
+
+ lua? (
+ !luajit? ( >=dev-lang/lua-5.1:= )
+ luajit? ( dev-lang/luajit:2 )
+ )
+
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_unpack() {
+ default
+
+ if [[ "${PV}" == "9999" ]]; then
+ git-r3_src_unpack
+ else
+ unpack ${P}.tar.gz
+ unpack tgl-${EGIT_COMMIT_TGL}.tar.gz
+ set -- env \
+ cp -rp tgl-${EGIT_COMMIT_TGL}/* ${MY_P}/tgl
+ echo "$@"
+ "$@" || die
+ fi
+}
+
+src_configure() {
+ econf --prefix="${EPREFIX}"/usr \
+ $(usex lua "--enable-liblua") \
+ $(use_enable json)
+}
+
+src_install() {
+ dobin bin/telegram-cli
+
+ insinto /etc/telegram-cli/
+ newins tg-server.pub server.pub
+}