From owner-svn-ports-all@freebsd.org Tue Jul 31 06:33:05 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4C856104FD85; Tue, 31 Jul 2018 06:33:05 +0000 (UTC) (envelope-from loader@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EAD697C184; Tue, 31 Jul 2018 06:33:04 +0000 (UTC) (envelope-from loader@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C860A100E3; Tue, 31 Jul 2018 06:33:04 +0000 (UTC) (envelope-from loader@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w6V6X4ew084125; Tue, 31 Jul 2018 06:33:04 GMT (envelope-from loader@FreeBSD.org) Received: (from loader@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w6V6X4j7084122; Tue, 31 Jul 2018 06:33:04 GMT (envelope-from loader@FreeBSD.org) Message-Id: <201807310633.w6V6X4j7084122@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: loader set sender to loader@FreeBSD.org using -f From: Fukang Chen Date: Tue, 31 Jul 2018 06:33:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r475970 - in head/comms: . py-esptool X-SVN-Group: ports-head X-SVN-Commit-Author: loader X-SVN-Commit-Paths: in head/comms: . py-esptool X-SVN-Commit-Revision: 475970 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2018 06:33:05 -0000 Author: loader (doc committer) Date: Tue Jul 31 06:33:03 2018 New Revision: 475970 URL: https://svnweb.freebsd.org/changeset/ports/475970 Log: [NEW PORT] comms/py-esptool: Utility to communicate with Espressif ESP8266 & ESP32 chips A Python-based, open source, platform independent, utility to communicate with the ROM bootloader in Espressif ESP8266 & ESP32 chips. WWW: https://github.com/espressif/esptool Reviewed by: koobs, mat Approved by: koobs (mentor) Differential Revision: https://reviews.freebsd.org/D16483 Added: head/comms/py-esptool/ head/comms/py-esptool/Makefile (contents, props changed) head/comms/py-esptool/distinfo (contents, props changed) head/comms/py-esptool/pkg-descr (contents, props changed) Modified: head/comms/Makefile Modified: head/comms/Makefile ============================================================================== --- head/comms/Makefile Tue Jul 31 06:15:22 2018 (r475969) +++ head/comms/Makefile Tue Jul 31 06:33:03 2018 (r475970) @@ -135,6 +135,7 @@ SUBDIR += pr SUBDIR += predict SUBDIR += py-bulksms + SUBDIR += py-esptool SUBDIR += py-gammu SUBDIR += py-hidapi SUBDIR += py-libconcord Added: head/comms/py-esptool/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/py-esptool/Makefile Tue Jul 31 06:33:03 2018 (r475970) @@ -0,0 +1,41 @@ +# $FreeBSD$ + +PORTNAME= esptool +DISTVERSIONPREFIX= v +DISTVERSION= 2.5.0 +CATEGORIES= comms python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= loader@FreeBSD.org +COMMENT= Utility to communicate with Espressif ESP8266 & ESP32 chips + +LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}serial>=3.0:comms/py-serial@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyaes>0:security/py-pyaes@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}ecdsa>0:security/py-ecdsa@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyelftools>0:devel/py-pyelftools@${PY_FLAVOR} + +USES= python +USE_GITHUB= yes +USE_PYTHON= autoplist concurrent distutils + +GH_ACCOUNT= espressif +NO_ARCH= yes + +ESPTOOL_BAUDRATE?= 115200 +ESPTOOL_CHIP?= esp8266 +ESPTOOL_SERIALPORT?= /dev/ttyU0 + +do-test: + @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest \ + --ignore test/test_esptool.py +.if exists(${ESPTOOL_SERIALPORT}) + @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} \ + ${PYTHON_CMD} test/test_esptool.py \ + ${ESPTOOL_SERIALPORT} ${ESPTOOL_CHIP} ${ESPTOOL_BAUDRATE} +.endif + +.include Added: head/comms/py-esptool/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/py-esptool/distinfo Tue Jul 31 06:33:03 2018 (r475970) @@ -0,0 +1,3 @@ +TIMESTAMP = 1532614101 +SHA256 (espressif-esptool-v2.5.0_GH0.tar.gz) = c18e57b3c012fc1ac4caeebf388949d1704b6c602b3489fe19b13e24cbc01f24 +SIZE (espressif-esptool-v2.5.0_GH0.tar.gz) = 4042607 Added: head/comms/py-esptool/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/comms/py-esptool/pkg-descr Tue Jul 31 06:33:03 2018 (r475970) @@ -0,0 +1,4 @@ +A Python-based, open source, platform independent, utility to communicate +with the ROM bootloader in Espressif ESP8266 & ESP32 chips. + +WWW: https://github.com/espressif/esptool