From d6b253d546ad2fb30764c48484a29b4a445665c5 Mon Sep 17 00:00:00 2001
From: Tobias Scherbaum <dertobi123@gentoo.org>
Date: Tue, 9 Dec 2008 18:25:03 +0000
Subject: Move gnome deps into a gnome USE flag, add desktop file, based on
 patches by Robin Atwood (bug #250271) (Portage version: 2.2_rc17/cvs/Linux
 2.6.25-gentoo-r7 x86_64)

---
 net-analyzer/nagstamon/ChangeLog                 | 10 +++++-
 net-analyzer/nagstamon/files/nagstamon.desktop   | 12 +++++++
 net-analyzer/nagstamon/nagstamon-0.6.2-r1.ebuild | 43 ++++++++++++++++++++++++
 net-analyzer/nagstamon/nagstamon-0.6.2.ebuild    | 41 ----------------------
 4 files changed, 64 insertions(+), 42 deletions(-)
 create mode 100644 net-analyzer/nagstamon/files/nagstamon.desktop
 create mode 100644 net-analyzer/nagstamon/nagstamon-0.6.2-r1.ebuild
 delete mode 100644 net-analyzer/nagstamon/nagstamon-0.6.2.ebuild

(limited to 'net-analyzer')

diff --git a/net-analyzer/nagstamon/ChangeLog b/net-analyzer/nagstamon/ChangeLog
index 0c498a452c11..da8cec5b9f1c 100644
--- a/net-analyzer/nagstamon/ChangeLog
+++ b/net-analyzer/nagstamon/ChangeLog
@@ -1,6 +1,14 @@
 # ChangeLog for net-analyzer/nagstamon
 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/ChangeLog,v 1.2 2008/12/05 14:21:42 dertobi123 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/ChangeLog,v 1.3 2008/12/09 18:25:02 dertobi123 Exp $
+
+*nagstamon-0.6.2-r1 (09 Dec 2008)
+
+  09 Dec 2008; Tobias Scherbaum <dertobi123@gentoo.org>
+  +files/nagstamon.desktop, -nagstamon-0.6.2.ebuild,
+  +nagstamon-0.6.2-r1.ebuild:
+  Move gnome deps into a gnome USE flag, add desktop file, based on patches by
+  Robin Atwood (bug #250271)
 
 *nagstamon-0.6.2 (05 Dec 2008)
 
diff --git a/net-analyzer/nagstamon/files/nagstamon.desktop b/net-analyzer/nagstamon/files/nagstamon.desktop
new file mode 100644
index 000000000000..2875a72ac5ae
--- /dev/null
+++ b/net-analyzer/nagstamon/files/nagstamon.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Type=Application
+Name=Nagstamon
+GenericName=Nagios status monitor
+Comment=Quick status overview of your Nagios monitoring system
+Exec=nagstamon
+Icon=/usr/share/nagstamon/resources/nagstamon.png
+Terminal=false
+Categories=Application;System;
+StartupNotify=true
diff --git a/net-analyzer/nagstamon/nagstamon-0.6.2-r1.ebuild b/net-analyzer/nagstamon/nagstamon-0.6.2-r1.ebuild
new file mode 100644
index 000000000000..cca72e774a36
--- /dev/null
+++ b/net-analyzer/nagstamon/nagstamon-0.6.2-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/nagstamon-0.6.2-r1.ebuild,v 1.1 2008/12/09 18:25:02 dertobi123 Exp $
+
+EAPI="2"
+
+inherit eutils python
+
+MY_P=${P/-/_}
+
+DESCRIPTION="Nagstamon is a Nagios status monitor for a systray and displays a realtime status of a Nagios box."
+HOMEPAGE="http://nagstamon.wiki.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gnome"
+
+DEPEND=""
+RDEPEND=">=dev-lang/python-2.4
+	dev-python/pygtk
+	dev-python/lxml
+	gnome? ( || ( dev-python/gnome-python-extras dev-python/egg-python ) )"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+	epatch "${FILESDIR}/${P}-sharedir.patch"
+}
+
+src_install() {
+	exeinto $(python_get_sitedir)/${PN}
+	doexe nagstamon.py
+	dosym $(python_get_sitedir)/${PN}/${PN}.py /usr/bin/${PN}
+
+	dodir /usr/share/${PN}/resources
+	insinto /usr/share/${PN}/resources
+	doins resources/*
+
+	insinto /usr/share/applications
+	doins "${FILESDIR}"/${PN}.desktop
+}
diff --git a/net-analyzer/nagstamon/nagstamon-0.6.2.ebuild b/net-analyzer/nagstamon/nagstamon-0.6.2.ebuild
deleted file mode 100644
index 7981255dfb6c..000000000000
--- a/net-analyzer/nagstamon/nagstamon-0.6.2.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagstamon/nagstamon-0.6.2.ebuild,v 1.1 2008/12/05 14:21:42 dertobi123 Exp $
-
-EAPI="2"
-
-inherit eutils python
-
-MY_P="${PN}_${PV}"
-
-DESCRIPTION="Nagstamon is a Nagios status monitor for a systray and displays a realtime status of a Nagios box."
-HOMEPAGE="http://nagstamon.wiki.sourceforge.net"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.zip"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND=""
-RDEPEND=">=dev-lang/python-2.4
-	dev-python/pygtk
-	dev-python/gnome-python-extras
-	dev-python/lxml"
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
-	epatch "${FILESDIR}/${P}-sharedir.patch"
-}
-
-src_install() {
-	insinto $(python_get_sitedir)/${PN}
-	insopts -m 0755
-	doins nagstamon.py
-
-	dodir /usr/share/nagstamon
-	cp -a resources "${D}"/usr/share/nagstamon
-
-	dosym $(python_get_sitedir)/${PN}/${PN}.py /usr/bin/${PN}
-}
-- 
cgit v1.2.3-65-gdbad