summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2011-12-04 14:29:55 +0000
committerJustin Lecher <jlec@gentoo.org>2011-12-04 14:29:55 +0000
commita0e11aa3b90cccaed2df0ce56281570d12e93e86 (patch)
tree336e4741e893ec1660d9f8505febb6f4104dd3b6 /net-misc/nut-monitor
parentDrop alpha/ia64 keywords (diff)
downloadgentoo-2-a0e11aa3b90cccaed2df0ce56281570d12e93e86.tar.gz
gentoo-2-a0e11aa3b90cccaed2df0ce56281570d12e93e86.tar.bz2
gentoo-2-a0e11aa3b90cccaed2df0ce56281570d12e93e86.zip
Fix location of glade file
(Portage version: 2.2.0_alpha79/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/nut-monitor')
-rw-r--r--net-misc/nut-monitor/ChangeLog6
-rw-r--r--net-misc/nut-monitor/files/nut-monitor-1.3-glade.patch16
-rw-r--r--net-misc/nut-monitor/nut-monitor-1.3.ebuild6
3 files changed, 26 insertions, 2 deletions
diff --git a/net-misc/nut-monitor/ChangeLog b/net-misc/nut-monitor/ChangeLog
index 2d27c14ac844..4e7bf17c424d 100644
--- a/net-misc/nut-monitor/ChangeLog
+++ b/net-misc/nut-monitor/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/nut-monitor
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/nut-monitor/ChangeLog,v 1.2 2011/12/04 14:09:57 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nut-monitor/ChangeLog,v 1.3 2011/12/04 14:29:55 jlec Exp $
+
+ 04 Dec 2011; Justin Lecher <jlec@gentoo.org> nut-monitor-1.3.ebuild,
+ +files/nut-monitor-1.3-glade.patch:
+ Fix location of glade file
*nut-monitor-1.3 (04 Dec 2011)
diff --git a/net-misc/nut-monitor/files/nut-monitor-1.3-glade.patch b/net-misc/nut-monitor/files/nut-monitor-1.3-glade.patch
new file mode 100644
index 000000000000..2bcb8509b132
--- /dev/null
+++ b/net-misc/nut-monitor/files/nut-monitor-1.3-glade.patch
@@ -0,0 +1,16 @@
+ NUT-Monitor | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/NUT-Monitor b/NUT-Monitor
+index 283c4aa..d99f4fd 100755
+--- a/NUT-Monitor
++++ b/NUT-Monitor
+@@ -70,7 +70,7 @@ class interface :
+ ( cmd_opts, args ) = opt_parser.parse_args()
+
+
+- self.__glade_file = os.path.join( os.path.dirname( sys.argv[0] ), "gui-1.3.glade" )
++ self.__glade_file = "/usr/share/nut-monitor/gui-1.3.glade"
+
+ self.__widgets["interface"] = gtk.glade.XML( self.__glade_file, "window1", APP )
+ self.__widgets["main_window"] = self.__widgets["interface"].get_widget("window1")
diff --git a/net-misc/nut-monitor/nut-monitor-1.3.ebuild b/net-misc/nut-monitor/nut-monitor-1.3.ebuild
index 3b4ebd835b42..1facae43badb 100644
--- a/net-misc/nut-monitor/nut-monitor-1.3.ebuild
+++ b/net-misc/nut-monitor/nut-monitor-1.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/nut-monitor/nut-monitor-1.3.ebuild,v 1.1 2011/12/04 14:09:57 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/nut-monitor/nut-monitor-1.3.ebuild,v 1.2 2011/12/04 14:29:55 jlec Exp $
EAPI=4
@@ -20,6 +20,10 @@ RDEPEND="
dev-python/pynut"
DEPEND=""
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-glade.patch
+}
+
src_install() {
dobin NUT-Monitor
insinto /usr/share/nut-monitor