mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
kde4-meta.eclass: Support tar.gz snapshot from git
Signed-off-by: Johannes Huber <johu@gentoo.org>
This commit is contained in:
committed by
Johannes Huber
parent
2701c01be3
commit
28b338093a
@@ -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}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user