summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shvetsov <alexxy@gentoo.org>2010-08-12 21:05:07 +0400
committerAlexey Shvetsov <alexxy@gentoo.org>2010-08-12 21:05:07 +0400
commita898beb3a60585b541cc27e2a0be7b53db8810b7 (patch)
treec070bf5974e5a63972877adada188fc3d43ad85c
parent23a9f265a1ecc7535b3ae52b860b2618282f0bbd (diff)
downloadkde-a898beb3a60585b541cc27e2a0be7b53db8810b7.tar.gz
kde-a898beb3a60585b541cc27e2a0be7b53db8810b7.tar.bz2
kde-a898beb3a60585b541cc27e2a0be7b53db8810b7.zip
[eclass] We are on EAPI=3
-rw-r--r--eclass/kde4-base.eclass29
1 files changed, 1 insertions, 28 deletions
diff --git a/eclass/kde4-base.eclass b/eclass/kde4-base.eclass
index f16dd02e298..f198c5dcc6c 100644
--- a/eclass/kde4-base.eclass
+++ b/eclass/kde4-base.eclass
@@ -465,9 +465,8 @@ case ${BUILD_TYPE} in
esac
;;
4.[56].[6-9]*)
- # Repacked tarballs: need to depend on xz-utils to ensure that they can be unpacked
+ # Repacked tarballs
SRC_URI="http://dev.gentooexperimental.org/~alexxy/kde/${PV}/src/${_kmname_pv}.tar.xz"
- DEPEND+=" app-arch/xz-utils"
;;
*) SRC_URI="mirror://kde/stable/${PV}/src/${_kmname_pv}.tar.bz2" ;;
esac
@@ -502,15 +501,6 @@ debug-print "${LINENO} ${ECLASS} ${FUNCNAME}: SRC_URI is ${SRC_URI}"
kde4-base_pkg_setup() {
debug-print-function ${FUNCNAME} "$@"
- # Prefix compat:
- if [[ ${EAPI} == 2 ]] && ! use prefix; then
- EPREFIX=
- EROOT=${ROOT}
- fi
-
- # Append missing trailing slash character
- [[ ${EROOT} = */ ]] || EROOT+="/"
-
# QA ebuilds
[[ -z ${KDE_MINIMAL_VALID} ]] && ewarn "QA Notice: ignoring invalid KDE_MINIMAL (defaulting to ${KDE_MINIMAL})."
@@ -574,24 +564,7 @@ kde4-base_src_unpack() {
elif has git ${INHERITED}; then
git_src_unpack
fi
- elif [[ ${EAPI} == 2 ]]; then
- local file
- for file in ${A}; do
- # This setup is because EAPI <= 2 cannot unpack *.tar.xz files
- # directly, so we do it ourselves (using the exact same code as portage)
- case ${file} in
- *.tar.xz)
- echo ">>> Unpacking ${file} to ${PWD}"
- xz -dc "${DISTDIR}"/${file} | tar xof -
- assert "failed unpacking ${file}"
- ;;
- *)
- unpack ${file}
- ;;
- esac
- done
else
- # For EAPI >= 3, we can just use unpack() directly
unpack ${A}
fi
}