net-libs/tdlib: Drop old

Part-of: https://github.com/gentoo/gentoo/pull/46662
Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
Esteve Varela Colominas
2026-08-08 19:04:31 +02:00
committed by Yixun Lan
parent fd10cbdc45
commit 287078cfde
2 changed files with 0 additions and 78 deletions

View File

@@ -1,4 +1,3 @@
DIST tdlib-1.8.49_p20250510.tar.gz 5477630 BLAKE2B 4f42bdb5306bf16c5e8f7f13809c3d1aa6f4805584aa21c87a2fb342b6b56c6ee9a6d8e108fabe42c195aa5ad03a7fc1d880fbcf68c8452359cfdf5bede33f7a SHA512 c0ec498011b821d545904674ed3534a5a2be4b38025daa4bb4e9661ec62c1583bc1edadb1dae2bc2619dc50e72baf5a3690e9aed6e87b2c123ce27370d00d9ff
DIST tdlib-1.8.61.tar.gz 5658013 BLAKE2B 9c9f8375a46e8198b5b5278fe00df0f0e7fad96c59302655db9a166a758a51dc02561c4143ad5447a3326a5d6d0892037c3a6d6e430431b2acb588617c93fd87 SHA512 5f2bec63b82f13dbe148390951dbccf39ef541bb14150bee5d3f445d27b236e6948f091a479a6b43300967534824c242a737e9e6ae7c10573e9a39f46253ebc5
DIST tdlib-1.8.62.tar.gz 5668241 BLAKE2B 98eafbf1e14d7591cd08bac9f38d972b122fedb5fd43312b5eacce3134d2709da7a5c3c896539b1d06ae79a82adf7abceee4a25b8bfbc221f4a2d7351bb95ada SHA512 a343b5f9398e8f2a2f381d82539653ff410b77127eecdf98c1c521a03710bb0562cbd990c36263f1830ab4ccf58d1e29188d6c6aff6ca23d8f8cf95284ead782
DIST tdlib-1.8.66.tar.gz 5784956 BLAKE2B 25ef7fdc214cef55404ed8b43e48d14ec88cd9befd4799b477b683f1b16ebaca6c1bb8e0d0354b10325a5eb93e7a88e7a7e8894da127d5352deb427f759eab85 SHA512 2b2c5de1cc633efa8b0088b9fb8a4c006fe09988b11cc9846bcfae9de81ddba4a5e46917c70f068088b1935c473ab47f9f8493d9cde73694387fd664c2b05c40

View File

@@ -1,77 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Cross-platform library for building Telegram clients"
HOMEPAGE="https://github.com/tdlib/td"
MY_PV="51743dfd01dff6179e2d8f7095729caa4e2222e9"
SRC_URI="https://github.com/tdlib/td/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/td-${MY_PV}"
LICENSE="Boost-1.0"
SLOT="0/${PV%_p*}"
KEYWORDS="amd64 ~arm64 ~loong ~riscv"
IUSE="+tde2e test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/openssl:=
virtual/zlib:=
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-util/gperf
"
src_prepare() {
sed -e '/add_library(/s/ STATIC//' \
-i CMakeLists.txt */CMakeLists.txt || die
sed -e '/set(INSTALL_STATIC_TARGETS /s/ tdjson_static TdJsonStatic//' \
-e '/generate_pkgconfig(tdjson_static /d' \
-i CMakeLists.txt || die
# Benchmarks take way too long to compile
sed -e '/add_subdirectory(benchmark)/d' \
-i CMakeLists.txt || die
# Fix tests linking
sed -e 's/target_link_libraries(run_all_tests PRIVATE /&tdmtproto /' \
-i test/CMakeLists.txt
cmake_src_prepare
}
src_configure() {
local mycmakeargs=(
-DBUILD_TESTING=$(usex test)
-DTDE2E_INSTALL_INCLUDES=yes
)
cmake_src_configure
if use tde2e; then
# Generate cmake configuration files for the e2e-only variant
# These are required by certain programs which depend on "tde2e"
mycmakeargs+=( -DTD_E2E_ONLY=ON )
BUILD_DIR="${S}_tde2e" cmake_src_configure
fi
}
src_install() {
cmake_src_install
if use tde2e; then
# Install the tde2e headers
insinto /usr/include/td/e2e
doins tde2e/td/e2e/e2e_api.h tde2e/td/e2e/e2e_errors.h
# Install the tde2e cmake files
cd "${S}_tde2e" || die
insinto /usr/$(get_libdir)/cmake/tde2e
doins tde2eConfig.cmake tde2eConfigVersion.cmake
doins CMakeFiles/Export/*/tde2eStaticTargets*.cmake
fi
}