svn commit: r450378 - in head/shells: . xonsh xonsh/files

Matthew Seaman matthew at FreeBSD.org
Fri Sep 22 14:57:43 UTC 2017


Author: matthew
Date: Fri Sep 22 14:57:41 2017
New Revision: 450378
URL: https://svnweb.freebsd.org/changeset/ports/450378

Log:
  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.
  
  WWW: http://xon.sh
  
  PR:		220596
  Submitted by:	roberfern at gmail.com

Added:
  head/shells/xonsh/
  head/shells/xonsh/Makefile   (contents, props changed)
  head/shells/xonsh/distinfo   (contents, props changed)
  head/shells/xonsh/files/
  head/shells/xonsh/files/patch-xonsh_platform.py   (contents, props changed)
  head/shells/xonsh/files/patch-xonsh_xoreutils_uptime.py   (contents, props changed)
  head/shells/xonsh/pkg-descr   (contents, props changed)
Modified:
  head/shells/Makefile

Modified: head/shells/Makefile
==============================================================================
--- head/shells/Makefile	Fri Sep 22 14:09:43 2017	(r450377)
+++ head/shells/Makefile	Fri Sep 22 14:57:41 2017	(r450378)
@@ -45,6 +45,7 @@
     SUBDIR += viewglob
     SUBDIR += vshnu
     SUBDIR += wcd
+    SUBDIR += xonsh
     SUBDIR += zsh
     SUBDIR += zsh-navigation-tools
 

Added: head/shells/xonsh/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/xonsh/Makefile	Fri Sep 22 14:57:41 2017	(r450378)
@@ -0,0 +1,21 @@
+# $FreeBSD$
+
+PORTNAME=	xonsh
+PORTVERSION=	0.5.12
+CATEGORIES=	shells python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	roberfern at gmail.com
+COMMENT=	Python-ish BASH-wards shell
+
+LICENSE=	BSD2CLAUSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}amalgamate>=0:devel/py-amalgamate
+
+NO_ARCH=	yes
+
+USES=		python:3.4+
+USE_PYTHON=	distutils autoplist concurrent
+
+.include <bsd.port.mk>

Added: head/shells/xonsh/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/xonsh/distinfo	Fri Sep 22 14:57:41 2017	(r450378)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1506080374
+SHA256 (xonsh-0.5.12.tar.gz) = 4ca8fd5f1ce5532fba252132a7a7db26b38d80429d8d538928d1aed26149e5fb
+SIZE (xonsh-0.5.12.tar.gz) = 686495

Added: head/shells/xonsh/files/patch-xonsh_platform.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/xonsh/files/patch-xonsh_platform.py	Fri Sep 22 14:57:41 2017	(r450378)
@@ -0,0 +1,11 @@
+--- xonsh/platform.py.orig	2017-03-12 02:36:40 UTC
++++ xonsh/platform.py
+@@ -491,7 +491,7 @@ def LIBC():
+         libc = ctypes.CDLL('cygwin1.dll')
+     elif ON_BSD:
+         try:
+-            libc = ctypes.CDLL('libc.so')
++      	     libc = ctypes.CDLL(ctypes.util.find_library("c"))
+         except AttributeError:
+             libc = None
+         except OSError:

Added: head/shells/xonsh/files/patch-xonsh_xoreutils_uptime.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/xonsh/files/patch-xonsh_xoreutils_uptime.py	Fri Sep 22 14:57:41 2017	(r450378)
@@ -0,0 +1,11 @@
+--- xonsh/xoreutils/uptime.py.orig	2017-02-11 16:24:07 UTC
++++ xonsh/xoreutils/uptime.py
+@@ -100,7 +100,7 @@ def _uptime_bsd():
+         return None
+     # Determine how much space we need for the response.
+     sz = ctypes.c_uint(0)
+-    xp.LIBC.sysctlbyname('kern.boottime', None, ctypes.byref(sz), None, 0)
++    xp.LIBC.sysctlbyname(b'kern.boottime', None, ctypes.byref(sz), None, 0)
+     if sz.value != struct.calcsize('@LL'):
+         # Unexpected, let's give up.
+         return None

Added: head/shells/xonsh/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/shells/xonsh/pkg-descr	Fri Sep 22 14:57:41 2017	(r450378)
@@ -0,0 +1,7 @@
+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.
+
+WWW: http://xon.sh


More information about the svn-ports-all mailing list