diff options
author | Martin Väth <martin@mvath.de> | 2011-01-04 01:57:48 +0100 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2015-10-11 10:46:23 +0200 |
commit | 1bef40dbc0c3fb06c6e30c12867cc6d896147746 (patch) | |
tree | aac5d85302df25280cca80feff6a333670cba012 /eclass | |
parent | Bump less-select (diff) | |
download | mv-1bef40dbc0c3fb06c6e30c12867cc6d896147746.tar.gz mv-1bef40dbc0c3fb06c6e30c12867cc6d896147746.tar.bz2 mv-1bef40dbc0c3fb06c6e30c12867cc6d896147746.zip |
Bump all packages to EAPI="4"
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/mv_mozextension.eclass | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/eclass/mv_mozextension.eclass b/eclass/mv_mozextension.eclass index 295fbdbd..8a2b19d6 100644 --- a/eclass/mv_mozextension.eclass +++ b/eclass/mv_mozextension.eclass @@ -209,8 +209,9 @@ xpi_unpack() { [ ${#} -eq 0 ] && die \ "Nothing passed to the ${FUNCNAME} command. Please pass which xpi to unpack" + test -d "${S}" || mkdir "${S}" for xpi - do einfo "Unpacking ${xpi} to ${WORKDIR}" + do einfo "Unpacking ${xpi} to ${S}" xpiname="${xpi%.*}" xpiname="${xpiname##*/}" @@ -227,11 +228,11 @@ xpi_unpack() { case "${xpi##*.}" in ZIP|zip|jar|xpi) - mkdir -- "${WORKDIR}/${xpiname}" && \ - cd -- "${WORKDIR}/${xpiname}" && \ + mkdir -- "${S}/${xpiname}" && \ + cd -- "${S}/${xpiname}" && \ unzip -qo -- "${srcdir}${xpi}" \ || die "failed to unpack ${xpi}" - chmod -R a+rX,u+w,go-w -- "${WORKDIR}/${xpiname}" + chmod -R a+rX,u+w,go-w -- "${S}/${xpiname}" ;; *) einfo "unpack ${xpi}: file format not recognized. Ignoring." @@ -272,7 +273,7 @@ xpi_install() { # It just should call xpi_install with the correct argument(s) xpi_install_dirs() { local d - for d in "${WORKDIR}"/* + for d in "${S}"/* do [ -n "${d}" ] && test -d "${d}" && xpi_install "${d}" done } |