/[gentoo-x86]/eclass/mozextension.eclass
Gentoo

Diff of /eclass/mozextension.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.5 Revision 1.6
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.5 2010/12/30 03:06:04 anarchy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.6 2011/10/31 12:28:14 anarchy Exp $
4# 4#
5# mozextention.eclass: installing firefox extensions and language packs 5# @ECLASS: mozextension.eclass
6# @MAINTAINER:
7# Mozilla team <mozilla@gentoo.org>
8# @DESCRIPTION:
9# Install extensions for use in mozilla products.
10
6 11
7inherit eutils 12inherit eutils
8 13
9DEPEND="app-arch/unzip" 14DEPEND="app-arch/unzip"
10 15
26 [[ -s "${srcdir}${xpi}" ]] || die "${xpi} does not exist" 31 [[ -s "${srcdir}${xpi}" ]] || die "${xpi} does not exist"
27 32
28 case "${xpi##*.}" in 33 case "${xpi##*.}" in
29 ZIP|zip|jar|xpi) 34 ZIP|zip|jar|xpi)
30 mkdir "${WORKDIR}/${xpiname}" && \ 35 mkdir "${WORKDIR}/${xpiname}" && \
31 cd "${WORKDIR}/${xpiname}" && \ 36 unzip -qo "${srcdir}${xpi}" -d "${WORKDIR}/${xpiname}" || die "failed to unpack ${xpi}"
32 unzip -qo "${srcdir}${xpi}" || die "failed to unpack ${xpi}"
33 ;; 37 ;;
34 *) 38 *)
35 einfo "unpack ${xpi}: file format not recognized. Ignoring." 39 einfo "unpack ${xpi}: file format not recognized. Ignoring."
36 ;; 40 ;;
37 esac 41 esac

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20