commit: 02ddea65fd1e7f889b22cdfff5c3f9e365f5288c
parent: d2aa672de19f2eb7b453b3e33ff70025bc04fb6f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 4 May 2019 21:05:19 +0200
www-plugins/ublock: New Package
Diffstat:
3 files changed, 37 insertions(+), 0 deletions(-)
diff --git a/www-plugins/ublock/Manifest b/www-plugins/ublock/Manifest
@@ -0,0 +1 @@
+DIST uBlock0_1.18.16.firefox.xpi 2576750 BLAKE2B 26fe24304fce49934936fdaa44889ecc0686ad3c4acefcb57bc6b802e1e90e044088a2df4a1ed7a8a2f2727b2ac668f37db192f76126fc80b850e17ed151654e SHA512 13fadeccc4a63dbfeff053e2c3605c1332cfe9d0a41c999bb46e9a356d93ea988db060ea2e7109dbbef1e6ec1e0a45f6a7580625c3dc9a6d846bd166512b5b4f
diff --git a/www-plugins/ublock/metadata.xml b/www-plugins/ublock/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/ublock/ublock-1.18.16.ebuild b/www-plugins/ublock/ublock-1.18.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="uBlock0_${PV}.firefox"
+
+DESCRIPTION="An efficient blocker for Chromium and Firefox. Fast and lean"
+HOMEPAGE="https://github.com/gorhill/uBlock"
+SRC_URI="https://github.com/gorhill/uBlock/releases/download/${PV}/${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" "uBlock0@raymondhill.net.xpi"
+}