-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-p2p/qbittorrent-enhanced-edition: new package
- Loading branch information
Showing
2 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DIST qbittorrent-enhanced-edition-4.5.4.10.tar.gz 8816269 BLAKE2B 33e6b885f26421fe68c21404b873f0be467fe08b06352d69c820f8fdbdedac8aeed8d31ea564c531919ea2e23c1eed8511b29fc7501d75b5d29b470b7ba2b9f1 SHA512 8c47572b1266ff2fcc17af3d8a27678eba303396b7cda7c65af6917ee4114a1137924784b0e9fb12f02434e2b4ee2e7af37ccb1464e7ed24e4373d42c6b341dd | ||
EBUILD qbittorrent-enhanced-edition-4.5.4.10.ebuild 2294 BLAKE2B 830dfcaf7007233097265e648e63601b49867b924f33f8e1e172cffafaf2932dc94e91d24c1b91e8683290783a12379efb691c045e503a2660a97458632bb898 SHA512 f63d692f6c284bc7269a73886e49e8f47442c88fe9179fc5efc1966b1e8683b6e3dfd59a8501464c00d4a974e189478d65dc793f8c776347495bc1ef6c71b2c1 |
105 changes: 105 additions & 0 deletions
105
net-p2p/qbittorrent-enhanced-edition/qbittorrent-enhanced-edition-4.5.4.10.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# Copyright 1999-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
inherit cmake multibuild systemd xdg | ||
|
||
DESCRIPTION="qBittorrent Enhanced, based on qBittorrent" | ||
HOMEPAGE="https://github.com/c0re100/qBittorrent-Enhanced-Edition" | ||
|
||
if [[ ${PV} == *9999 ]]; then | ||
EGIT_REPO_URI="https://github.com/c0re100/qBittorrent-Enhanced-Edition.git" | ||
inherit git-r3 | ||
else | ||
SRC_URI="https://github.com/c0re100/qBittorrent-Enhanced-Edition/archive/release-${PV}.tar.gz -> ${P}.tar.gz" | ||
KEYWORDS="amd64 arm arm64 ppc64 riscv x86" | ||
S="${WORKDIR}"/qBittorrent-Enhanced-Edition-release-${PV} | ||
fi | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
IUSE="+dbus +gui webui" | ||
REQUIRED_USE="dbus? ( gui ) | ||
|| ( gui webui )" | ||
|
||
RDEPEND=" | ||
>=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-2:= | ||
>=sys-libs/zlib-1.2.11 | ||
dbus? ( dev-qt/qtdbus:5 ) | ||
gui? ( | ||
dev-libs/geoip | ||
dev-qt/qtgui:5 | ||
dev-qt/qtsvg:5 | ||
dev-qt/qtwidgets:5 | ||
) | ||
!!net-p2p/qbittorrent" | ||
DEPEND=" | ||
${RDEPEND} | ||
dev-libs/boost" | ||
BDEPEND="dev-qt/linguist-tools:5 | ||
virtual/pkgconfig" | ||
|
||
DOCS=( AUTHORS Changelog CONTRIBUTING.md README.md ) | ||
|
||
src_prepare() { | ||
MULTIBUILD_VARIANTS=() | ||
use gui && MULTIBUILD_VARIANTS+=( gui ) | ||
use webui && MULTIBUILD_VARIANTS+=( nogui ) | ||
|
||
cmake_src_prepare | ||
} | ||
|
||
src_configure() { | ||
multibuild_src_configure() { | ||
local mycmakeargs=( | ||
# musl lacks execinfo.h | ||
-DSTACKTRACE=$(usex !elibc_musl) | ||
|
||
# More verbose build logs are preferable for bug reports | ||
-DVERBOSE_CONFIGURE=ON | ||
|
||
# Not yet in ::gentoo | ||
-DQT6=OFF | ||
|
||
-DWEBUI=$(usex webui) | ||
) | ||
|
||
if [[ ${MULTIBUILD_VARIANT} == gui ]]; then | ||
# We do this in multibuild, see bug #839531 for why. | ||
# Fedora has to do the same thing. | ||
mycmakeargs+=( | ||
-DGUI=ON | ||
-DDBUS=$(usex dbus) | ||
-DSYSTEMD=OFF | ||
) | ||
else | ||
mycmakeargs+=( | ||
-DGUI=OFF | ||
-DDBUS=OFF | ||
# The systemd service calls qbittorrent-nox, which is only | ||
# installed when GUI=OFF. | ||
-DSYSTEMD=ON | ||
-DSYSTEMD_SERVICES_INSTALL_DIR="$(systemd_get_systemunitdir)" | ||
) | ||
fi | ||
|
||
cmake_src_configure | ||
} | ||
|
||
multibuild_foreach_variant multibuild_src_configure | ||
} | ||
|
||
src_compile() { | ||
multibuild_foreach_variant cmake_src_compile | ||
} | ||
|
||
src_install() { | ||
multibuild_foreach_variant cmake_src_install | ||
einstalldocs | ||
} |