summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-08-21 21:56:18 +0200
committerAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-08-21 22:02:16 +0200
commit1ace7540e87cd0ce0ca963811acedcb0c43c3052 (patch)
treee40d67521e097ff30c216dc94447f9eb1436211c
parent4047be629c6b12ac6bf2bab51c6df5a9dccfdeb7 (diff)
downloadkde-1ace7540e87cd0ce0ca963811acedcb0c43c3052.tar.gz
kde-1ace7540e87cd0ce0ca963811acedcb0c43c3052.tar.bz2
kde-1ace7540e87cd0ce0ca963811acedcb0c43c3052.zip
net-libs/libktorrent: Use KDE_TEST=forceoptional-recursive
examples subdir is already disabled by kde5.eclass Package-Manager: portage-2.2.28
-rw-r--r--net-libs/libktorrent/libktorrent-9999.ebuild14
1 files changed, 2 insertions, 12 deletions
diff --git a/net-libs/libktorrent/libktorrent-9999.ebuild b/net-libs/libktorrent/libktorrent-9999.ebuild
index a4bf5df862a..ac3ee823efd 100644
--- a/net-libs/libktorrent/libktorrent-9999.ebuild
+++ b/net-libs/libktorrent/libktorrent-9999.ebuild
@@ -15,11 +15,9 @@ if [[ ${PV} != 9999* ]]; then
S="${WORKDIR}"/"${MY_P}"
KEYWORDS="~amd64 ~arm ~x86"
-else
- KEYWORDS=""
fi
-KDE_TEST="forceoptional"
+KDE_TEST="forceoptional-recursive"
VIRTUALX_REQUIRED="test"
inherit kde5
@@ -60,13 +58,5 @@ src_prepare() {
sed -i -e "/^find_dependency/ s/ \"@LibGMP_MIN_VERSION@\"//" \
LibKTorrentConfig.cmake.in || die
- # do not build non-installed example binary
- sed -i -e "/add_subdirectory(examples)/d" CMakeLists.txt || die
-
- if ! use test ; then
- sed -i -e "/add_subdirectory(testlib)/d" CMakeLists.txt || die
- sed -i -e "/add_subdirectory(tests)/d" \
- src/{datachecker,dht,diskio,download,magnet,mse,net,peer,util,utp,torrent}/CMakeLists.txt \
- || die "Failed to remove tests"
- fi
+ use test || cmake_comment_add_subdirectory testlib
}