1 |
commit: ddd3840a7b57e788682771b2b769608d0aa848b5 |
2 |
Author: Maximilian Friedersdorff <max <AT> friedersdorff <DOT> com> |
3 |
AuthorDate: Thu Feb 14 10:55:15 2019 +0000 |
4 |
Commit: Justin Bronder <jsbronder <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 11 14:10:24 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddd3840a |
7 |
|
8 |
www-client/qutebrowser: Add scripts use flag |
9 |
|
10 |
Closes: https://bugs.gentoo.org/622980 |
11 |
Package-Manager: Portage-2.3.60, Repoman-2.3.12 |
12 |
Signed-off-by: Maximilian Friedersdorff <max <AT> friedersdorff.com> |
13 |
Signed-off-by: Justin Bronder <jsbronder <AT> gentoo.org> |
14 |
|
15 |
www-client/qutebrowser/metadata.xml | 4 ++++ |
16 |
www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild | 13 ++++++++++++- |
17 |
www-client/qutebrowser/qutebrowser-1.6.0.ebuild | 13 ++++++++++++- |
18 |
www-client/qutebrowser/qutebrowser-9999.ebuild | 13 ++++++++++++- |
19 |
4 files changed, 40 insertions(+), 3 deletions(-) |
20 |
|
21 |
diff --git a/www-client/qutebrowser/metadata.xml b/www-client/qutebrowser/metadata.xml |
22 |
index 7623d04971c..3c4b9436adf 100644 |
23 |
--- a/www-client/qutebrowser/metadata.xml |
24 |
+++ b/www-client/qutebrowser/metadata.xml |
25 |
@@ -12,4 +12,8 @@ |
26 |
<upstream> |
27 |
<remote-id type="github">qutebrowser/qutebrowser</remote-id> |
28 |
</upstream> |
29 |
+ <use> |
30 |
+ <flag name="scripts">Installs userscripts from the misc/userscripts |
31 |
+ directory to /usr/share/qutebrowser/userscripts.</flag> |
32 |
+ </use> |
33 |
</pkgmetadata> |
34 |
|
35 |
diff --git a/www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild b/www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild |
36 |
index 9870584a71b..a464d065fdc 100644 |
37 |
--- a/www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild |
38 |
+++ b/www-client/qutebrowser/qutebrowser-1.5.2-r1.ebuild |
39 |
@@ -19,7 +19,7 @@ HOMEPAGE="https://www.qutebrowser.org/ https://github.com/qutebrowser/qutebrowse |
40 |
|
41 |
LICENSE="GPL-3" |
42 |
SLOT="0" |
43 |
-IUSE="test" |
44 |
+IUSE="scripts test" |
45 |
|
46 |
COMMON_DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
47 |
DEPEND="${COMMON_DEPEND} |
48 |
@@ -55,6 +55,17 @@ python_install_all() { |
49 |
domenu misc/${PN}.desktop |
50 |
doicon -s scalable icons/${PN}.svg |
51 |
|
52 |
+ if use scripts; then |
53 |
+ # Install only those userscripts that have an explicit license header |
54 |
+ exeinto /usr/share/qutebrowser/userscripts/ |
55 |
+ doexe misc/userscripts/dmenu_qutebrowser |
56 |
+ doexe misc/userscripts/openfeeds |
57 |
+ doexe misc/userscripts/qute-keepass |
58 |
+ doexe misc/userscripts/qute-pass |
59 |
+ doexe misc/userscripts/rss |
60 |
+ doexe misc/userscripts/tor_identity |
61 |
+ fi |
62 |
+ |
63 |
distutils-r1_python_install_all |
64 |
} |
65 |
|
66 |
|
67 |
diff --git a/www-client/qutebrowser/qutebrowser-1.6.0.ebuild b/www-client/qutebrowser/qutebrowser-1.6.0.ebuild |
68 |
index 9870584a71b..a464d065fdc 100644 |
69 |
--- a/www-client/qutebrowser/qutebrowser-1.6.0.ebuild |
70 |
+++ b/www-client/qutebrowser/qutebrowser-1.6.0.ebuild |
71 |
@@ -19,7 +19,7 @@ HOMEPAGE="https://www.qutebrowser.org/ https://github.com/qutebrowser/qutebrowse |
72 |
|
73 |
LICENSE="GPL-3" |
74 |
SLOT="0" |
75 |
-IUSE="test" |
76 |
+IUSE="scripts test" |
77 |
|
78 |
COMMON_DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
79 |
DEPEND="${COMMON_DEPEND} |
80 |
@@ -55,6 +55,17 @@ python_install_all() { |
81 |
domenu misc/${PN}.desktop |
82 |
doicon -s scalable icons/${PN}.svg |
83 |
|
84 |
+ if use scripts; then |
85 |
+ # Install only those userscripts that have an explicit license header |
86 |
+ exeinto /usr/share/qutebrowser/userscripts/ |
87 |
+ doexe misc/userscripts/dmenu_qutebrowser |
88 |
+ doexe misc/userscripts/openfeeds |
89 |
+ doexe misc/userscripts/qute-keepass |
90 |
+ doexe misc/userscripts/qute-pass |
91 |
+ doexe misc/userscripts/rss |
92 |
+ doexe misc/userscripts/tor_identity |
93 |
+ fi |
94 |
+ |
95 |
distutils-r1_python_install_all |
96 |
} |
97 |
|
98 |
|
99 |
diff --git a/www-client/qutebrowser/qutebrowser-9999.ebuild b/www-client/qutebrowser/qutebrowser-9999.ebuild |
100 |
index 10675792279..67471c02f62 100644 |
101 |
--- a/www-client/qutebrowser/qutebrowser-9999.ebuild |
102 |
+++ b/www-client/qutebrowser/qutebrowser-9999.ebuild |
103 |
@@ -19,7 +19,7 @@ HOMEPAGE="https://www.qutebrowser.org/ https://github.com/qutebrowser/qutebrowse |
104 |
|
105 |
LICENSE="GPL-3" |
106 |
SLOT="0" |
107 |
-IUSE="test" |
108 |
+IUSE="scripts test" |
109 |
|
110 |
COMMON_DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" |
111 |
DEPEND="${COMMON_DEPEND} |
112 |
@@ -55,6 +55,17 @@ python_install_all() { |
113 |
domenu misc/org.${PN}.${PN}.desktop |
114 |
doicon -s scalable icons/${PN}.svg |
115 |
|
116 |
+ if use scripts; then |
117 |
+ # Install only those userscripts that have an explicit license header |
118 |
+ exeinto /usr/share/qutebrowser/userscripts/ |
119 |
+ doexe misc/userscripts/dmenu_qutebrowser |
120 |
+ doexe misc/userscripts/openfeeds |
121 |
+ doexe misc/userscripts/qute-keepass |
122 |
+ doexe misc/userscripts/qute-pass |
123 |
+ doexe misc/userscripts/rss |
124 |
+ doexe misc/userscripts/tor_identity |
125 |
+ fi |
126 |
+ |
127 |
distutils-r1_python_install_all |
128 |
} |