diff options
author | Martin Väth <martin@mvath.de> | 2010-03-28 12:13:38 +0200 |
---|---|---|
committer | Martin Väth <vaeth@mathematik.uni-wuerzburg.de> | 2010-03-28 12:13:38 +0200 |
commit | 3c20a4557767ea27aef7df1f4443dada90d06138 (patch) | |
tree | b8bf2e2934314313ed99330577d4906b79d8f5aa /www-plugins/better-privacy | |
download | mv-3c20a4557767ea27aef7df1f4443dada90d06138.tar.gz mv-3c20a4557767ea27aef7df1f4443dada90d06138.tar.bz2 mv-3c20a4557767ea27aef7df1f4443dada90d06138.zip |
Import of the mv overlay
Diffstat (limited to 'www-plugins/better-privacy')
-rw-r--r-- | www-plugins/better-privacy/ChangeLog | 7 | ||||
-rw-r--r-- | www-plugins/better-privacy/Manifest | 4 | ||||
-rw-r--r-- | www-plugins/better-privacy/better-privacy-1.45.ebuild | 62 | ||||
-rw-r--r-- | www-plugins/better-privacy/metadata.xml | 9 |
4 files changed, 82 insertions, 0 deletions
diff --git a/www-plugins/better-privacy/ChangeLog b/www-plugins/better-privacy/ChangeLog new file mode 100644 index 00000000..f198d35c --- /dev/null +++ b/www-plugins/better-privacy/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for www-plugins/better-privacy +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header $ + + 28 Mar 2010; Martin Väth <martin@mvath.de> + better-privacy-1.45.ebuild: + import with minor changes from a personal overlay. diff --git a/www-plugins/better-privacy/Manifest b/www-plugins/better-privacy/Manifest new file mode 100644 index 00000000..f5807f97 --- /dev/null +++ b/www-plugins/better-privacy/Manifest @@ -0,0 +1,4 @@ +DIST betterprivacy-1.45-sm+fx.xpi 66005 RMD160 e59df69be4a9b5a79b77055595749d2da077be88 SHA1 1ec0e1725a729cf6143fc1086ea1f618f81cd25f SHA256 5ff7f773ac2cc4646d9b20df2bd650eb95a8bc0ad8864fa0244b4fe7361b8c7f +EBUILD better-privacy-1.45.ebuild 1700 RMD160 3b323ed32a0c86a91411d84c2e5a10c703e36928 SHA1 49affddd6ce73bc8d704dee80640e36559f06618 SHA256 21bb4aa12f8d6db18efa9c7cd5d60260424c9300bc748b9c6550a724683939b4 +MISC ChangeLog 273 RMD160 27c4a2cfc7c6ec0ba92b294de9e9009450882bf6 SHA1 ee6d832c898f897e017c078498c2bb8de9e1756b SHA256 108db5a41878322b079b88c795091697006275215b02cd88a3ce89e86e3d0ffb +MISC metadata.xml 274 RMD160 a46806846cb114b1d2889ac05c409164bc276800 SHA1 ec26b2018eda8c918c3d1b2ef99d7a8ba4b70dfe SHA256 b0e2d9479aa7d1b3025efa320ddc30ee2e2df365c159b0bfec02b8019d2628d8 diff --git a/www-plugins/better-privacy/better-privacy-1.45.ebuild b/www-plugins/better-privacy/better-privacy-1.45.ebuild new file mode 100644 index 00000000..16efdc35 --- /dev/null +++ b/www-plugins/better-privacy/better-privacy-1.45.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header $ + +EAPI="2" +inherit mozextension multilib +RESTRICT="mirror" + +DESCRIPTION="Firefox plugin for long time cookies like ~/.adobe/Flash_Player/AssetCache/*/*" +HOMEPAGE="https://addons.mozilla.org/firefox/addon/6623" +MY_P="${P/-/}" +MY_P="${MY_P%_alpha*}" +MY_P="${MY_P%_beta*}" +MY_P="${MY_P}-sm+fx" +FILENAME="${MY_P}.xpi" +SRC_URI="https://addons.mozilla.org/de/firefox/downloads/latest/6623/${FILENAME}" +case "${PV}" in +*_alpha*|*_beta*) +SRC_URI="https://addons.mozilla.org/de/firefox/downloads/file/76929/${FILENAME}?confirmed -> ${FILENAME}" +esac + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+flash" + +RDEPEND="flash? ( www-plugins/adobe-flash ) +|| ( + >=www-client/mozilla-firefox-bin-1.5.0.7 + >=www-client/mozilla-firefox-1.5.0.7 +)" +DEPEND="${RDEPEND}" + +S=${WORKDIR} + +src_unpack() { + xpi_unpack "${FILENAME}" +} + +# xpi_install is buggy: The detection of emid fails +my_xpi_install() { + local emid + x="${1}" + cd ${x} + # determine id for extension + emid=$(sed -n -e '/install-manifest/,$ { /<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; s/\"//g; p; q }' ${x}/install.rdf) \ + && [ -n "${emid}" ] || die "failed to determine extension id" + insinto "${MOZILLA_FIVE_HOME}"/extensions/${emid} + doins -r "${x}"/* || die "failed to copy extension" +} + +src_install() { + declare MOZILLA_FIVE_HOME + if has_version '>=www-client/mozilla-firefox-1.5.0.7'; then + MOZILLA_FIVE_HOME="/usr/$(get_libdir)/mozilla-firefox" + my_xpi_install "${S}"/"${MY_P}" + fi + if has_version '>=www-client/mozilla-firefox-bin-1.5.0.7'; then + MOZILLA_FIVE_HOME="/opt/firefox" + my_xpi_install "${S}"/"${MY_P}" + fi +} diff --git a/www-plugins/better-privacy/metadata.xml b/www-plugins/better-privacy/metadata.xml new file mode 100644 index 00000000..0366721c --- /dev/null +++ b/www-plugins/better-privacy/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>no-herd</herd> + <maintainer> + <email>martin@mvath.de</email> + <name>Martin Väth</name> + </maintainer> +</pkgmetadata> |