summaryrefslogtreecommitdiff
path: root/www-plugins/ublock-origin
diff options
context:
space:
mode:
Diffstat (limited to 'www-plugins/ublock-origin')
-rw-r--r--www-plugins/ublock-origin/Manifest2
-rw-r--r--www-plugins/ublock-origin/ublock-origin-9999.ebuild38
2 files changed, 40 insertions, 0 deletions
diff --git a/www-plugins/ublock-origin/Manifest b/www-plugins/ublock-origin/Manifest
new file mode 100644
index 0000000..a2fccbe
--- /dev/null
+++ b/www-plugins/ublock-origin/Manifest
@@ -0,0 +1,2 @@
+DIST uBlock.git 350167 BLAKE2B 382975d112b61bf249b2f153da3453f2114a372edd2b9c540419137a73c4bb3b7a2eddf6e621b921ee9b1fb38c4a3e8484fa09e11f5fb64b45cebedad85dbbac SHA512 29560fc2dd237a3652f6b56fb8480d32c9c9d25081e55a4d722fc73beaf164fafd27c726a711f8b490a3527d922b40f73d9dc629e249013d02a7aaf60c523929
+EBUILD ublock-origin-9999.ebuild 726 BLAKE2B 9eb2b15b570edb164eeb51845443d208843ecc3d69dbf49af808e9ad0127f1fb8af29c2bcfd63ef4d1b055224966141c7fc09503fbf04bebf9a63b3318ba180c SHA512 979a33b514fd12c2a6f508f16649547515418b4f3de6367bac567549d3274aa804b318c5c4201bda865aca2b8d4cfec2ad9af9eb119a60bd715da5b2a9a0596f
diff --git a/www-plugins/ublock-origin/ublock-origin-9999.ebuild b/www-plugins/ublock-origin/ublock-origin-9999.ebuild
new file mode 100644
index 0000000..17458e7
--- /dev/null
+++ b/www-plugins/ublock-origin/ublock-origin-9999.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="uBlock Origin addon for Firefox"
+HOMEPAGE="https://github.com/gorhill/uBlock"
+SRC_URI="https://github.com/gorhill/uBlock.git"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
+BDEPEND="dev-build/ninja net-libs/nodejs"
+
+inherit git-r3
+
+src_unpack() {
+ EGIT_REPO_URI="$SRC_URI"
+ EGIT_CLONE_TYPE="shallow"
+ git-r3_src_unpack
+ cd "${S}"
+ tools/pull-assets.sh
+ cd -
+}
+
+src_compile() {
+ cd "${S}"
+ tools/make-firefox.sh all
+ cd -
+}
+
+src_install() {
+ dodir /usr/share/firefox-addons
+ cp "${S}/dist/build/uBlock0.firefox.xpi" "${D}/usr/share/firefox-addons/uBlock0@raymondhill.net.xpi"
+}