Index: head/comms/Makefile =================================================================== --- head/comms/Makefile +++ head/comms/Makefile @@ -140,6 +140,7 @@ SUBDIR += py-lirc SUBDIR += py-qt5-serialport SUBDIR += py-serial + SUBDIR += py-xmodem SUBDIR += pyla SUBDIR += qico SUBDIR += qpage Index: head/comms/py-xmodem/Makefile =================================================================== --- head/comms/py-xmodem/Makefile +++ head/comms/py-xmodem/Makefile @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= xmodem +DISTVERSION= 0.4.5 +CATEGORIES= comms python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= loader@FreeBSD.org +COMMENT= XMODEM protocol implementation + +LICENSE= MIT + +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} \ + lrz:comms/lrzsz + +USES= python +USE_GITHUB= yes +USE_PYTHON= autoplist concurrent distutils + +GH_ACCOUNT= tehmaze +NO_ARCH= yes + +post-patch: + @${REINPLACE_CMD} -e "s|'doc'|'${DOCSDIR}'|" ${WRKSRC}/setup.py + +do-test: + @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest + +.include Index: head/comms/py-xmodem/distinfo =================================================================== --- head/comms/py-xmodem/distinfo +++ head/comms/py-xmodem/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1543230345 +SHA256 (tehmaze-xmodem-0.4.5_GH0.tar.gz) = 5d6d760b5afdd6b4e7c1613b93792b12360ec2f911e2333ab9eda2d49231bcf0 +SIZE (tehmaze-xmodem-0.4.5_GH0.tar.gz) = 38003 Index: head/comms/py-xmodem/pkg-descr =================================================================== --- head/comms/py-xmodem/pkg-descr +++ head/comms/py-xmodem/pkg-descr @@ -0,0 +1,9 @@ +Python XMODEM protocol implementation + +This is a literal implementation of XMODEM.TXT, XMODEM1K.TXT and +XMODMCRC.TXT, support for YMODEM and ZMODEM is pending. YMODEM should +be fairly easy to implement as it is a hack on top of the XMODEM +protocol using sequence bytes ``0x00`` for sending file names (and some +meta data). + +WWW: https://github.com/tehmaze/xmodem