From ddd3840a7b57e788682771b2b769608d0aa848b5 Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Thu, 14 Feb 2019 10:55:15 +0000 Subject: www-client/qutebrowser: Add scripts use flag Closes: https://bugs.gentoo.org/622980 Package-Manager: Portage-2.3.60, Repoman-2.3.12 Signed-off-by: Maximilian Friedersdorff Signed-off-by: Justin Bronder --- www-client/qutebrowser/metadata.xml | 4 ++++ www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild | 13 ++++++++++++- www-client/qutebrowser/qutebrowser-1.6.0.ebuild | 13 ++++++++++++- www-client/qutebrowser/qutebrowser-9999.ebuild | 13 ++++++++++++- 4 files changed, 40 insertions(+), 3 deletions(-) (limited to 'www-client/qutebrowser') diff --git a/www-client/qutebrowser/metadata.xml b/www-client/qutebrowser/metadata.xml index 7623d04971cf..3c4b9436adf9 100644 --- a/www-client/qutebrowser/metadata.xml +++ b/www-client/qutebrowser/metadata.xml @@ -12,4 +12,8 @@ qutebrowser/qutebrowser + + Installs userscripts from the misc/userscripts + directory to /usr/share/qutebrowser/userscripts. + diff --git a/www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild b/www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild index 9870584a71be..a464d065fdc3 100644 --- a/www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild +++ b/www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild @@ -19,7 +19,7 @@ HOMEPAGE="https://www.qutebrowser.org/ https://github.com/qutebrowser/qutebrowse LICENSE="GPL-3" SLOT="0" -IUSE="test" +IUSE="scripts test" COMMON_DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" DEPEND="${COMMON_DEPEND} @@ -55,6 +55,17 @@ python_install_all() { domenu misc/${PN}.desktop doicon -s scalable icons/${PN}.svg + if use scripts; then + # Install only those userscripts that have an explicit license header + exeinto /usr/share/qutebrowser/userscripts/ + doexe misc/userscripts/dmenu_qutebrowser + doexe misc/userscripts/openfeeds + doexe misc/userscripts/qute-keepass + doexe misc/userscripts/qute-pass + doexe misc/userscripts/rss + doexe misc/userscripts/tor_identity + fi + distutils-r1_python_install_all } diff --git a/www-client/qutebrowser/qutebrowser-1.6.0.ebuild b/www-client/qutebrowser/qutebrowser-1.6.0.ebuild index 9870584a71be..a464d065fdc3 100644 --- a/www-client/qutebrowser/qutebrowser-1.6.0.ebuild +++ b/www-client/qutebrowser/qutebrowser-1.6.0.ebuild @@ -19,7 +19,7 @@ HOMEPAGE="https://www.qutebrowser.org/ https://github.com/qutebrowser/qutebrowse LICENSE="GPL-3" SLOT="0" -IUSE="test" +IUSE="scripts test" COMMON_DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" DEPEND="${COMMON_DEPEND} @@ -55,6 +55,17 @@ python_install_all() { domenu misc/${PN}.desktop doicon -s scalable icons/${PN}.svg + if use scripts; then + # Install only those userscripts that have an explicit license header + exeinto /usr/share/qutebrowser/userscripts/ + doexe misc/userscripts/dmenu_qutebrowser + doexe misc/userscripts/openfeeds + doexe misc/userscripts/qute-keepass + doexe misc/userscripts/qute-pass + doexe misc/userscripts/rss + doexe misc/userscripts/tor_identity + fi + distutils-r1_python_install_all } diff --git a/www-client/qutebrowser/qutebrowser-9999.ebuild b/www-client/qutebrowser/qutebrowser-9999.ebuild index 106757922792..67471c02f629 100644 --- a/www-client/qutebrowser/qutebrowser-9999.ebuild +++ b/www-client/qutebrowser/qutebrowser-9999.ebuild @@ -19,7 +19,7 @@ HOMEPAGE="https://www.qutebrowser.org/ https://github.com/qutebrowser/qutebrowse LICENSE="GPL-3" SLOT="0" -IUSE="test" +IUSE="scripts test" COMMON_DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" DEPEND="${COMMON_DEPEND} @@ -55,6 +55,17 @@ python_install_all() { domenu misc/org.${PN}.${PN}.desktop doicon -s scalable icons/${PN}.svg + if use scripts; then + # Install only those userscripts that have an explicit license header + exeinto /usr/share/qutebrowser/userscripts/ + doexe misc/userscripts/dmenu_qutebrowser + doexe misc/userscripts/openfeeds + doexe misc/userscripts/qute-keepass + doexe misc/userscripts/qute-pass + doexe misc/userscripts/rss + doexe misc/userscripts/tor_identity + fi + distutils-r1_python_install_all } -- cgit v1.2.3-65-gdbad