public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: net-libs/tdlib/
@ 2025-05-21 20:53 Sam James
  0 siblings, 0 replies; 6+ messages in thread
From: Sam James @ 2025-05-21 20:53 UTC (permalink / raw
  To: gentoo-commits

commit:     5c4e1ba64f9bce6d46e5e9d3cb272fbf456c2378
Author:     Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
AuthorDate: Wed May 21 19:36:33 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 21 20:51:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c4e1ba6

net-libs/tdlib: New package

New dependency of telegram-desktop. Packaged in full, instead of just
the required tde2e part, due to programs such as tdlib-purple using it
as well.

Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42194
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/tdlib/Manifest                      |  1 +
 net-libs/tdlib/metadata.xml                  | 18 +++++++
 net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild | 77 ++++++++++++++++++++++++++++
 3 files changed, 96 insertions(+)

diff --git a/net-libs/tdlib/Manifest b/net-libs/tdlib/Manifest
new file mode 100644
index 000000000000..be51b7152ca3
--- /dev/null
+++ b/net-libs/tdlib/Manifest
@@ -0,0 +1 @@
+DIST tdlib-1.8.49_p20250510.tar.gz 5477630 BLAKE2B 4f42bdb5306bf16c5e8f7f13809c3d1aa6f4805584aa21c87a2fb342b6b56c6ee9a6d8e108fabe42c195aa5ad03a7fc1d880fbcf68c8452359cfdf5bede33f7a SHA512 c0ec498011b821d545904674ed3534a5a2be4b38025daa4bb4e9661ec62c1583bc1edadb1dae2bc2619dc50e72baf5a3690e9aed6e87b2c123ce27370d00d9ff

diff --git a/net-libs/tdlib/metadata.xml b/net-libs/tdlib/metadata.xml
new file mode 100644
index 000000000000..499e84c88a93
--- /dev/null
+++ b/net-libs/tdlib/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person" proxied="yes">
+		<email>esteve.varela@gmail.com</email>
+		<name>Esteve Varela Colominas</name>
+	</maintainer>
+	<maintainer type="project" proxied="proxy">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<upstream>
+		<remote-id type="github">tdlib/td</remote-id>
+	</upstream>
+	<use>
+		<flag name="tde2e">Install tde2e headers and cmake config</flag>
+	</use>
+</pkgmetadata>

diff --git a/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild b/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
new file mode 100644
index 000000000000..3f1350c4180e
--- /dev/null
+++ b/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
@@ -0,0 +1,77 @@
+# 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"
+IUSE="+tde2e test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+	dev-libs/openssl
+	sys-libs/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
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-libs/tdlib/
@ 2025-05-21 22:07 Sam James
  0 siblings, 0 replies; 6+ messages in thread
From: Sam James @ 2025-05-21 22:07 UTC (permalink / raw
  To: gentoo-commits

commit:     c20479ee6c2964a73ecad51ad4c1fc4853f06648
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 21 22:07:02 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 21 22:07:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c20479ee

net-libs/tdlib: Keyword 1.8.49_p20250510 arm64, #956399

Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild b/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
index 3f1350c4180e..4d00c940cbde 100644
--- a/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
+++ b/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/td-${MY_PV}"
 
 LICENSE="Boost-1.0"
 SLOT="0/${PV%_p*}"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~arm64"
 IUSE="+tde2e test"
 RESTRICT="!test? ( test )"
 


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-libs/tdlib/
@ 2025-05-28 12:33 WANG Xuerui
  0 siblings, 0 replies; 6+ messages in thread
From: WANG Xuerui @ 2025-05-28 12:33 UTC (permalink / raw
  To: gentoo-commits

commit:     b683f430b5ef54078b5fad7cde6a92400753786c
Author:     WANG Xuerui <xen0n <AT> gentoo <DOT> org>
AuthorDate: Tue May 27 12:21:18 2025 +0000
Commit:     WANG Xuerui <xen0n <AT> gentoo <DOT> org>
CommitDate: Wed May 28 12:33:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b683f430

net-libs/tdlib: keyword 1.8.49_p20250510 for ~loong

Signed-off-by: WANG Xuerui <xen0n <AT> gentoo.org>

 net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild b/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
index 4d00c940cbde..820c4887de7b 100644
--- a/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
+++ b/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/td-${MY_PV}"
 
 LICENSE="Boost-1.0"
 SLOT="0/${PV%_p*}"
-KEYWORDS="~amd64 ~arm64"
+KEYWORDS="~amd64 ~arm64 ~loong"
 IUSE="+tde2e test"
 RESTRICT="!test? ( test )"
 


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-libs/tdlib/
@ 2025-06-18 16:56 Jakov Smolić
  0 siblings, 0 replies; 6+ messages in thread
From: Jakov Smolić @ 2025-06-18 16:56 UTC (permalink / raw
  To: gentoo-commits

commit:     7cb076c8be5cecb537c2e2a873e278c521857879
Author:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 18 16:56:17 2025 +0000
Commit:     Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
CommitDate: Wed Jun 18 16:56:17 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cb076c8

net-libs/tdlib: Keyword 1.8.49_p20250510 riscv, #956399

Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>

 net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild b/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
index 820c4887de7b..52aeeb744bc9 100644
--- a/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
+++ b/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/td-${MY_PV}"
 
 LICENSE="Boost-1.0"
 SLOT="0/${PV%_p*}"
-KEYWORDS="~amd64 ~arm64 ~loong"
+KEYWORDS="~amd64 ~arm64 ~loong ~riscv"
 IUSE="+tde2e test"
 RESTRICT="!test? ( test )"
 


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-libs/tdlib/
@ 2025-09-23 19:29 Arthur Zamarin
  0 siblings, 0 replies; 6+ messages in thread
From: Arthur Zamarin @ 2025-09-23 19:29 UTC (permalink / raw
  To: gentoo-commits

commit:     fa1b55b8382e035979609a95c1dc6992e8c287bb
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 23 19:29:08 2025 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Tue Sep 23 19:29:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa1b55b8

net-libs/tdlib: Stabilize 1.8.49_p20250510 amd64, #962427

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild b/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
index 52aeeb744bc9..a27284ab75ea 100644
--- a/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
+++ b/net-libs/tdlib/tdlib-1.8.49_p20250510.ebuild
@@ -14,7 +14,7 @@ S="${WORKDIR}/td-${MY_PV}"
 
 LICENSE="Boost-1.0"
 SLOT="0/${PV%_p*}"
-KEYWORDS="~amd64 ~arm64 ~loong ~riscv"
+KEYWORDS="amd64 ~arm64 ~loong ~riscv"
 IUSE="+tde2e test"
 RESTRICT="!test? ( test )"
 


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: net-libs/tdlib/
@ 2025-09-24  1:32 Sam James
  0 siblings, 0 replies; 6+ messages in thread
From: Sam James @ 2025-09-24  1:32 UTC (permalink / raw
  To: gentoo-commits

commit:     0c78ae8fab175713f2aede39f10e8beee69ea893
Author:     Esteve Varela Colominas <esteve.varela <AT> gmail <DOT> com>
AuthorDate: Tue Sep 23 21:41:27 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Sep 24 01:29:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c78ae8f

net-libs/tdlib: Bump to 1.8.55

Signed-off-by: Esteve Varela Colominas <esteve.varela <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43917
Closes: https://github.com/gentoo/gentoo/pull/43917
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-libs/tdlib/Manifest            |  1 +
 net-libs/tdlib/tdlib-1.8.55.ebuild | 77 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 78 insertions(+)

diff --git a/net-libs/tdlib/Manifest b/net-libs/tdlib/Manifest
index be51b7152ca3..fd0ddcabc4c5 100644
--- a/net-libs/tdlib/Manifest
+++ b/net-libs/tdlib/Manifest
@@ -1 +1,2 @@
 DIST tdlib-1.8.49_p20250510.tar.gz 5477630 BLAKE2B 4f42bdb5306bf16c5e8f7f13809c3d1aa6f4805584aa21c87a2fb342b6b56c6ee9a6d8e108fabe42c195aa5ad03a7fc1d880fbcf68c8452359cfdf5bede33f7a SHA512 c0ec498011b821d545904674ed3534a5a2be4b38025daa4bb4e9661ec62c1583bc1edadb1dae2bc2619dc50e72baf5a3690e9aed6e87b2c123ce27370d00d9ff
+DIST tdlib-1.8.55.tar.gz 5569844 BLAKE2B 6b21086991126df93ecbd101c914c085e96603e51d34a2ddda2f805f59f1152fb05fb99efe7b998e395f74a843c9e85e3be59935f1b367e9dc4f9081d839a929 SHA512 fca25e017e6bc27bcc0a69b35ad478a5acfc46b511917440c3e560c18378c3f4133c1c553eb9a0752db5328f61c5813312d653f4ad5e5d0284b7a79d4f480be8

diff --git a/net-libs/tdlib/tdlib-1.8.55.ebuild b/net-libs/tdlib/tdlib-1.8.55.ebuild
new file mode 100644
index 000000000000..fa3a5990c914
--- /dev/null
+++ b/net-libs/tdlib/tdlib-1.8.55.ebuild
@@ -0,0 +1,77 @@
+# 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="7d257dcda5dd2c616c1146540ef51147c5bb2c69"
+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
+	sys-libs/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
+}


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-09-24  1:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-28 12:33 [gentoo-commits] repo/gentoo:master commit in: net-libs/tdlib/ WANG Xuerui
  -- strict thread matches above, loose matches on Subject: below --
2025-09-24  1:32 Sam James
2025-09-23 19:29 Arthur Zamarin
2025-06-18 16:56 Jakov Smolić
2025-05-21 22:07 Sam James
2025-05-21 20:53 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox