From 306c12be0fca16708130ecf98ce48797b55fbd68 Mon Sep 17 00:00:00 2001 From: ivan-boikov Date: Fri, 10 May 2024 21:31:39 +0200 Subject: Initial commit. UBlock Origin, LibRedirect and IDontCareAboutCookies. --- .../ublock-origin/ublock-origin-9999.ebuild | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 www-plugins/ublock-origin/ublock-origin-9999.ebuild (limited to 'www-plugins/ublock-origin/ublock-origin-9999.ebuild') 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" +} -- cgit v1.2.3