diff options
author | kamil <kamil@pkgsrc.org> | 2016-08-21 11:34:57 +0000 |
---|---|---|
committer | kamil <kamil@pkgsrc.org> | 2016-08-21 11:34:57 +0000 |
commit | a14e732e4751b29f9ea56ddc25cb266ca278380c (patch) | |
tree | 326facef8ed118deb8e0b9b7b86a34f36c9b10f9 /shells/xonsh | |
parent | 4f870991ef947127410a35cf612ef9e8b2887b1d (diff) | |
download | pkgsrc-a14e732e4751b29f9ea56ddc25cb266ca278380c.tar.gz |
Import xonsh-0.4.5 as shells/xonsh
xonsh is a Python-ish, BASHwards-looking shell language and command prompt. The
language is a superset of Python 3.4+ with additional shell primitives. xonsh
(pronounced conch) is meant for the daily use of experts and novices alike.
Diffstat (limited to 'shells/xonsh')
-rw-r--r-- | shells/xonsh/DESCR | 3 | ||||
-rw-r--r-- | shells/xonsh/Makefile | 29 | ||||
-rw-r--r-- | shells/xonsh/PLIST | 255 | ||||
-rw-r--r-- | shells/xonsh/distinfo | 9 | ||||
-rw-r--r-- | shells/xonsh/patches/patch-news_netbsd.rst | 21 | ||||
-rw-r--r-- | shells/xonsh/patches/patch-xonsh_aliases.py | 27 | ||||
-rw-r--r-- | shells/xonsh/patches/patch-xonsh_platform.py | 20 |
7 files changed, 364 insertions, 0 deletions
diff --git a/shells/xonsh/DESCR b/shells/xonsh/DESCR new file mode 100644 index 00000000000..1050cdde72f --- /dev/null +++ b/shells/xonsh/DESCR @@ -0,0 +1,3 @@ +xonsh is a Python-ish, BASHwards-looking shell language and command prompt. The +language is a superset of Python 3.4+ with additional shell primitives. xonsh +(pronounced conch) is meant for the daily use of experts and novices alike. diff --git a/shells/xonsh/Makefile b/shells/xonsh/Makefile new file mode 100644 index 00000000000..b925ae9b383 --- /dev/null +++ b/shells/xonsh/Makefile @@ -0,0 +1,29 @@ +# $NetBSD: Makefile,v 1.1 2016/08/21 11:34:57 kamil Exp $ + +DISTNAME= xonsh-0.4.5 +CATEGORIES= shells python +MASTER_SITES= ${MASTER_SITE_GITHUB:=xonsh/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://xon.sh/ +COMMENT= Python-ish, BASHwards-looking shell language and command prompt +LICENSE= 2-clause-bsd + +USE_LANGUAGES= # none + +PYTHON_VERSIONS_INCOMPATIBLE= 27 + +DEPENDS+= ${PYPKGPREFIX}-ply-[0-9]*:../../devel/py-ply +DEPENDS+= ${PYPKGPREFIX}-prompt_toolkit-[0-9]*:../../devel/py-prompt_toolkit +DEPENDS+= ${PYPKGPREFIX}-pygments-[0-9]*:../../textproc/py-pygments + +PKG_SHELL= ${PREFIX}/bin/xon.sh +PKG_SHELL+= ${PREFIX}/bin/xonsh + +SUBST_CLASSES+= xonsh +SUBST_STAGE.xonsh= post-patch +SUBST_FILES.xonsh= scripts/xon.sh +SUBST_SED.xonsh= -e 's,python3,${PYTHONBIN},' + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/shells/xonsh/PLIST b/shells/xonsh/PLIST new file mode 100644 index 00000000000..ec0b6bcf9b2 --- /dev/null +++ b/shells/xonsh/PLIST @@ -0,0 +1,255 @@ +@comment $NetBSD: PLIST,v 1.1 2016/08/21 11:34:57 kamil Exp $ +bin/xon.sh +bin/xonsh +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/entry_points.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/xonsh/__amalgam__.py +${PYSITELIB}/xonsh/__init__.py +${PYSITELIB}/xonsh/__main__.py +${PYSITELIB}/xonsh/__amalgam__.pyo +${PYSITELIB}/xonsh/__amalgam__.pyc +${PYSITELIB}/xonsh/__init__.pyo +${PYSITELIB}/xonsh/__init__.pyc +${PYSITELIB}/xonsh/__main__.pyo +${PYSITELIB}/xonsh/__main__.pyc +${PYSITELIB}/xonsh/aliases.pyo +${PYSITELIB}/xonsh/aliases.pyc +${PYSITELIB}/xonsh/ansi_colors.pyo +${PYSITELIB}/xonsh/ansi_colors.pyc +${PYSITELIB}/xonsh/ast.pyo +${PYSITELIB}/xonsh/ast.pyc +${PYSITELIB}/xonsh/base_shell.pyo +${PYSITELIB}/xonsh/base_shell.pyc +${PYSITELIB}/xonsh/built_ins.pyo +${PYSITELIB}/xonsh/built_ins.pyc +${PYSITELIB}/xonsh/codecache.pyo +${PYSITELIB}/xonsh/codecache.pyc +${PYSITELIB}/xonsh/commands_cache.pyo +${PYSITELIB}/xonsh/commands_cache.pyc +${PYSITELIB}/xonsh/completer.pyo +${PYSITELIB}/xonsh/completer.pyc +${PYSITELIB}/xonsh/contexts.pyo +${PYSITELIB}/xonsh/contexts.pyc +${PYSITELIB}/xonsh/diff_history.pyo +${PYSITELIB}/xonsh/diff_history.pyc +${PYSITELIB}/xonsh/dirstack.pyo +${PYSITELIB}/xonsh/dirstack.pyc +${PYSITELIB}/xonsh/environ.pyo +${PYSITELIB}/xonsh/environ.pyc +${PYSITELIB}/xonsh/execer.pyo +${PYSITELIB}/xonsh/execer.pyc +${PYSITELIB}/xonsh/foreign_shells.pyo +${PYSITELIB}/xonsh/foreign_shells.pyc +${PYSITELIB}/xonsh/history.pyo +${PYSITELIB}/xonsh/history.pyc +${PYSITELIB}/xonsh/imphooks.pyo +${PYSITELIB}/xonsh/imphooks.pyc +${PYSITELIB}/xonsh/inspectors.pyo +${PYSITELIB}/xonsh/inspectors.pyc +${PYSITELIB}/xonsh/jobs.pyo +${PYSITELIB}/xonsh/jobs.pyc +${PYSITELIB}/xonsh/jupyter_kernel.pyo +${PYSITELIB}/xonsh/jupyter_kernel.pyc +${PYSITELIB}/xonsh/lazyasd.pyo +${PYSITELIB}/xonsh/lazyasd.pyc +${PYSITELIB}/xonsh/lazyimps.pyo +${PYSITELIB}/xonsh/lazyimps.pyc +${PYSITELIB}/xonsh/lazyjson.pyo +${PYSITELIB}/xonsh/lazyjson.pyc +${PYSITELIB}/xonsh/lexer.pyo +${PYSITELIB}/xonsh/lexer.pyc +${PYSITELIB}/xonsh/main.pyo +${PYSITELIB}/xonsh/main.pyc +${PYSITELIB}/xonsh/openpy.pyo +${PYSITELIB}/xonsh/openpy.pyc +${PYSITELIB}/xonsh/parser.pyo +${PYSITELIB}/xonsh/parser.pyc +${PYSITELIB}/xonsh/platform.pyo +${PYSITELIB}/xonsh/platform.pyc +${PYSITELIB}/xonsh/pretty.pyo +${PYSITELIB}/xonsh/pretty.pyc +${PYSITELIB}/xonsh/proc.pyo +${PYSITELIB}/xonsh/proc.pyc +${PYSITELIB}/xonsh/pyghooks.pyo +${PYSITELIB}/xonsh/pyghooks.pyc +${PYSITELIB}/xonsh/readline_shell.pyo +${PYSITELIB}/xonsh/readline_shell.pyc +${PYSITELIB}/xonsh/replay.pyo +${PYSITELIB}/xonsh/replay.pyc +${PYSITELIB}/xonsh/shell.pyo +${PYSITELIB}/xonsh/shell.pyc +${PYSITELIB}/xonsh/teepty.pyo +${PYSITELIB}/xonsh/teepty.pyc +${PYSITELIB}/xonsh/timings.pyo +${PYSITELIB}/xonsh/timings.pyc +${PYSITELIB}/xonsh/tokenize.pyo +${PYSITELIB}/xonsh/tokenize.pyc +${PYSITELIB}/xonsh/tools.pyo +${PYSITELIB}/xonsh/tools.pyc +${PYSITELIB}/xonsh/tracer.pyo +${PYSITELIB}/xonsh/tracer.pyc +${PYSITELIB}/xonsh/winutils.pyo +${PYSITELIB}/xonsh/winutils.pyc +${PYSITELIB}/xonsh/wizard.pyo +${PYSITELIB}/xonsh/wizard.pyc +${PYSITELIB}/xonsh/xonfig.pyo +${PYSITELIB}/xonsh/xonfig.pyc +${PYSITELIB}/xonsh/xontribs.pyo +${PYSITELIB}/xonsh/xontribs.pyc +${PYSITELIB}/xonsh/aliases.py +${PYSITELIB}/xonsh/ansi_colors.py +${PYSITELIB}/xonsh/ast.py +${PYSITELIB}/xonsh/base_shell.py +${PYSITELIB}/xonsh/built_ins.py +${PYSITELIB}/xonsh/codecache.py +${PYSITELIB}/xonsh/commands_cache.py +${PYSITELIB}/xonsh/completer.py +${PYSITELIB}/xonsh/completers/__amalgam__.py +${PYSITELIB}/xonsh/completers/__init__.py +${PYSITELIB}/xonsh/completers/__amalgam__.pyo +${PYSITELIB}/xonsh/completers/__amalgam__.pyc +${PYSITELIB}/xonsh/completers/__init__.pyo +${PYSITELIB}/xonsh/completers/__init__.pyc +${PYSITELIB}/xonsh/completers/_aliases.pyo +${PYSITELIB}/xonsh/completers/_aliases.pyc +${PYSITELIB}/xonsh/completers/base.pyo +${PYSITELIB}/xonsh/completers/base.pyc +${PYSITELIB}/xonsh/completers/bash.pyo +${PYSITELIB}/xonsh/completers/bash.pyc +${PYSITELIB}/xonsh/completers/commands.pyo +${PYSITELIB}/xonsh/completers/commands.pyc +${PYSITELIB}/xonsh/completers/completer.pyo +${PYSITELIB}/xonsh/completers/completer.pyc +${PYSITELIB}/xonsh/completers/dirs.pyo +${PYSITELIB}/xonsh/completers/dirs.pyc +${PYSITELIB}/xonsh/completers/init.pyo +${PYSITELIB}/xonsh/completers/init.pyc +${PYSITELIB}/xonsh/completers/man.pyo +${PYSITELIB}/xonsh/completers/man.pyc +${PYSITELIB}/xonsh/completers/path.pyo +${PYSITELIB}/xonsh/completers/path.pyc +${PYSITELIB}/xonsh/completers/pip.pyo +${PYSITELIB}/xonsh/completers/pip.pyc +${PYSITELIB}/xonsh/completers/python.pyo +${PYSITELIB}/xonsh/completers/python.pyc +${PYSITELIB}/xonsh/completers/tools.pyo +${PYSITELIB}/xonsh/completers/tools.pyc +${PYSITELIB}/xonsh/completers/_aliases.py +${PYSITELIB}/xonsh/completers/base.py +${PYSITELIB}/xonsh/completers/bash.py +${PYSITELIB}/xonsh/completers/commands.py +${PYSITELIB}/xonsh/completers/completer.py +${PYSITELIB}/xonsh/completers/dirs.py +${PYSITELIB}/xonsh/completers/init.py +${PYSITELIB}/xonsh/completers/man.py +${PYSITELIB}/xonsh/completers/path.py +${PYSITELIB}/xonsh/completers/pip.py +${PYSITELIB}/xonsh/completers/python.py +${PYSITELIB}/xonsh/completers/tools.py +${PYSITELIB}/xonsh/contexts.py +${PYSITELIB}/xonsh/diff_history.py +${PYSITELIB}/xonsh/dirstack.py +${PYSITELIB}/xonsh/environ.py +${PYSITELIB}/xonsh/execer.py +${PYSITELIB}/xonsh/foreign_shells.py +${PYSITELIB}/xonsh/history.py +${PYSITELIB}/xonsh/imphooks.py +${PYSITELIB}/xonsh/inspectors.py +${PYSITELIB}/xonsh/jobs.py +${PYSITELIB}/xonsh/jupyter_kernel.py +${PYSITELIB}/xonsh/lazyasd.py +${PYSITELIB}/xonsh/lazyimps.py +${PYSITELIB}/xonsh/lazyjson.py +${PYSITELIB}/xonsh/lexer.py +${PYSITELIB}/xonsh/main.py +${PYSITELIB}/xonsh/openpy.py +${PYSITELIB}/xonsh/parser.py +${PYSITELIB}/xonsh/parsers/__init__.py +${PYSITELIB}/xonsh/parsers/__init__.pyo +${PYSITELIB}/xonsh/parsers/__init__.pyc +${PYSITELIB}/xonsh/parsers/base.pyo +${PYSITELIB}/xonsh/parsers/base.pyc +${PYSITELIB}/xonsh/parsers/v34.pyo +${PYSITELIB}/xonsh/parsers/v34.pyc +${PYSITELIB}/xonsh/parsers/v35.pyo +${PYSITELIB}/xonsh/parsers/v35.pyc +${PYSITELIB}/xonsh/parsers/base.py +${PYSITELIB}/xonsh/parsers/v34.py +${PYSITELIB}/xonsh/parsers/v35.py +${PYSITELIB}/xonsh/platform.py +${PYSITELIB}/xonsh/ply/__init__.py +${PYSITELIB}/xonsh/ply/__init__.pyo +${PYSITELIB}/xonsh/ply/__init__.pyc +${PYSITELIB}/xonsh/ply/cpp.pyo +${PYSITELIB}/xonsh/ply/cpp.pyc +${PYSITELIB}/xonsh/ply/ctokens.pyo +${PYSITELIB}/xonsh/ply/ctokens.pyc +${PYSITELIB}/xonsh/ply/lex.pyo +${PYSITELIB}/xonsh/ply/lex.pyc +${PYSITELIB}/xonsh/ply/yacc.pyo +${PYSITELIB}/xonsh/ply/yacc.pyc +${PYSITELIB}/xonsh/ply/ygen.pyo +${PYSITELIB}/xonsh/ply/ygen.pyc +${PYSITELIB}/xonsh/ply/cpp.py +${PYSITELIB}/xonsh/ply/ctokens.py +${PYSITELIB}/xonsh/ply/lex.py +${PYSITELIB}/xonsh/ply/yacc.py +${PYSITELIB}/xonsh/ply/ygen.py +${PYSITELIB}/xonsh/pretty.py +${PYSITELIB}/xonsh/proc.py +${PYSITELIB}/xonsh/ptk/__init__.py +${PYSITELIB}/xonsh/ptk/__init__.pyo +${PYSITELIB}/xonsh/ptk/__init__.pyc +${PYSITELIB}/xonsh/ptk/completer.pyo +${PYSITELIB}/xonsh/ptk/completer.pyc +${PYSITELIB}/xonsh/ptk/history.pyo +${PYSITELIB}/xonsh/ptk/history.pyc +${PYSITELIB}/xonsh/ptk/key_bindings.pyo +${PYSITELIB}/xonsh/ptk/key_bindings.pyc +${PYSITELIB}/xonsh/ptk/shell.pyo +${PYSITELIB}/xonsh/ptk/shell.pyc +${PYSITELIB}/xonsh/ptk/shortcuts.pyo +${PYSITELIB}/xonsh/ptk/shortcuts.pyc +${PYSITELIB}/xonsh/ptk/completer.py +${PYSITELIB}/xonsh/ptk/history.py +${PYSITELIB}/xonsh/ptk/key_bindings.py +${PYSITELIB}/xonsh/ptk/shell.py +${PYSITELIB}/xonsh/ptk/shortcuts.py +${PYSITELIB}/xonsh/pyghooks.py +${PYSITELIB}/xonsh/readline_shell.py +${PYSITELIB}/xonsh/replay.py +${PYSITELIB}/xonsh/shell.py +${PYSITELIB}/xonsh/teepty.py +${PYSITELIB}/xonsh/timings.py +${PYSITELIB}/xonsh/tokenize.py +${PYSITELIB}/xonsh/tools.py +${PYSITELIB}/xonsh/tracer.py +${PYSITELIB}/xonsh/winutils.py +${PYSITELIB}/xonsh/wizard.py +${PYSITELIB}/xonsh/xonfig.py +${PYSITELIB}/xonsh/xontribs.json +${PYSITELIB}/xonsh/xontribs.py +${PYSITELIB}/xonsh/xoreutils/__init__.py +${PYSITELIB}/xonsh/xoreutils/__init__.pyo +${PYSITELIB}/xonsh/xoreutils/__init__.pyc +${PYSITELIB}/xonsh/xoreutils/_which.pyo +${PYSITELIB}/xonsh/xoreutils/_which.pyc +${PYSITELIB}/xonsh/xoreutils/_which.py +${PYSITELIB}/xontrib/distributed.pyo +${PYSITELIB}/xontrib/distributed.pyc +${PYSITELIB}/xontrib/mpl.pyo +${PYSITELIB}/xontrib/mpl.pyc +${PYSITELIB}/xontrib/mplhooks.pyo +${PYSITELIB}/xontrib/mplhooks.pyc +${PYSITELIB}/xontrib/vox.pyo +${PYSITELIB}/xontrib/vox.pyc +${PYSITELIB}/xontrib/voxapi.pyo +${PYSITELIB}/xontrib/voxapi.pyc +${PYSITELIB}/xontrib/distributed.py +${PYSITELIB}/xontrib/mpl.py +${PYSITELIB}/xontrib/mplhooks.py +${PYSITELIB}/xontrib/vox.py +${PYSITELIB}/xontrib/voxapi.py diff --git a/shells/xonsh/distinfo b/shells/xonsh/distinfo new file mode 100644 index 00000000000..2e7b5d58e4b --- /dev/null +++ b/shells/xonsh/distinfo @@ -0,0 +1,9 @@ +$NetBSD: distinfo,v 1.1 2016/08/21 11:34:57 kamil Exp $ + +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) = 34fb889ee241dd35c9b4e243711474b935616ac3 +SHA1 (patch-xonsh_aliases.py) = 584190affc8b591e31d2a0e313bd26b7080783f1 +SHA1 (patch-xonsh_platform.py) = 9ff701549ef5d4f17693b3d3d6df326911a7ea82 diff --git a/shells/xonsh/patches/patch-news_netbsd.rst b/shells/xonsh/patches/patch-news_netbsd.rst new file mode 100644 index 00000000000..62829b44e41 --- /dev/null +++ b/shells/xonsh/patches/patch-news_netbsd.rst @@ -0,0 +1,21 @@ +$NetBSD: patch-news_netbsd.rst,v 1.1 2016/08/21 11:34:57 kamil Exp $ + +Cherry-pick upstream patch adding NetBSD support +https://github.com/xonsh/xonsh/pull/1601 + +--- 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/shells/xonsh/patches/patch-xonsh_aliases.py b/shells/xonsh/patches/patch-xonsh_aliases.py new file mode 100644 index 00000000000..cbf422aaf3e --- /dev/null +++ b/shells/xonsh/patches/patch-xonsh_aliases.py @@ -0,0 +1,27 @@ +$NetBSD: patch-xonsh_aliases.py,v 1.1 2016/08/21 11:34:57 kamil Exp $ + +Cherry-pick upstream patch adding NetBSD support +https://github.com/xonsh/xonsh/pull/1601 + +--- 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/shells/xonsh/patches/patch-xonsh_platform.py b/shells/xonsh/patches/patch-xonsh_platform.py new file mode 100644 index 00000000000..802dbe1c2b4 --- /dev/null +++ b/shells/xonsh/patches/patch-xonsh_platform.py @@ -0,0 +1,20 @@ +$NetBSD: patch-xonsh_platform.py,v 1.1 2016/08/21 11:34:57 kamil Exp $ + +Cherry-pick upstream patch adding NetBSD support +https://github.com/xonsh/xonsh/pull/1601 + +--- 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``.""" + + + # |