summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'x11-misc/xplanetFX/files')
-rw-r--r--x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch b/x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch
new file mode 100644
index 000000000000..0777e076c831
--- /dev/null
+++ b/x11-misc/xplanetFX/files/xplanetFX-2.6.4-gentoo-path.patch
@@ -0,0 +1,42 @@
+diff -Naur usr.orig/bin/xplanetFX usr/bin/xplanetFX
+--- usr.orig/bin/xplanetFX 2015-03-05 19:58:41.000000000 +0100
++++ usr/bin/xplanetFX 2015-03-16 14:28:28.235256123 +0100
+@@ -115,7 +115,7 @@
+ WGETPROXY="-e use_proxy=on -e http_proxy="$PROXY
+ fi
+
+-if which gsed; then
++if which gsed > /dev/null 2>&1; then
+ SEDEXE='gsed'
+ else
+ SEDEXE='sed'
+diff -Naur usr.orig/share/xplanetFX/xplanetFX_gtk usr/share/xplanetFX/xplanetFX_gtk
+--- usr.orig/share/xplanetFX/xplanetFX_gtk 2015-02-17 16:55:12.000000000 +0100
++++ usr/share/xplanetFX/xplanetFX_gtk 2015-03-16 14:28:53.147271051 +0100
+@@ -44,10 +44,7 @@
+
+ gobject.threads_init()
+
+-basedir = os.path.dirname(os.path.realpath(__file__))
+-if not os.path.exists(os.path.join(basedir, "xplanetFX_gtk.py")):
+- if os.path.exists(os.path.join(os.getcwd(), "xplanetFX_gtk.py")):
+- basedir = os.getcwd()
++basedir = "/usr/share/xplanetFX"
+ sys.path.insert(0, basedir)
+
+ class GUI():
+diff -Naur usr.orig/share/xplanetFX/xplanetFX_tray usr/share/xplanetFX/xplanetFX_tray
+--- usr.orig/share/xplanetFX/xplanetFX_tray 2014-05-08 01:46:44.000000000 +0200
++++ usr/share/xplanetFX/xplanetFX_tray 2015-03-16 14:29:20.634287466 +0100
+@@ -27,10 +27,7 @@
+
+ gobject.threads_init()
+
+-basedir = os.path.dirname(os.path.realpath(__file__))
+-if not os.path.exists(os.path.join(basedir, "xplanetFX_gtk.py")):
+- if os.path.exists(os.path.join(os.getcwd(), "xplanetFX_gtk.py")):
+- basedir = os.getcwd()
++basedir = "/usr/share/xplanetFX"
+ sys.path.insert(0, basedir)
+
+