summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick White <git@njw.me.uk>2009-06-18 10:19:46 +0100
committerNick White <git@njw.me.uk>2009-06-18 10:19:46 +0100
commitaa976b0bb38b2f1594dd4583bb454fc614b5fa65 (patch)
treef3f87318d418fa2b608722a64759f27b97dcd22f
parent5898fe769d039856609162036af9444a3b6e00c0 (diff)
downloadnjw-gentoo-local-aa976b0bb38b2f1594dd4583bb454fc614b5fa65.tar.bz2
njw-gentoo-local-aa976b0bb38b2f1594dd4583bb454fc614b5fa65.zip
Use arrows for deblob-check if EAPI2
-rw-r--r--eclass/kernel-libre.eclass8
1 files changed, 7 insertions, 1 deletions
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}