net-im/tgl - 9999 (mva)

Search

Install

Install this version:

emerge -a =net-im/tgl-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-im/tgl-9999

Or alternatively:

emerge --autounmask-write -a =net-im/tgl-9999

Package Information

Description:
Telegram library
Homepage:
https://github.com/vysheng/tgl
License:
LGPL-2.1+

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 2026 mva
# Distributed under the terms of the Public Domain or CC0 License

EAPI=8

inherit git-r3 flag-o-matic

DESCRIPTION="Telegram library"
HOMEPAGE="https://github.com/vysheng/tgl"

EGIT_REPO_URI="https://github.com/vysheng/tgl.git"
EGIT_BRANCH="master"

LICENSE="LGPL-2.1+"
SLOT="0"
IUSE="gcrypt +libevent"

DEPEND="
	virtual/zlib
	!gcrypt? ( dev-libs/openssl )
	gcrypt? ( dev-libs/libgcrypt )
	libevent? ( dev-libs/libevent )
"

src_configure() {
	local myeconfargs=();
	append-ldflags '-Wl,-soname,libtgl.so'
	myeconfargs+=( $(use_enable libevent) )
	use gcrypt && myeconfargs+=( "--disable-openssl" )
	econf ${myeconfargs[@]}
}

src_install() {
	dolib.a libs/lib${PN}.a
	dolib.so libs/lib${PN}.so
}

USE Flags

Manage flags for this package: euse -i <flag> -p net-im/tgl | euse -E <flag> -p net-im/tgl | euse -D <flag> -p net-im/tgl

Global/Standard Flags

libevent
Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	virtual/zlib
	!gcrypt? ( dev-libs/openssl )
	gcrypt? ( dev-libs/libgcrypt )
	libevent? ( dev-libs/libevent )