diff options
author | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-11-18 17:50:25 +0000 |
---|---|---|
committer | Mateusz Piotrowski <0mp@FreeBSD.org> | 2020-11-18 17:50:25 +0000 |
commit | 99096adb1c95c870a4f60bcf60eca3886adf2a14 (patch) | |
tree | 5ccad107edcb6949b1e73289c813655fdffc4780 /textproc | |
parent | 9168a83626494498fd3a4b318c87769ab6c60b08 (diff) | |
download | ports-99096adb1c95c870a4f60bcf60eca3886adf2a14.tar.gz ports-99096adb1c95c870a4f60bcf60eca3886adf2a14.zip |
Notes
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/Makefile | 1 | ||||
-rw-r--r-- | textproc/py-readchar/Makefile | 31 | ||||
-rw-r--r-- | textproc/py-readchar/distinfo | 3 | ||||
-rw-r--r-- | textproc/py-readchar/files/patch-readchar_readchar.py | 11 | ||||
-rw-r--r-- | textproc/py-readchar/files/patch-setup.py | 13 | ||||
-rw-r--r-- | textproc/py-readchar/pkg-descr | 4 |
6 files changed, 63 insertions, 0 deletions
diff --git a/textproc/Makefile b/textproc/Makefile index b714611fe212..ec58fc5d5084 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1372,6 +1372,7 @@ SUBDIR += py-qt5-xml SUBDIR += py-qt5-xmlpatterns SUBDIR += py-rdflib + SUBDIR += py-readchar SUBDIR += py-recommonmark SUBDIR += py-regex SUBDIR += py-reno diff --git a/textproc/py-readchar/Makefile b/textproc/py-readchar/Makefile new file mode 100644 index 000000000000..1205e1ea7d66 --- /dev/null +++ b/textproc/py-readchar/Makefile @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= readchar +PORTVERSION= 2.0.0 +CATEGORIES= textproc devel +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Python library to read characters and key strokes + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/README.rst + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>0:devel/py-coverage@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pexpect>0:misc/py-pexpect@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= dos2unix localbase python:3.6+ +DOS2UNIX_GLOB= *.py +# CHEESESHOP does not seem to work so far. +USE_GITHUB= yes +GH_ACCOUNT= magmax +GH_PROJECT= python-${PORTNAME} +USE_PYTHON= autoplist distutils + +do-test: + @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test) + +.include <bsd.port.mk> diff --git a/textproc/py-readchar/distinfo b/textproc/py-readchar/distinfo new file mode 100644 index 000000000000..d36cbc199efc --- /dev/null +++ b/textproc/py-readchar/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1605719262 +SHA256 (magmax-python-readchar-2.0.0_GH0.tar.gz) = 503c96fbdaa5e96162535dc0a8fb8525582a18a42214909d751f150c8029d694 +SIZE (magmax-python-readchar-2.0.0_GH0.tar.gz) = 6046 diff --git a/textproc/py-readchar/files/patch-readchar_readchar.py b/textproc/py-readchar/files/patch-readchar_readchar.py new file mode 100644 index 000000000000..03ea584ae01a --- /dev/null +++ b/textproc/py-readchar/files/patch-readchar_readchar.py @@ -0,0 +1,11 @@ +--- readchar/readchar.py.orig 2020-11-18 17:42:51 UTC ++++ readchar/readchar.py +@@ -9,6 +9,8 @@ if sys.platform.startswith('linux'): + from .readchar_linux import readchar + elif sys.platform == 'darwin': + from .readchar_linux import readchar ++elif sys.platform.startswith('freebsd'): ++ from .readchar_linux import readchar + elif sys.platform in ('win32', 'cygwin'): + import msvcrt + from .readchar_windows import readchar diff --git a/textproc/py-readchar/files/patch-setup.py b/textproc/py-readchar/files/patch-setup.py new file mode 100644 index 000000000000..6e7946793069 --- /dev/null +++ b/textproc/py-readchar/files/patch-setup.py @@ -0,0 +1,13 @@ +--- setup.py.orig 2020-11-18 17:14:13 UTC ++++ setup.py +@@ -75,7 +75,7 @@ setup( + ], + install_requires=[ + ], +- setup_requires=[ +- 'flake8', +- ], ++ #setup_requires=[ ++ # 'flake8', ++ #], + ) diff --git a/textproc/py-readchar/pkg-descr b/textproc/py-readchar/pkg-descr new file mode 100644 index 000000000000..11af5e70be0e --- /dev/null +++ b/textproc/py-readchar/pkg-descr @@ -0,0 +1,4 @@ +Library to easily read single chars and key strokes. The idea is to have a +portable way to read single characters and key-strokes. + +WWW: https://github.com/magmax/python-readchar |