Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 225503 Details for
Bug 146761
KompoZer (the succesor of NVU) ebuild request
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
mozextension eclass
mozextension.eclass (text/plain), 2.01 KB, created by
Dominique Michel
on 2010-03-28 00:28:21 UTC
(
hide
)
Description:
mozextension eclass
Filename:
MIME Type:
Creator:
Dominique Michel
Created:
2010-03-28 00:28:21 UTC
Size:
2.01 KB
patch
obsolete
># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/eclass/mozextension.eclass,v 1.4 2007/12/20 15:43:14 armin76 Exp $ ># ># mozextention.eclass: installing firefox extensions and language packs > >inherit eutils > >DEPEND="app-arch/unzip" > >xpi_unpack() { > local xpi xpiname srcdir > > # Not gonna use ${A} as we are looking for a specific option being passed to function > # You must specify which xpi to use > [[ -z "$*" ]] && die "Nothing passed to the $FUNCNAME command. please pass which xpi to unpack" > > for xpi in "$@"; do > einfo "Unpacking ${xpi} to ${PWD}" > xpiname=$(basename ${xpi%.*}) > > if [[ "${xpi:0:2}" != "./" ]] && [[ "${xpi:0:1}" != "/" ]] ; then > srcdir="${DISTDIR}/" > fi > > [[ -s "${srcdir}${xpi}" ]] || die "${xpi} does not exist" > > case "${xpi##*.}" in > ZIP|zip|jar|xpi) > mkdir "${WORKDIR}/${xpiname}" && \ > cd "${WORKDIR}/${xpiname}" && \ > unzip -qo "${srcdir}${xpi}" || die "failed to unpack ${xpi}" > ;; > *) > einfo "unpack ${xpi}: file format not recognized. Ignoring." > ;; > esac > done >} > > >xpi_install() { > local emid > > # You must tell xpi_install which xpi to use > [[ ${#} -ne 1 ]] && die "$FUNCNAME takes exactly one argument, please specify an xpi to unpack" > > x="${1}" > cd ${x} > # determine id for extension > emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' ${x}/install.rdf) || die "failed to determine extension id" > insinto "${MOZILLA_FIVE_HOME}"/extensions/${emid} > doins -r "${x}"/* || die "failed to copy extension" >} > >xpi_dict_install() { > local emid > > # You must tell xpi_install which xpi to use > [[ ${#} -ne 1 ]] && die "$FUNCNAME takes exactly one argument, please specify an xpi to unpack" > > x="${1}" > cd ${x} > # determine id for extension > emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q' ${x}/install.rdf) || die "failed to determine extension id" > insinto "${MOZILLA_FIVE_HOME}"/${emid} > doins -r "${x}"/* || die "failed to copy extension" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 146761
:
134753
|
139765
|
139767
|
192060
|
192328
|
192388
|
192389
|
192752
|
193010
|
207283
|
207284
|
210182
|
212588
|
212589
|
223127
|
223531
|
225283
|
225285
|
225287
|
225475
|
225499
|
225501
| 225503 |
245218
|
245245
|
246326
|
259994
|
259998
|
259999