svn commit: r488066 - in head/comms: . py-xmodem

Fukang Chen loader at FreeBSD.org
Sat Dec 22 05:27:34 UTC 2018


Author: loader
Date: Sat Dec 22 05:27:32 2018
New Revision: 488066
URL: https://svnweb.freebsd.org/changeset/ports/488066

Log:
  [NEW PORT]: comms/py-xmodem: XMODEM protocol implementation
  
  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
  
  Reviewed by:	koobs
  Approved by:	koobs (mentor)
  Differential Revision:	https://reviews.freebsd.org/D18626

Added:
  head/comms/py-xmodem/
  head/comms/py-xmodem/Makefile   (contents, props changed)
  head/comms/py-xmodem/distinfo   (contents, props changed)
  head/comms/py-xmodem/pkg-descr   (contents, props changed)
Modified:
  head/comms/Makefile

Modified: head/comms/Makefile
==============================================================================
--- head/comms/Makefile	Sat Dec 22 05:01:30 2018	(r488065)
+++ head/comms/Makefile	Sat Dec 22 05:27:32 2018	(r488066)
@@ -140,6 +140,7 @@
     SUBDIR += py-lirc
     SUBDIR += py-qt5-serialport
     SUBDIR += py-serial
+    SUBDIR += py-xmodem
     SUBDIR += pyla
     SUBDIR += qico
     SUBDIR += qpage

Added: head/comms/py-xmodem/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/py-xmodem/Makefile	Sat Dec 22 05:27:32 2018	(r488066)
@@ -0,0 +1,31 @@
+# $FreeBSD$
+
+PORTNAME=	xmodem
+DISTVERSION=	0.4.5
+CATEGORIES=	comms python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	loader at 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 <bsd.port.mk>

Added: head/comms/py-xmodem/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/py-xmodem/distinfo	Sat Dec 22 05:27:32 2018	(r488066)
@@ -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

Added: head/comms/py-xmodem/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/comms/py-xmodem/pkg-descr	Sat Dec 22 05:27:32 2018	(r488066)
@@ -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


More information about the svn-ports-all mailing list