commit:     4eac22b0309ce82dd887324bcef6c20f75cc2591
Author:     layman <layman <AT> localhost>
AuthorDate: Wed Jun 15 11:03:31 2016 +0000
Commit:     Heather Cynede <cynede <AT> gentoo <DOT> org>
CommitDate: Wed Jun 15 11:03:31 2016 +0000
URL:        https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=4eac22b0

icon installation added

 net-irc/smuxi/smuxi-1.0.5.ebuild | 35 +++++++++++++++++++++++++++++++----
 1 file changed, 31 insertions(+), 4 deletions(-)

diff --git a/net-irc/smuxi/smuxi-1.0.5.ebuild b/net-irc/smuxi/smuxi-1.0.5.ebuild
index 5f010fc..1daacca 100644
--- a/net-irc/smuxi/smuxi-1.0.5.ebuild
+++ b/net-irc/smuxi/smuxi-1.0.5.ebuild
@@ -1,13 +1,14 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
-inherit eutils mono-env
+EAPI=6
+inherit eutils gnome2-utils mono-env
 
 DESCRIPTION="A flexible, irssi-like and user-friendly IRC client for the Gnome 
Desktop"
 HOMEPAGE="http://www.smuxi.org/main/";
-SRC_URI="http://www.smuxi.org/jaws/data/files/${P}.tar.gz";
+SRC_URI="http://www.smuxi.org/jaws/data/files/${P}.tar.gz
+    https://github.com/meebey/smuxi/raw/master/images/icon_square.svg -> 
smuxi.svg"
 #SRC_URI="https://github.com/meebey/smuxi/archive/${PV}.tar.gz";
 
 SLOT="0"
@@ -32,6 +33,14 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig
 "
 
+pkg_preinst() {
+       gnome2_icon_savelist
+}
+
+src_prepare() {
+       default
+}
+
 src_configure() {
        # Our dev-dotnet/db4o is completely unmaintained
        # We don't have ubuntu stuff
@@ -49,3 +58,21 @@ src_configure() {
 
        touch README
 }
+
+src_install() {
+       default
+
+       elog "Installing desktop icon"
+       insinto /usr/share/icons/hicolor/scalable/apps
+       local ICON_NAME=smuxi.svg
+       newicon -s scalable "${DISTDIR}/${ICON_NAME}" "${ICON_NAME}"
+       make_desktop_entry "/usr/local/bin/smuxi-frontend-gnome" "Smuxi" 
"/usr/share/icons/hicolor/scalable/apps/${ICON_NAME}"
+}
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+}

Reply via email to