commit:     ddd3840a7b57e788682771b2b769608d0aa848b5
Author:     Maximilian Friedersdorff <max <AT> friedersdorff <DOT> com>
AuthorDate: Thu Feb 14 10:55:15 2019 +0000
Commit:     Justin Bronder <jsbronder <AT> gentoo <DOT> org>
CommitDate: Mon Mar 11 14:10:24 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddd3840a

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 <max <AT> friedersdorff.com>
Signed-off-by: Justin Bronder <jsbronder <AT> gentoo.org>

 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(-)

diff --git a/www-client/qutebrowser/metadata.xml 
b/www-client/qutebrowser/metadata.xml
index 7623d04971c..3c4b9436adf 100644
--- a/www-client/qutebrowser/metadata.xml
+++ b/www-client/qutebrowser/metadata.xml
@@ -12,4 +12,8 @@
        <upstream>
                <remote-id type="github">qutebrowser/qutebrowser</remote-id>
        </upstream>
+       <use>
+               <flag name="scripts">Installs userscripts from the 
misc/userscripts
+                       directory to /usr/share/qutebrowser/userscripts.</flag>
+       </use>
 </pkgmetadata>

diff --git a/www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild 
b/www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild
index 9870584a71b..a464d065fdc 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 9870584a71b..a464d065fdc 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 10675792279..67471c02f62 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
 }
 

Reply via email to