shadchin 71e6439c19 Import py-backports-shutil-get-terminal-size 1.0.0, ok danj@
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.
2016-06-19 12:29:41 +00:00

28 lines
612 B
Makefile

# $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 <shadchin@openbsd.org>
# 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 <bsd.port.mk>