From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3035A15800F for ; Sat, 18 Feb 2023 09:56:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5FF62E087E; Sat, 18 Feb 2023 09:56:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3670CE087E for ; Sat, 18 Feb 2023 09:56:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 465AE340F30 for ; Sat, 18 Feb 2023 09:56:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EA3928B5 for ; Sat, 18 Feb 2023 09:56:07 +0000 (UTC) From: "Piotr Karbowski" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Piotr Karbowski" Message-ID: <1676714162.6b33e72d8933aca72a03b23870178adc55ec3998.slashbeast@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/qbittorrent/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/qbittorrent/qbittorrent-9999.ebuild X-VCS-Directories: net-p2p/qbittorrent/ X-VCS-Committer: slashbeast X-VCS-Committer-Name: Piotr Karbowski X-VCS-Revision: 6b33e72d8933aca72a03b23870178adc55ec3998 X-VCS-Branch: master Date: Sat, 18 Feb 2023 09:56:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4f7ae9cd-a031-4772-a1a3-f22698446d12 X-Archives-Hash: 1a7e6615efade9911673443e68ad71b7 commit: 6b33e72d8933aca72a03b23870178adc55ec3998 Author: Anna Vyalkova sysrq in> AuthorDate: Fri Nov 4 07:14:21 2022 +0000 Commit: Piotr Karbowski gentoo org> CommitDate: Sat Feb 18 09:56:02 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6b33e72d net-p2p/qbittorrent: add Qt6 support Other changes: * Use "edo" for running tests * Drop "dbus? ( gui )" required USE. DBus support is only enabled when GUI is enabled. * Bump net-libs/libtorrent-rasterbar minimum version * Add virtual/libiconv dep * Rename helper functions so they have "my" prefix (to cause less confusion) Signed-off-by: Anna Vyalkova sysrq.in> Closes: https://github.com/gentoo/gentoo/pull/29307 Signed-off-by: Piotr Karbowski gentoo.org> net-p2p/qbittorrent/qbittorrent-9999.ebuild | 64 ++++++++++++++++++----------- 1 file changed, 39 insertions(+), 25 deletions(-) diff --git a/net-p2p/qbittorrent/qbittorrent-9999.ebuild b/net-p2p/qbittorrent/qbittorrent-9999.ebuild index c6292efff901..42048dfcddbe 100644 --- a/net-p2p/qbittorrent/qbittorrent-9999.ebuild +++ b/net-p2p/qbittorrent/qbittorrent-9999.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit cmake multibuild systemd xdg +inherit cmake edo multibuild systemd xdg DESCRIPTION="BitTorrent client in C++ and Qt" HOMEPAGE="https://www.qbittorrent.org" @@ -13,35 +13,50 @@ if [[ ${PV} == *9999 ]]; then inherit git-r3 else SRC_URI="https://github.com/qbittorrent/qBittorrent/archive/release-${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" S="${WORKDIR}"/qBittorrent-release-${PV} fi LICENSE="GPL-2" SLOT="0" -IUSE="+dbus +gui test webui" +IUSE="+dbus +gui qt6 test webui" RESTRICT="!test? ( test )" -REQUIRED_USE="dbus? ( gui ) - || ( gui webui )" +REQUIRED_USE="|| ( gui webui )" RDEPEND=" dev-libs/boost:= >=dev-libs/openssl-1.1.1:= - dev-qt/qtcore:5 - dev-qt/qtnetwork:5[ssl] - dev-qt/qtsql:5 - dev-qt/qtxml:5 - >=net-libs/libtorrent-rasterbar-1.2.14:= + >=net-libs/libtorrent-rasterbar-1.2.18:= >=sys-libs/zlib-1.2.11 - dbus? ( dev-qt/qtdbus:5 ) + virtual/libiconv gui? ( dev-libs/geoip - dev-qt/qtgui:5 - dev-qt/qtsvg:5 - dev-qt/qtwidgets:5 + !qt6? ( + dev-qt/qtgui:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dbus? ( dev-qt/qtdbus:5 ) + ) + qt6? ( + dev-qt/qtbase:6[dbus?,gui,widgets] + dev-qt/qtsvg:6 + ) + ) + qt6? ( dev-qt/qtbase:6[network,ssl,sql,sqlite,xml(+)] ) + !qt6? ( + dev-qt/qtcore:5 + dev-qt/qtnetwork:5[ssl] + dev-qt/qtsql:5[sqlite] + dev-qt/qtxml:5 + )" +DEPEND="${RDEPEND} + test? ( + !qt6? ( dev-qt/qttest:5 ) + qt6? ( dev-qt/qtbase:6[test] ) )" -DEPEND="${RDEPEND}" -BDEPEND="dev-qt/linguist-tools:5 +BDEPEND=" + !qt6? ( dev-qt/linguist-tools:5 ) + qt6? ( dev-qt/qttools:6[linguist] ) virtual/pkgconfig" DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md ) @@ -55,7 +70,7 @@ src_prepare() { } src_configure() { - multibuild_src_configure() { + my_src_configure() { local mycmakeargs=( # musl lacks execinfo.h -DSTACKTRACE=$(usex !elibc_musl) @@ -63,15 +78,14 @@ src_configure() { # More verbose build logs are preferable for bug reports -DVERBOSE_CONFIGURE=ON - # Not yet in ::gentoo - -DQT6=OFF + -DQT6=$(usex qt6) -DWEBUI=$(usex webui) -DTESTING=$(usex test) ) - if [[ ${MULTIBUILD_VARIANT} == gui ]] ; then + if [[ ${MULTIBUILD_VARIANT} == "gui" ]]; then # We do this in multibuild, see bug #839531 for why. # Fedora has to do the same thing. mycmakeargs+=( @@ -93,7 +107,7 @@ src_configure() { cmake_src_configure } - multibuild_foreach_variant multibuild_src_configure + multibuild_foreach_variant my_src_configure } src_compile() { @@ -101,12 +115,12 @@ src_compile() { } src_test() { - qbittorrent_run_tests() { + my_src_test() { cd "${BUILD_DIR}"/test || die - ctest . || die + edo ctest . } - multibuild_foreach_variant qbittorrent_run_tests + multibuild_foreach_variant my_src_test } src_install() {