pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

xonsh: Add NetBSD support



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sun Aug 21 13:01:54 2016 +0200
Changeset:	3b717c8818502176b6640dfea47ad10bbc2edaff

Modified Files:
	xonsh/distinfo
Added Files:
	xonsh/patches/patch-news_netbsd.rst
	xonsh/patches/patch-xonsh_aliases.py
	xonsh/patches/patch-xonsh_platform.py

Log Message:
xonsh: Add NetBSD support

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3b717c8818502176b6640dfea47ad10bbc2edaff

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 xonsh/distinfo                        |  3 +++
 xonsh/patches/patch-news_netbsd.rst   | 18 ++++++++++++++++++
 xonsh/patches/patch-xonsh_aliases.py  | 24 ++++++++++++++++++++++++
 xonsh/patches/patch-xonsh_platform.py | 17 +++++++++++++++++
 4 files changed, 62 insertions(+)

diffs:
diff --git a/xonsh/distinfo b/xonsh/distinfo
index c5a2895..c398751 100644
--- a/xonsh/distinfo
+++ b/xonsh/distinfo
@@ -4,3 +4,6 @@ SHA1 (xonsh-0.4.5.tar.gz) = bae4eb57f2e8be1e4c39e9b9afc99b9e1e6fabe6
 RMD160 (xonsh-0.4.5.tar.gz) = e1a1e80623a94198ce601065a956b932e2a20c7b
 SHA512 (xonsh-0.4.5.tar.gz) = a1ae8ba47cd9793c14309d81fbfcd24cd12f55cb42e1bee9f1c9657f33e30b8ead3d455781aaac8030dadaf2196fc061f6d5407d8baebeb8202ca6e3bf51a130
 Size (xonsh-0.4.5.tar.gz) = 1554875 bytes
+SHA1 (patch-news_netbsd.rst) = 9758537cc89d8e5216c1027c0700c3f66871eabc
+SHA1 (patch-xonsh_aliases.py) = 90ad347e0a56e801f3d87ba73cb7d4501b9b9122
+SHA1 (patch-xonsh_platform.py) = 6f9f9df95a2fe447929ca25040d06fae41b3df37
diff --git a/xonsh/patches/patch-news_netbsd.rst b/xonsh/patches/patch-news_netbsd.rst
new file mode 100644
index 0000000..90df4c3
--- /dev/null
+++ b/xonsh/patches/patch-news_netbsd.rst
@@ -0,0 +1,18 @@
+$NetBSD$
+
+--- news/netbsd.rst.orig	2016-08-21 10:54:55.638271601 +0000
++++ news/netbsd.rst
+@@ -0,0 +1,13 @@
++**Added:**
++
++* NetBSD is now supported.
++
++**Changed:** None
++
++**Deprecated:** None
++
++**Removed:** None
++
++**Fixed:** None
++
++**Security:** None
diff --git a/xonsh/patches/patch-xonsh_aliases.py b/xonsh/patches/patch-xonsh_aliases.py
new file mode 100644
index 0000000..9d7999d
--- /dev/null
+++ b/xonsh/patches/patch-xonsh_aliases.py
@@ -0,0 +1,24 @@
+$NetBSD$
+
+--- xonsh/aliases.py.orig	2016-08-17 00:35:49.000000000 +0000
++++ xonsh/aliases.py
+@@ -15,7 +15,7 @@ from xonsh.foreign_shells import foreign
+ from xonsh.jobs import jobs, fg, bg, clean_jobs
+ from xonsh.history import history_main
+ from xonsh.platform import (ON_ANACONDA, ON_DARWIN, ON_WINDOWS, ON_FREEBSD,
+-                            scandir)
++                            ON_NETBSD, scandir)
+ from xonsh.proc import foreground
+ from xonsh.replay import replay_main
+ from xonsh.timings import timeit_alias
+@@ -593,6 +593,10 @@ def make_default_aliases():
+         default_aliases['egrep'] = ['egrep', '--color=auto']
+         default_aliases['fgrep'] = ['fgrep', '--color=auto']
+         default_aliases['ls'] = ['ls', '-G']
++    elif ON_NETBSD:
++        default_aliases['grep'] = ['grep', '--color=auto']
++        default_aliases['egrep'] = ['egrep', '--color=auto']
++        default_aliases['fgrep'] = ['fgrep', '--color=auto']
+     else:
+         default_aliases['grep'] = ['grep', '--color=auto']
+         default_aliases['egrep'] = ['egrep', '--color=auto']
diff --git a/xonsh/patches/patch-xonsh_platform.py b/xonsh/patches/patch-xonsh_platform.py
new file mode 100644
index 0000000..2f7b91d
--- /dev/null
+++ b/xonsh/patches/patch-xonsh_platform.py
@@ -0,0 +1,17 @@
+$NetBSD$
+
+--- xonsh/platform.py.orig	2016-08-17 00:35:49.000000000 +0000
++++ xonsh/platform.py
+@@ -46,6 +46,12 @@ ON_POSIX = LazyBool(lambda: (os.name == 
+ ON_FREEBSD = LazyBool(lambda: (sys.platform.startswith('freebsd')),
+                       globals(), 'ON_FREEBSD')
+ """``True`` if on a FreeBSD operating system, else ``False``."""
++ON_NETBSD = LazyBool(lambda: (sys.platform.startswith('netbsd')),
++                      globals(), 'ON_NETBSD')
++"""``True`` if on a NetBSD operating system, else ``False``."""
++ON_BSD = LazyBool(lambda: ON_FREEBSD or ON_NETBSD,
++                  globals(), 'ON_BSD')
++"""``True`` if on a BSD operating system, else ``False``."""
+ 
+ 
+ #


Home | Main Index | Thread Index | Old Index