commit: aa14c2775f80baf96dd8e4bcedecc1cedd8a6383 Author: Zetok Zalbavar <zetok <AT> openmailbox <DOT> org> AuthorDate: Sat Mar 26 10:09:12 2016 +0000 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> CommitDate: Sat Mar 26 19:02:51 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa14c277
net-im/qtox: installs .png icons wrt bug #578210 This PR also add a new pkgconfig dependency. Reporter: Mikhail Kurinnoi <viewizard <AT> viewizard.com> Gentoo-Bug: https://bugs.gentoo.org/578210 Closes: https://github.com/gentoo/gentoo/pull/1141 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> net-im/qtox/qtox-1.3.0.ebuild | 5 +++++ net-im/qtox/qtox-9999.ebuild | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/net-im/qtox/qtox-1.3.0.ebuild b/net-im/qtox/qtox-1.3.0.ebuild index 42c9bb6..3dffe4b 100644 --- a/net-im/qtox/qtox-1.3.0.ebuild +++ b/net-im/qtox/qtox-1.3.0.ebuild @@ -74,6 +74,11 @@ src_configure() { src_install() { dobin "${S}/qtox" + # install all png icons + local ICONS=(16 22 24 32 36 48 64 72 96 128 192 256 512) + for i in "${ICONS[@]}"; do + newicon -s "${i}" "${S}/img/icons/qtox-${i}x${i}.png" "qtox.png" + done doicon -s scalable "${S}/img/icons/qtox.svg" domenu "${S}/qTox.desktop" } diff --git a/net-im/qtox/qtox-9999.ebuild b/net-im/qtox/qtox-9999.ebuild index 5d30cb8..cdbfc5b 100644 --- a/net-im/qtox/qtox-9999.ebuild +++ b/net-im/qtox/qtox-9999.ebuild @@ -37,6 +37,7 @@ RDEPEND=" x11-libs/cairo[X] x11-libs/pango[X] ) net-libs/tox[av] + virtual/pkgconfig X? ( x11-libs/libX11 x11-libs/libXScrnSaver ) " @@ -72,6 +73,11 @@ src_configure() { src_install() { dobin "${S}/qtox" + # install all png icons + local ICONS=(16 22 24 32 36 48 64 72 96 128 192 256 512) + for i in "${ICONS[@]}"; do + newicon -s "${i}" "${S}/img/icons/qtox-${i}x${i}.png" "qtox.png" + done doicon -s scalable "${S}/img/icons/qtox.svg" domenu "${S}/qTox.desktop" }
