1 |
commit: aa14c2775f80baf96dd8e4bcedecc1cedd8a6383 |
2 |
Author: Zetok Zalbavar <zetok <AT> openmailbox <DOT> org> |
3 |
AuthorDate: Sat Mar 26 10:09:12 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 26 19:02:51 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa14c277 |
7 |
|
8 |
net-im/qtox: installs .png icons wrt bug #578210 |
9 |
|
10 |
This PR also add a new pkgconfig dependency. |
11 |
|
12 |
Reporter: Mikhail Kurinnoi <viewizard <AT> viewizard.com> |
13 |
Gentoo-Bug: https://bugs.gentoo.org/578210 |
14 |
Closes: https://github.com/gentoo/gentoo/pull/1141 |
15 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
16 |
|
17 |
net-im/qtox/qtox-1.3.0.ebuild | 5 +++++ |
18 |
net-im/qtox/qtox-9999.ebuild | 6 ++++++ |
19 |
2 files changed, 11 insertions(+) |
20 |
|
21 |
diff --git a/net-im/qtox/qtox-1.3.0.ebuild b/net-im/qtox/qtox-1.3.0.ebuild |
22 |
index 42c9bb6..3dffe4b 100644 |
23 |
--- a/net-im/qtox/qtox-1.3.0.ebuild |
24 |
+++ b/net-im/qtox/qtox-1.3.0.ebuild |
25 |
@@ -74,6 +74,11 @@ src_configure() { |
26 |
|
27 |
src_install() { |
28 |
dobin "${S}/qtox" |
29 |
+ # install all png icons |
30 |
+ local ICONS=(16 22 24 32 36 48 64 72 96 128 192 256 512) |
31 |
+ for i in "${ICONS[@]}"; do |
32 |
+ newicon -s "${i}" "${S}/img/icons/qtox-${i}x${i}.png" "qtox.png" |
33 |
+ done |
34 |
doicon -s scalable "${S}/img/icons/qtox.svg" |
35 |
domenu "${S}/qTox.desktop" |
36 |
} |
37 |
|
38 |
diff --git a/net-im/qtox/qtox-9999.ebuild b/net-im/qtox/qtox-9999.ebuild |
39 |
index 5d30cb8..cdbfc5b 100644 |
40 |
--- a/net-im/qtox/qtox-9999.ebuild |
41 |
+++ b/net-im/qtox/qtox-9999.ebuild |
42 |
@@ -37,6 +37,7 @@ RDEPEND=" |
43 |
x11-libs/cairo[X] |
44 |
x11-libs/pango[X] ) |
45 |
net-libs/tox[av] |
46 |
+ virtual/pkgconfig |
47 |
X? ( x11-libs/libX11 |
48 |
x11-libs/libXScrnSaver ) |
49 |
" |
50 |
@@ -72,6 +73,11 @@ src_configure() { |
51 |
|
52 |
src_install() { |
53 |
dobin "${S}/qtox" |
54 |
+ # install all png icons |
55 |
+ local ICONS=(16 22 24 32 36 48 64 72 96 128 192 256 512) |
56 |
+ for i in "${ICONS[@]}"; do |
57 |
+ newicon -s "${i}" "${S}/img/icons/qtox-${i}x${i}.png" "qtox.png" |
58 |
+ done |
59 |
doicon -s scalable "${S}/img/icons/qtox.svg" |
60 |
domenu "${S}/qTox.desktop" |
61 |
} |