diff options
author | Bertrand Jacquin <beber@meleeweb.net> | 2006-03-19 15:56:21 +0100 |
---|---|---|
committer | Bertrand Jacquin <beber@meleeweb.net> | 2006-03-19 15:56:21 +0100 |
commit | 9a4d59e54117522163d020b949b6c9e98a6ca8fd (patch) | |
tree | 913db88fa3401bd6f944df27fb8dcb7a76f65e82 | |
parent | ekiga: digest & manifest (diff) | |
download | portage-9a4d59e54117522163d020b949b6c9e98a6ca8fd.tar.xz |
e.eclass: fetch mirror tar in unpack and download them if server file is newer
-rw-r--r-- | eclass/enlightenment.eclass | 11 |
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} |