summaryrefslogtreecommitdiff
path: root/ham/chirp/patches
diff options
context:
space:
mode:
authordbj <dbj@pkgsrc.org>2014-07-21 07:57:20 +0000
committerdbj <dbj@pkgsrc.org>2014-07-21 07:57:20 +0000
commitae084901386d6d265aaf908e28c676d63b4626af (patch)
treeeb6e7a4d2802133e489070cdb57655bd4f120acb /ham/chirp/patches
parent169405cc4d04063b5644859781c9308194355210 (diff)
downloadpkgsrc-ae084901386d6d265aaf908e28c676d63b4626af.tar.gz
import chirp from http://chirp.danplanet.com/
Tool for programming Amateur Radio HTs
Diffstat (limited to 'ham/chirp/patches')
-rw-r--r--ham/chirp/patches/patch-chirp_platform.py22
-rw-r--r--ham/chirp/patches/patch-chirpui_mainapp.py14
-rw-r--r--ham/chirp/patches/patch-setup.py16
3 files changed, 52 insertions, 0 deletions
diff --git a/ham/chirp/patches/patch-chirp_platform.py b/ham/chirp/patches/patch-chirp_platform.py
new file mode 100644
index 00000000000..490cdae7f0f
--- /dev/null
+++ b/ham/chirp/patches/patch-chirp_platform.py
@@ -0,0 +1,22 @@
+$NetBSD: patch-chirp_platform.py,v 1.1 2014/07/21 07:57:21 dbj Exp $
+This software contains darwin specific tweaks which do not apply to pkgsrc
+
+--- chirp/platform.py.orig 2014-04-29 03:55:43.000000000 +0000
++++ chirp/platform.py
+@@ -249,16 +249,6 @@ class UnixPlatform(Platform):
+
+ Platform.__init__(self, basepath)
+
+- # This is a hack that needs to be properly fixed by importing the
+- # latest changes to this module from d-rats. In the interest of
+- # time, however, I'll throw it here
+- if sys.platform == "darwin":
+- if not os.environ.has_key("DISPLAY"):
+- print "Forcing DISPLAY for MacOS"
+- os.environ["DISPLAY"] = ":0"
+-
+- os.environ["PANGO_RC_FILE"] = "../Resources/etc/pango/pangorc"
+-
+ def default_dir(self):
+ return os.path.abspath(os.getenv("HOME"))
+
diff --git a/ham/chirp/patches/patch-chirpui_mainapp.py b/ham/chirp/patches/patch-chirpui_mainapp.py
new file mode 100644
index 00000000000..d8e81007a29
--- /dev/null
+++ b/ham/chirp/patches/patch-chirpui_mainapp.py
@@ -0,0 +1,14 @@
+$NetBSD: patch-chirpui_mainapp.py,v 1.1 2014/07/21 07:57:21 dbj Exp $
+This software contains darwin specific tweaks which do not apply to pkgsrc
+
+--- chirpui/mainapp.py.orig 2014-02-22 08:01:32.000000000 +0000
++++ chirpui/mainapp.py
+@@ -1715,8 +1715,6 @@ If you think that it is valid, you can s
+
+ if os.name != "nt":
+ self._set_icon() # Windows gets the icon from the exe
+- if os.uname()[0] == "Darwin":
+- self._init_macos(mbar)
+
+ vbox.pack_start(mbar, 0, 0, 0)
+
diff --git a/ham/chirp/patches/patch-setup.py b/ham/chirp/patches/patch-setup.py
new file mode 100644
index 00000000000..9ded3572329
--- /dev/null
+++ b/ham/chirp/patches/patch-setup.py
@@ -0,0 +1,16 @@
+$NetBSD: patch-setup.py,v 1.1 2014/07/21 07:57:21 dbj Exp $
+This software contains darwin specific tweaks which do not apply to pkgsrc
+
+--- setup.py.orig 2012-12-24 08:00:57.000000000 +0000
++++ setup.py
+@@ -141,9 +141,7 @@ def nuke_manifest(*files):
+ print >>f, fn
+ f.close()
+
+-if sys.platform == "darwin":
+- macos_build()
+-elif sys.platform == "win32":
++if sys.platform == "win32":
+ win32_build()
+ else:
+ if os.path.exists("rpttool"):