Skip to content

Commit

Permalink
net-libs/libktorrent: Add IUSE xfs
Browse files Browse the repository at this point in the history
Used in public header, so part of RDEPEND.

Upstream commit fb59986a15ca93346a1e2f4cbb0c90804dc0eb40

Bug: https://bugs.gentoo.org/938576
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Nov 9, 2024
1 parent 1eb36fc commit 8d3305a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 9 additions & 2 deletions net-libs/libktorrent/libktorrent-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ HOMEPAGE="https://apps.kde.org/ktorrent/ https://userbase.kde.org/KTorrent"
LICENSE="GPL-2+"
SLOT="6"
KEYWORDS=""
IUSE=""
IUSE="xfs"

COMMON_DEPEND="
>=app-crypt/qca-2.3.7:2[qt6(+)]
Expand All @@ -30,6 +30,7 @@ COMMON_DEPEND="
>=kde-frameworks/ki18n-${KFMIN}:6
>=kde-frameworks/kio-${KFMIN}:6
>=kde-frameworks/solid-${KFMIN}:6
xfs? ( sys-fs/xfsprogs )
"
DEPEND="${COMMON_DEPEND}
>=dev-libs/boost-1.71
Expand All @@ -49,11 +50,17 @@ src_prepare() {
KTorrent6Config.cmake.in || die
}

src_configure() {
local mycmakeargs=(
-DWITH_XFS=$(usex xfs)
)
ecm_src_configure
}

src_test() {
# failing network tests
local myctestargs=(
-E "(fin|packetloss|send|superseedtest|transmit|utppolltest)"
)

ecm_src_test
}
3 changes: 3 additions & 0 deletions net-libs/libktorrent/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@
<upstream>
<bugs-to>https://bugs.kde.org/</bugs-to>
</upstream>
<use>
<flag name="xfs">Enable XFS specific disk preallocation support via <pkg>sys-fs/xfsprogs</pkg></flag>
</use>
</pkgmetadata>

0 comments on commit 8d3305a

Please sign in to comment.