# Copyright 2006-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cmake flag-o-matic xdg-utils if [[ ${PV} == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" else SRC_URI="https://github.com/${PN}/${PN}-releases/raw/master/${P}.tar.xz" KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~x86 ~amd64-linux" fi DESCRIPTION="A fast, easy, and free BitTorrent client" HOMEPAGE="https://transmissionbt.com/" # web/LICENSE is always GPL-2 whereas COPYING allows either GPL-2 or GPL-3 for the rest # transmission in licenses/ is for mentioning OpenSSL linking exception # MIT is in several libtransmission/ headers LICENSE="|| ( GPL-2 GPL-3 Transmission-OpenSSL-exception ) GPL-2 MIT" SLOT="0" IUSE="appindicator cli debug gtk nls mbedtls qt6 test" RESTRICT="!test? ( test )" ACCT_DEPEND=" acct-group/transmission acct-user/transmission " BDEPEND=" virtual/pkgconfig nls? ( gtk? ( sys-devel/gettext ) ) qt6? ( dev-qt/qttools:6[linguist] ) " COMMON_DEPEND=" app-arch/libdeflate:=[gzip(+)] >=dev-libs/libevent-2.1.0:=[threads(+)] dev-libs/utfcpp !mbedtls? ( dev-libs/openssl:0= ) mbedtls? ( net-libs/mbedtls:3= ) >=net-libs/libpsl-0.21.1 >=net-misc/curl-7.28.0[ssl] virtual/zlib:= nls? ( virtual/libintl ) gtk? ( >=dev-cpp/gtkmm-4.11.1:4.0 >=dev-cpp/glibmm-2.60.0:2.68 appindicator? ( dev-libs/libayatana-appindicator ) ) qt6? ( dev-qt/qtbase:6[dbus,gui,network,widgets] dev-qt/qtsvg:6 ) " DEPEND="${COMMON_DEPEND} nls? ( virtual/libintl ) " RDEPEND="${COMMON_DEPEND} ${ACCT_DEPEND} " PATCHES=( "${FILESDIR}/redatected_whitelist_version.patch" ) src_prepare() { # Avoid