kde.org.eclass: Allow to use SRC_URI in addition to live sources
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 5 Apr 2020 22:11:59 +0000 (00:11 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Wed, 15 Apr 2020 23:02:40 +0000 (01:02 +0200)
Copied from qt5-build.eclass.

Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
(cherry picked from commit bb9352eaa4e149475a4f2c8a34f115b9e27fe732)

eclass/kde.org.eclass

index bb9bd618eb2ec6b77e0556a52acdc2344756f19f..f2e6f03b22b1032c783836e773bd74d1290d1e92 100644 (file)
@@ -250,11 +250,10 @@ kde.org_pkg_nofetch() {
 kde.org_src_unpack() {
        debug-print-function ${FUNCNAME} "$@"
 
-       if [[ ${KDE_BUILD_TYPE} = live ]]; then
-               git-r3_src_unpack
-       else
-               default
-       fi
+       case ${KDE_BUILD_TYPE} in
+               live) git-r3_src_unpack ;&
+               *) default ;;
+       esac
 }
 
 fi