From 71e6439c197c1b7edfa406f8b81aadf593654edd Mon Sep 17 00:00:00 2001 From: shadchin Date: Sun, 19 Jun 2016 12:29:41 +0000 Subject: [PATCH] Import py-backports-shutil-get-terminal-size 1.0.0, ok danj@ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A backport of the get_terminal_size function from Python 3.3’s shutil. Unlike the original version it is written in pure Python rather than C, so it might be a tiny bit slower. --- .../Makefile | 27 +++++++++++++++++++ .../distinfo | 2 ++ .../pkg/DESCR | 4 +++ .../pkg/PLIST | 13 +++++++++ 4 files changed, 46 insertions(+) create mode 100644 devel/py-backports-shutil-get-terminal-size/Makefile create mode 100644 devel/py-backports-shutil-get-terminal-size/distinfo create mode 100644 devel/py-backports-shutil-get-terminal-size/pkg/DESCR create mode 100644 devel/py-backports-shutil-get-terminal-size/pkg/PLIST diff --git a/devel/py-backports-shutil-get-terminal-size/Makefile b/devel/py-backports-shutil-get-terminal-size/Makefile new file mode 100644 index 00000000000..ddb3fb56c43 --- /dev/null +++ b/devel/py-backports-shutil-get-terminal-size/Makefile @@ -0,0 +1,27 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2016/06/19 12:29:41 shadchin Exp $ + +COMMENT = backport of the get_terminal_size function from shutil + +MODPY_EGG_VERSION = 1.0.0 +DISTNAME = backports.shutil_get_terminal_size-${MODPY_EGG_VERSION} +PKGNAME = py-backports-shutil-get-terminal-size-${MODPY_EGG_VERSION} +CATEGORIES = devel + +MAINTAINER = Alexandr Shadchin + +# MIT +PERMIT_PACKAGE_CDROM = Yes + +MODULES = lang/python + +MODPY_PI = Yes +MODPY_SETUPTOOLS = Yes + +RUN_DEPENDS = devel/py-backports + +TEST_DEPENDS = devel/py-test + +do-test: + cd ${WRKSRC} && ${MODPY_BIN} -m pytest + +.include diff --git a/devel/py-backports-shutil-get-terminal-size/distinfo b/devel/py-backports-shutil-get-terminal-size/distinfo new file mode 100644 index 00000000000..03580078451 --- /dev/null +++ b/devel/py-backports-shutil-get-terminal-size/distinfo @@ -0,0 +1,2 @@ +SHA256 (backports.shutil_get_terminal_size-1.0.0.tar.gz) = cT56giiugDQccFhtHMCoyqUgc0aSfiPQncvK8Y6t7IA= +SIZE (backports.shutil_get_terminal_size-1.0.0.tar.gz) = 4279 diff --git a/devel/py-backports-shutil-get-terminal-size/pkg/DESCR b/devel/py-backports-shutil-get-terminal-size/pkg/DESCR new file mode 100644 index 00000000000..cf42bf970f9 --- /dev/null +++ b/devel/py-backports-shutil-get-terminal-size/pkg/DESCR @@ -0,0 +1,4 @@ +A backport of the get_terminal_size function from Python 3.3’s shutil. + +Unlike the original version it is written in pure Python rather than C, +so it might be a tiny bit slower. diff --git a/devel/py-backports-shutil-get-terminal-size/pkg/PLIST b/devel/py-backports-shutil-get-terminal-size/pkg/PLIST new file mode 100644 index 00000000000..0b21c93c6c7 --- /dev/null +++ b/devel/py-backports-shutil-get-terminal-size/pkg/PLIST @@ -0,0 +1,13 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2016/06/19 12:29:41 shadchin Exp $ +lib/python${MODPY_VERSION}/site-packages/backports.shutil_get_terminal_size-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ +lib/python${MODPY_VERSION}/site-packages/backports.shutil_get_terminal_size-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO +lib/python${MODPY_VERSION}/site-packages/backports.shutil_get_terminal_size-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt +lib/python${MODPY_VERSION}/site-packages/backports.shutil_get_terminal_size-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/backports.shutil_get_terminal_size-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt +@comment lib/python${MODPY_VERSION}/site-packages/backports/__init__.py +@comment lib/python${MODPY_VERSION}/site-packages/backports/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/backports/shutil_get_terminal_size/ +lib/python${MODPY_VERSION}/site-packages/backports/shutil_get_terminal_size/__init__.py +lib/python${MODPY_VERSION}/site-packages/backports/shutil_get_terminal_size/__init__.pyc +lib/python${MODPY_VERSION}/site-packages/backports/shutil_get_terminal_size/get_terminal_size.py +lib/python${MODPY_VERSION}/site-packages/backports/shutil_get_terminal_size/get_terminal_size.pyc