commit: d2aa672de19f2eb7b453b3e33ff70025bc04fb6f
parent: ce0cc81ecae722b140440fbfab0335846ee43e04
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 4 May 2019 21:01:08 +0200
www-plugins/umatrix: New Package
Diffstat:
4 files changed, 38 insertions(+), 1 deletion(-)
diff --git a/www-plugins/decentraleyes/decentraleyes-2.0.10.ebuild b/www-plugins/decentraleyes/decentraleyes-2.0.10.ebuild
@@ -5,7 +5,7 @@ EAPI=7
MY_XPINAME="${P}-an+fx"
-DESCRIPTION="Firefox addon that fixes low contrast text when using dark desktop theme"
+DESCRIPTION="Local CDN Emulation"
HOMEPAGE="https://decentraleyes.org/"
SRC_URI="https://addons.mozilla.org/firefox/downloads/file/1705979/decentraleyes-2.0.10-an+fx.xpi"
diff --git a/www-plugins/umatrix/Manifest b/www-plugins/umatrix/Manifest
@@ -0,0 +1 @@
+DIST umatrix-1.3.16-firefox.xpi 1784084 BLAKE2B f5c491f4ec17f76701ae3f0e66c63b271cbe0750a2310f7e4ad9c76f73817393ddecfe81b82151951e50abe0dc9c6f53f8cf11949d7471982880f86211ac880f SHA512 6f50f42d0541b3a469dd7a20f22354ac98882ab413898fb2f80c78eaa42f2853bece57894e9c6e6c5cba1db43ca99d0954e679a24a9b1857d78d320feaa8ffc2
diff --git a/www-plugins/umatrix/metadata.xml b/www-plugins/umatrix/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>contact@hacktivis.me</email>
+ <name>Haelwenn (lanodan) Monnier</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-plugins/umatrix/umatrix-1.3.16.ebuild b/www-plugins/umatrix/umatrix-1.3.16.ebuild
@@ -0,0 +1,28 @@
+# Copyright 2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_XPINAME="${P}-firefox"
+
+DESCRIPTION="Point and click matrix to filter net requests according to source, destination and type"
+HOMEPAGE="https://github.com/gorhill/uMatrix"
+SRC_URI="https://github.com/gorhill/uMatrix/releases/download/${PV}/uMatrix.firefox.xpi -> ${MY_XPINAME}.xpi"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}"
+
+src_unpack() {
+ cp "${DISTDIR}/${MY_XPINAME}.xpi" . || die
+}
+
+src_install() {
+ # See https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Distribution_options/Sideloading_add-ons#Installation_using_the_standard_extension_folders
+ insinto "/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/"
+ # Use the extension id found in the manifest.json for the filename and add .xpi
+ newins "${MY_XPINAME}.xpi" "uMatrix@raymondhill.net.xpi"
+}