summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-05-02 19:17:19 +0200
committerJohannes Huber <johu@gentoo.org>2016-05-02 19:18:15 +0200
commit28b338093a6c63a91ae650184e2acbbf3aedb107 (patch)
tree38f7a9a6629344b9db8b8c75057c26030554404a
parentsci-electronics/gazebo: pin dep to protobuf2 as it does not build with protob... (diff)
downloadgentoo-28b33809.tar.gz
gentoo-28b33809.tar.bz2
gentoo-28b33809.zip
kde4-meta.eclass: Support tar.gz snapshot from git
Signed-off-by: Johannes Huber <johu@gentoo.org>
-rw-r--r--eclass/kde4-meta.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/kde4-meta.eclass b/eclass/kde4-meta.eclass
index df7dfa41cfa5..ba7114dcfd99 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}"