commit:     8d3305a525177701f99364489694d5374337079e
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Nov  9 22:23:25 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Nov  9 22:32:00 2024 +0000
URL:        https://gitweb.gentoo.org/proj/kde.git/commit/?id=8d3305a5

net-libs/libktorrent: Add IUSE xfs

Used in public header, so part of RDEPEND.

Upstream commit fb59986a15ca93346a1e2f4cbb0c90804dc0eb40

Bug: https://bugs.gentoo.org/938576
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 net-libs/libktorrent/libktorrent-9999.ebuild | 11 +++++++++--
 net-libs/libktorrent/metadata.xml            |  3 +++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/net-libs/libktorrent/libktorrent-9999.ebuild 
b/net-libs/libktorrent/libktorrent-9999.ebuild
index 7ccea8acef..f9f2c7c5df 100644
--- a/net-libs/libktorrent/libktorrent-9999.ebuild
+++ b/net-libs/libktorrent/libktorrent-9999.ebuild
@@ -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(+)]
@@ -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
@@ -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
 }

diff --git a/net-libs/libktorrent/metadata.xml 
b/net-libs/libktorrent/metadata.xml
index d925f24397..5e3a5f1a91 100644
--- a/net-libs/libktorrent/metadata.xml
+++ b/net-libs/libktorrent/metadata.xml
@@ -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>

Reply via email to