diff options
Diffstat (limited to 'www-plugins/ublock-origin/ublock-origin-9999.ebuild')
| -rw-r--r-- | www-plugins/ublock-origin/ublock-origin-9999.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
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" +} |
