diff options
author | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2023-07-26 07:08:52 +0500 |
---|---|---|
committer | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2023-07-26 07:15:32 +0500 |
commit | 08dcb280742df21b83f0b554becbe2eb8b2b1dda (patch) | |
tree | 63b39027422d20365febd07a59fe2be0fe52b9f4 /net-libs | |
parent | net-p2p/dogecoin-qt: Applying fix for Bug 910673 (diff) | |
download | guru-08dcb280742df21b83f0b554becbe2eb8b2b1dda.tar.gz guru-08dcb280742df21b83f0b554becbe2eb8b2b1dda.tar.bz2 guru-08dcb280742df21b83f0b554becbe2eb8b2b1dda.zip |
net-libs/td: disable benchmarks
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'net-libs')
-rw-r--r-- | net-libs/td/metadata.xml | 1 | ||||
-rw-r--r-- | net-libs/td/td-1.8.0.ebuild | 41 | ||||
-rw-r--r-- | 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" |