public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:master commit in: net-libs/td/
@ 2023-07-26  7:43 Viorel Munteanu
  0 siblings, 0 replies; only message in thread
From: Viorel Munteanu @ 2023-07-26  7:43 UTC (permalink / raw
  To: gentoo-commits

commit:     08dcb280742df21b83f0b554becbe2eb8b2b1dda
Author:     Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
AuthorDate: Wed Jul 26 02:08:52 2023 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Wed Jul 26 02:15:32 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=08dcb280

net-libs/td: disable benchmarks

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>

 net-libs/td/metadata.xml    |  1 -
 net-libs/td/td-1.8.0.ebuild | 41 +++++++++++------------------------------
 net-libs/td/td-9999.ebuild  |  9 +++------
 3 files changed, 14 insertions(+), 37 deletions(-)

diff --git a/net-libs/td/metadata.xml b/net-libs/td/metadata.xml
index 49213d427..e23b1bc02 100644
--- a/net-libs/td/metadata.xml
+++ b/net-libs/td/metadata.xml
@@ -11,7 +11,6 @@
 	</upstream>
 	<use>
 		<flag name="abseil">Build with <pkg>dev-cpp/abseil-cpp</pkg></flag>
-		<flag name="benchmark">Enable benchmarking</flag>
 		<flag name="dotnet">Add support for .NET</flag>
 		<flag name="jumbo-build">Combine source files to speed up build process</flag>
 	</use>

diff --git a/net-libs/td/td-1.8.0.ebuild b/net-libs/td/td-1.8.0.ebuild
index 898dbeaa8..4224d288a 100644
--- a/net-libs/td/td-1.8.0.ebuild
+++ b/net-libs/td/td-1.8.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -7,13 +7,16 @@ DOCS_BUILDER="doxygen"
 inherit cmake docs java-pkg-opt-2
 
 DESCRIPTION="Cross-platform library for building Telegram clients"
-HOMEPAGE="https://core.telegram.org/tdlib https://github.com/tdlib/td"
+HOMEPAGE="
+	https://core.telegram.org/tdlib
+	https://github.com/tdlib/td
+"
 SRC_URI="https://github.com/tdlib/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="Boost-1.0"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="benchmark dotnet +jumbo-build static-libs test"
+IUSE="dotnet +jumbo-build static-libs test"
 
 RESTRICT="!test? ( test )"
 
@@ -37,24 +40,14 @@ TEST_TARGETS=(
 	#test-tdutils -- hangs
 	#run_all_tests -- segfaults
 )
-BENCH_TARGETS=(
-	bench_{actor,empty,handshake,misc}
-	bench_http
-	check_tls
-	#bench_{db,tddb} -- fail
-	#bench_http_server{,_cheat,_fast} - hang
-	#bench_http_reader -- fails
-	#check_proxy -- requires proxy
-	#rmdir -- fails
-	#wget -- requires network
-)
 
 src_prepare() {
 	sed "/find_program(CCACHE_FOUND ccache)/d" -i CMakeLists.txt || die
 	echo "" > gen_git_commit_h.sh || die
 
-	use test || cmake_comment_add_subdirectory test
-	use benchmark || cmake_comment_add_subdirectory benchmark
+	cmake_comment_add_subdirectory benchmark
+	use test || \
+		cmake_comment_add_subdirectory test
 
 	cmake_src_prepare
 }
@@ -65,13 +58,10 @@ src_configure() {
 	)
 
 	if use java; then
-		local JAVA_AWT_LIBRARY="${JAVA_HOME}/lib/libjawt.so"
-		local JAVA_JVM_LIBRARY="${JAVA_HOME}/lib/libjava.so"
-
 		mycmakeargs+=(
 			-DTD_ENABLE_JNI=ON
-			-DJAVA_AWT_LIBRARY="${JAVA_AWT_LIBRARY}"
-			-DJAVA_JVM_LIBRARY="${JAVA_JVM_LIBRARY}"
+			-DJAVA_AWT_LIBRARY="${JAVA_HOME}/lib/libjawt.so"
+			-DJAVA_JVM_LIBRARY="${JAVA_HOME}/lib/libjava.so"
 			-DJAVA_INCLUDE_PATH="${JAVA_HOME}/include"
 			-DJAVA_INCLUDE_PATH2="${JAVA_HOME}/include/linux"
 			-DJAVA_AWT_INCLUDE_PATH="${JAVA_HOME}/include"
@@ -122,15 +112,6 @@ src_test() {
 		./"${exe}" || die "${exe} failed"
 	done
 	popd > /dev/null || die
-
-	if use benchmark; then
-		pushd "${BUILD_DIR}"/benchmark > /dev/null || die
-		for exe in "${BENCH_TARGETS[@]}"; do
-			einfo "Running ${exe}"
-			./"${exe}" || die "${exe} failed"
-		done
-		popd > /dev/null || die
-	fi
 }
 
 src_install() {

diff --git a/net-libs/td/td-9999.ebuild b/net-libs/td/td-9999.ebuild
index 88d1aef53..a651c4412 100644
--- a/net-libs/td/td-9999.ebuild
+++ b/net-libs/td/td-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022 Gentoo Authors
+# Copyright 2022-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -65,12 +65,9 @@ src_configure() {
 	)
 
 	if use java; then
-		local JAVA_AWT_LIBRARY="${JAVA_HOME}/lib/libjawt.so"
-		local JAVA_JVM_LIBRARY="${JAVA_HOME}/lib/libjava.so"
-
 		mycmakeargs+=(
-			-DJAVA_AWT_LIBRARY="${JAVA_AWT_LIBRARY}"
-			-DJAVA_JVM_LIBRARY="${JAVA_JVM_LIBRARY}"
+			-DJAVA_AWT_LIBRARY="${JAVA_HOME}/lib/libjawt.so"
+			-DJAVA_JVM_LIBRARY="${JAVA_HOME}/lib/libjava.so"
 			-DJAVA_INCLUDE_PATH="${JAVA_HOME}/include"
 			-DJAVA_INCLUDE_PATH2="${JAVA_HOME}/include/linux"
 			-DJAVA_AWT_INCLUDE_PATH="${JAVA_HOME}/include"


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-07-26  7:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-26  7:43 [gentoo-commits] repo/proj/guru:master commit in: net-libs/td/ Viorel Munteanu

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