From aa976b0bb38b2f1594dd4583bb454fc614b5fa65 Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 18 Jun 2009 10:19:46 +0100 Subject: Use arrows for deblob-check if EAPI2 --- eclass/kernel-libre.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'eclass') diff --git a/eclass/kernel-libre.eclass b/eclass/kernel-libre.eclass index 77845ac..2923807 100644 --- a/eclass/kernel-libre.eclass +++ b/eclass/kernel-libre.eclass @@ -6,10 +6,16 @@ inherit kernel-2 EXPORT_FUNCTIONS src_unpack -DEBLOB_CHECK="deblob-check" KERNEL_URI="http://www.linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-libre${LIBRE_VER}/linux-${PV}-libre${LIBRE_VER}.tar.bz2" +DEBLOB_CHECK="deblob-check" DEBLOB_URI="http://www.linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-libre${LIBRE_VER}/${DEBLOB_CHECK}" +# if the package manager is capable, rename deblob-check to avoid collisions +if [[ $EAPI -eq 2 ]]; then + DEBLOB_CHECK="${DEBLOB_CHECK}-${OKV}" + DEBLOB_URI="${DEBLOB_URI} -> ${DEBLOB_CHECK}" +fi + # override the kernel-2 function as tarball is named differently universal_unpack() { cd ${WORKDIR} -- cgit v1.2.3