From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 9E3D359CA4 for ; Sun, 14 Feb 2016 16:10:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0F435E07F0; Sun, 14 Feb 2016 16:10:13 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 120DA21C002 for ; Sun, 14 Feb 2016 16:10:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 414C03408EE for ; Sun, 14 Feb 2016 16:10:11 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3143C18A4 for ; Sun, 14 Feb 2016 16:10:07 +0000 (UTC) From: "Michael Palimaka" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Palimaka" Message-ID: <1455466196.d95367385c236196261aa4fb105d11423d9e7e3b.kensington@gentoo> Subject: [gentoo-commits] proj/kde:master commit in: eclass/ X-VCS-Repository: proj/kde X-VCS-Files: eclass/kde4-meta.eclass X-VCS-Directories: eclass/ X-VCS-Committer: kensington X-VCS-Committer-Name: Michael Palimaka X-VCS-Revision: d95367385c236196261aa4fb105d11423d9e7e3b X-VCS-Branch: master Date: Sun, 14 Feb 2016 16:10:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0431353c-31e4-42c5-94ea-47bf5e0b21f1 X-Archives-Hash: b8a06df6b4e8c3199a49a5b75800a814 commit: d95367385c236196261aa4fb105d11423d9e7e3b Author: Andreas Sturmlechner gmail com> AuthorDate: Wed Feb 3 16:18:34 2016 +0000 Commit: Michael Palimaka gentoo org> CommitDate: Sun Feb 14 16:09:56 2016 +0000 URL: https://gitweb.gentoo.org/proj/kde.git/commit/?id=d9536738 kde4-meta.eclass: Support tar.gz snapshot from git eclass/kde4-meta.eclass | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eclass/kde4-meta.eclass b/eclass/kde4-meta.eclass index 816f20a..ba7114d 100644 --- a/eclass/kde4-meta.eclass +++ b/eclass/kde4-meta.eclass @@ -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}"