summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/enlightenment.eclass11
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/enlightenment.eclass b/eclass/enlightenment.eclass
index 8c96d363..67c620cc 100644
--- a/eclass/enlightenment.eclass
+++ b/eclass/enlightenment.eclass
@@ -58,8 +58,7 @@ HOMEPAGE="http://www.enlightenment.org/"
case ${EURI_STATE:-${ECVS_STATE}} in
release) SRC_URI="http://enlightenment.freedesktop.org/files/${P}.tar.gz mirror://sourceforge/enlightenment/${P}.tar.gz";;
snap) SRC_URI="mirror://gentoo/${P}.tar.bz2";;
- mirror) SRC_URI="${ECVS_MIRROR}/${ECVS_MODULE}.tar.bz2"
- RESTRICT="nomirror";;
+ mirror) SRC_URI="";;
live) SRC_URI="";;
esac
@@ -116,7 +115,13 @@ gettext_modify() {
}
enlightenment_src_unpack() {
- if [[ ${ECVS_STATE} == "live" ]] ; then
+ if [[ ${ECVS_STATE} == "mirror" ]] ; then
+ B="${PN}.tar.bz2"
+ cp -p /usr/portage/distfiles/${B} ${DISTDIR} 2> /dev/null
+ wget -t 5 --passive-ftp ${ECVS_MIRROR}/${ECVS_MODULE}.tar.bz2 --progress=bar:force -N -P ${DISTDIR}
+ cp -p ${DISTDIR}/${B} /usr/portage/distfiles 2> /dev/null
+ unpack ${B}
+ elif [[ ${ECVS_STATE} == "live" ]] ; then
cvs_src_unpack
else
unpack ${A}