summaryrefslogtreecommitdiff
path: root/kde-base/kget/kget-9999.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'kde-base/kget/kget-9999.ebuild')
-rw-r--r--kde-base/kget/kget-9999.ebuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/kde-base/kget/kget-9999.ebuild b/kde-base/kget/kget-9999.ebuild
index 575c114b80e..8d8def45373 100644
--- a/kde-base/kget/kget-9999.ebuild
+++ b/kde-base/kget/kget-9999.ebuild
@@ -6,21 +6,23 @@ EAPI="3"
KDE_HANDBOOK="optional"
KMNAME="kdenetwork"
+WEBKIT_REQUIRED="optional"
inherit kde4-meta
DESCRIPTION="An advanced download manager for KDE"
KEYWORDS=""
-IUSE="debug +plasma semantic-desktop sqlite"
+IUSE="debug bittorrent semantic-desktop sqlite"
RDEPEND="
app-crypt/qca:2
- dev-libs/gmp
- dev-libs/libpcre
$(add_kdebase_dep kdelibs 'semantic-desktop?')
$(add_kdebase_dep kdepimlibs)
$(add_kdebase_dep libkonq)
$(add_kdebase_dep libkworkspace)
+ $(add_kdebase_dep solid)
+ bittorrent? ( >=net-libs/libktorrent-1.0.3 )
sqlite? ( dev-db/sqlite:3 )
+ webkit? ( >=kde-misc/kwebkitpart-0.9.6 )
"
DEPEND="${RDEPEND}
dev-libs/boost
@@ -28,20 +30,20 @@ DEPEND="${RDEPEND}
src_prepare() {
kde4-meta_src_prepare
-
- # Don't use external libbtcore, it's not really ready yet
- sed -e 's:find_package(BTCore):macro_optional_&:' \
- -i kget/transfer-plugins/bittorrent/CMakeLists.txt || die "sed failed"
+ # Disable bittorrent as supported mimetype
+ if ! use bittorrent; then
+ sed -e '/MimeType=/s|application/x-bittorrent;||' \
+ -i kget/desktop/kget.desktop || die
+ fi
}
src_configure() {
mycmakeargs=(
- -DWITH_BTCore=OFF
- $(cmake-utils_use_with plasma)
+ $(cmake-utils_use_with bittorrent KTorrent)
$(cmake-utils_use_with semantic-desktop Nepomuk)
$(cmake-utils_use_with semantic-desktop Soprano)
$(cmake-utils_use_with sqlite)
+ $(cmake-utils_use_with webkit KWebKitPart)
)
-
kde4-meta_src_configure
}