summaryrefslogtreecommitdiff
path: root/net-p2p/transmission
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-03 12:28:20 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-03 12:28:20 +0100
commit3f559ef486314f9b3b48d48eb303d6be68463af9 (patch)
tree3b70212f31ce4d000911c001ce13363d0909dfd1 /net-p2p/transmission
parent20b6ab983b55b022c6e4af317154089e18ad41cb (diff)
gentoo auto-resync : 03:09:2024 - 12:28:20
Diffstat (limited to 'net-p2p/transmission')
-rw-r--r--net-p2p/transmission/Manifest3
-rw-r--r--net-p2p/transmission/transmission-4.0.6-r5.ebuild151
-rw-r--r--net-p2p/transmission/transmission-9999.ebuild18
3 files changed, 156 insertions, 16 deletions
diff --git a/net-p2p/transmission/Manifest b/net-p2p/transmission/Manifest
index ed95a1ccf154..d46a6f0f963d 100644
--- a/net-p2p/transmission/Manifest
+++ b/net-p2p/transmission/Manifest
@@ -7,5 +7,6 @@ AUX transmission-daemon.tmpfiles 55 BLAKE2B 0f7200295e1faa22bc598e080d4c1583c5cc
DIST transmission-4.0.6.tar.xz 11908296 BLAKE2B 3eb1d851322299cb1b79c799f431c09db5aee1be0372fa2877e16508ca6f9e78ea42ed75520ab29a3325e62efcfca63a83559db73c39c981c9e2eddb403ef65a SHA512 d11654bd5174a990d8021fde890389bc7c073f63f80e1335bb2c250aff60f06d0b6481fb041ae4fdccd1c43278c71ddc36f692d7dda3ed2a1aaa9bd1bbc2cb0c
EBUILD transmission-4.0.6-r2.ebuild 3892 BLAKE2B b218541a4f356209009de1b9bd739a54bb6b3ca67c2485bc380fe57a8560a28b2335d25ab8573c11b6e8be9b413140fe9d9e05a94475056b5881914627e8a55c SHA512 7bdd1cf684978fb6a93a31977d53249483ba059ec6924cd1be26b744ea397f966d6d8eb8e6a8f76ba7aa13709e9a4431584be9b0e1da4ae82d44b67dfc0861a7
EBUILD transmission-4.0.6-r4.ebuild 3933 BLAKE2B 5eb627e88bed3dfe8ecaf32ed47ac28d62a9ece369b0551b9cbcd00c8dbb3f19d7515344b339e5f5a8d9bd1cd9ed999193db70c91f7e439fba6203e53fbb80cf SHA512 84d772ad9d9c67f8fb7bbdee9b3e18e9ade1ad6934087c16acfd733e3ca8163ff9f24e504f1b394ccb5a07186322d426f65a7f66269fb7c926d6cf1626482756
-EBUILD transmission-9999.ebuild 3864 BLAKE2B 03d505eaf4ee3e241a01be972d3793a6c4941c22dbbda02d2e10def2daa08b97a3d698984ce5f6a87c24c32e5e880ff34d756cdbd35d2b75150f00738f50b5ce SHA512 dd0065f9a490d48027c5b662023ced7650058eddc5db0a28ed2641663087d46ed9af7526b571a8541444da0af00d2499e2a03c931774dbc447db4f7f66af6719
+EBUILD transmission-4.0.6-r5.ebuild 3647 BLAKE2B 267048c7f180bcd04ec54a3e471c76dacd7fe25d615bc1b8375bd8465d43619a21678ebc2d34ad626c2274b756613d8c1f22764ac57c977ce5b3576727525b70 SHA512 2ab5daa2e6775aa55b18fc328ab4b7cee946a0f611db30a3fec7d28767dca8edebfecea6998bf4de2e7716a429c3ebebbdfca762fabe10e6b65a461445e193c4
+EBUILD transmission-9999.ebuild 3578 BLAKE2B c69555b0d7bc2abc161951e541b6cde4d9427e86bd27b3a0ac203e41b10c1ac093e56c53bdf1ea88bad8d9128277c0dd0f4650f49b5399278f7b1e0b3f308948 SHA512 26ab86d466bdfba975337eb8d45023c70d88e1e88d4f026ec309e82650318de34b1a9f8f02a1b26ba6c40add4dbe983f2508cd5358d40bf1f536ffefddf37ee1
MISC metadata.xml 621 BLAKE2B 89797292aad810a155e4f0831c089f83a2058ed5fe3bb02c6462c50c5b4e1a534b747410f52d43d4c9f9946ef95ea514c9ee6bc55ef36015c2fdf3e1a9f2e50b SHA512 67d95f7b65da7422dd3153a945f15c59a7d57fa3da222f1ac147503a07c74e81fcbd0bc294a8fdb1ac42000ae25524afd7681b770479eb6ba4bbfb26dcd25908
diff --git a/net-p2p/transmission/transmission-4.0.6-r5.ebuild b/net-p2p/transmission/transmission-4.0.6-r5.ebuild
new file mode 100644
index 000000000000..5f17ccd5c63e
--- /dev/null
+++ b/net-p2p/transmission/transmission-4.0.6-r5.ebuild
@@ -0,0 +1,151 @@
+# Copyright 2006-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic tmpfiles systemd xdg-utils
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/transmission/transmission"
+else
+ MY_PV="${PV/_beta/-beta.}"
+ MY_P="${PN}-${MY_PV}"
+ S="${WORKDIR}/${MY_P}"
+ SRC_URI="https://github.com/transmission/transmission/releases/download/${MY_PV}/${MY_P}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+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 systemd 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(+)]
+ !mbedtls? ( dev-libs/openssl:0= )
+ mbedtls? ( net-libs/mbedtls:0= )
+ net-libs/libnatpmp
+ >=net-libs/libpsl-0.21.1
+ >=net-libs/miniupnpc-1.7:=
+ >=net-misc/curl-7.28.0[ssl]
+ sys-libs/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
+ )
+ systemd? ( >=sys-apps/systemd-209:= )
+"
+DEPEND="${COMMON_DEPEND}
+ nls? ( virtual/libintl )
+"
+RDEPEND="${COMMON_DEPEND}
+ ${ACCT_DEPEND}
+"
+
+PATCHES=(
+ "${FILESDIR}/transmission-4.0.6-miniupnpc-2.2.8.patch"
+)
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
+
+ -DENABLE_GTK=$(usex gtk ON OFF)
+ -DENABLE_MAC=OFF
+ -DREBUILD_WEB=OFF
+ -DENABLE_CLI=$(usex cli ON OFF)
+ -DENABLE_TESTS=$(usex test ON OFF)
+ -DENABLE_NLS=$(usex nls ON OFF)
+
+ -DRUN_CLANG_TIDY=OFF
+
+ -DUSE_GTK_VERSION=4
+ -DUSE_SYSTEM_EVENT2=ON
+ -DUSE_SYSTEM_DEFLATE=ON
+ -DUSE_SYSTEM_DHT=OFF
+ -DUSE_SYSTEM_MINIUPNPC=ON
+ -DUSE_SYSTEM_NATPMP=ON
+ -DUSE_SYSTEM_UTP=OFF
+ -DUSE_SYSTEM_B64=OFF
+ -DUSE_SYSTEM_PSL=ON
+
+ -DWITH_CRYPTO=$(usex mbedtls mbedtls openssl)
+ -DWITH_INOTIFY=ON
+ -DWITH_APPINDICATOR=$(usex appindicator ON OFF)
+ -DWITH_SYSTEMD=$(usex systemd ON OFF)
+ )
+
+ if use qt6; then
+ mycmakeargs+=( -DENABLE_QT=ON -DUSE_QT_VERSION=6 )
+ else
+ mycmakeargs+=( -DENABLE_QT=OFF )
+ fi
+
+ # Disable assertions by default, bug 893870.
+ use debug || append-cppflags -DNDEBUG
+
+ cmake_src_configure
+}
+
+src_test() {
+ # https://github.com/transmission/transmission/issues/4763
+ cmake_src_test -E DhtTest.usesBootstrapFile
+}
+
+src_install() {
+ cmake_src_install
+
+ newinitd "${FILESDIR}"/transmission-daemon.initd.10 transmission-daemon
+ newconfd "${FILESDIR}"/transmission-daemon.confd.4 transmission-daemon
+
+ if use systemd; then
+ # Service sets Type=notify
+ systemd_dounit daemon/transmission-daemon.service
+ systemd_install_serviced "${FILESDIR}"/transmission-daemon.service.conf
+ fi
+
+ insinto /usr/lib/sysctl.d
+ doins "${FILESDIR}"/60-transmission.conf
+
+ newtmpfiles "${FILESDIR}"/transmission-daemon.tmpfiles transmission-daemon.conf
+}
+
+pkg_postrm() {
+ if use gtk || use qt6; then
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ fi
+}
+
+pkg_postinst() {
+ if use gtk || use qt6; then
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ fi
+ tmpfiles_process transmission-daemon.conf
+}
diff --git a/net-p2p/transmission/transmission-9999.ebuild b/net-p2p/transmission/transmission-9999.ebuild
index c129e9140880..5e09d9018343 100644
--- a/net-p2p/transmission/transmission-9999.ebuild
+++ b/net-p2p/transmission/transmission-9999.ebuild
@@ -24,8 +24,7 @@ HOMEPAGE="https://transmissionbt.com/"
# 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 qt5 qt6 systemd test"
-REQUIRED_USE="?? ( qt5 qt6 )"
+IUSE="appindicator cli debug gtk nls mbedtls qt6 systemd test"
RESTRICT="!test? ( test )"
ACCT_DEPEND="
@@ -37,7 +36,6 @@ BDEPEND="
nls? (
gtk? ( sys-devel/gettext )
)
- qt5? ( dev-qt/linguist-tools:5 )
qt6? ( dev-qt/qttools:6[linguist] )
"
COMMON_DEPEND="
@@ -56,14 +54,6 @@ COMMON_DEPEND="
>=dev-cpp/glibmm-2.60.0:2.68
appindicator? ( dev-libs/libayatana-appindicator )
)
- qt5? (
- dev-qt/qtcore:5
- dev-qt/qtdbus:5
- dev-qt/qtgui:5
- dev-qt/qtnetwork:5
- dev-qt/qtsvg:5
- dev-qt/qtwidgets:5
- )
qt6? (
dev-qt/qtbase:6[dbus,gui,network,widgets]
dev-qt/qtsvg:6
@@ -108,8 +98,6 @@ src_configure() {
if use qt6; then
mycmakeargs+=( -DENABLE_QT=ON -DUSE_QT_VERSION=6 )
- elif use qt5; then
- mycmakeargs+=( -DENABLE_QT=ON -DUSE_QT_VERSION=5 )
else
mycmakeargs+=( -DENABLE_QT=OFF )
fi
@@ -144,14 +132,14 @@ src_install() {
}
pkg_postrm() {
- if use gtk || use qt5 || use qt6; then
+ if use gtk || use qt6; then
xdg_desktop_database_update
xdg_icon_cache_update
fi
}
pkg_postinst() {
- if use gtk || use qt5 || use qt6; then
+ if use gtk || use qt6; then
xdg_desktop_database_update
xdg_icon_cache_update
fi