commit:     28b338093a6c63a91ae650184e2acbbf3aedb107
Author:     Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
AuthorDate: Mon May  2 17:17:19 2016 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Mon May  2 17:18:15 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28b33809

kde4-meta.eclass: Support tar.gz snapshot from git

Signed-off-by: Johannes Huber <johu <AT> gentoo.org>

 eclass/kde4-meta.eclass | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/eclass/kde4-meta.eclass b/eclass/kde4-meta.eclass
index df7dfa4..ba7114d 100644
--- a/eclass/kde4-meta.eclass
+++ b/eclass/kde4-meta.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 #
@@ -185,6 +185,9 @@ kde4-meta_src_extract() {
                if [[ ${PV} =~ 4.4.11 ]]; then
                        postfix="bz2"
                        KMTARPARAMS+=" --bzip2"
+               elif [[ ${PV} =~ _pre ]]; then
+                       postfix="gz"
+                       KMTARPARAMS+=" --gz"
                else
                        postfix="xz"
                        KMTARPARAMS+=" --xz"
@@ -198,6 +201,9 @@ kde4-meta_src_extract() {
                # Detect real toplevel dir from tarball name - it will be used 
upon extraction
                # and in _list_needed_subdirectories
                topdir="${tarball%.tar.*}/"
+               if [[ ${topdir} =~ _pre ]]; then
+                       topdir="${topdir%-$PV*}/"
+               fi
 
                ebegin "Unpacking parts of ${tarball} to ${WORKDIR}"
 

Reply via email to