From nobody Tue Dec 28 17:38:11 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8B2EB190D07B; Tue, 28 Dec 2021 17:38:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JNhZr0tmfz3Crp; Tue, 28 Dec 2021 17:38:12 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id F2AA915C50; Tue, 28 Dec 2021 17:38:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BSHcBng027645; Tue, 28 Dec 2021 17:38:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BSHcB72027644; Tue, 28 Dec 2021 17:38:11 GMT (envelope-from git) Date: Tue, 28 Dec 2021 17:38:11 GMT Message-Id: <202112281738.1BSHcB72027644@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Craig Leres Subject: git: e237c912125c - main - comms/py-pyserial: Add an EXAMPLES option List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: leres X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e237c912125cf736a2bb67759d23d3e11cb5acc3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1640713092; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=XkeHlOJj+gLmRFR7SCGzKpPQYeBQP6+AqBgnBoLtHuw=; b=BUc/xLsrH3XUIxQaUFl007mOiRu4R0ll7Djw3z7ZMlG/x1qb523WbM4K29DdZLsGwG4+oz f+Ujf7XMsJ5OxaDFT93hoo1FG8LB9RDbI3LNMw/adgwtDrzOA+s2QfxfvORBilYKSQCv0w g8B0ZOEG2WLtAafASgcy0i+0P+yqc0dE7zZMs6+MwLfBrshftBX+SwSmCjlzGn3ooWyyLe fRihP743giUyMmlgS8OkUao+NbyZjqu1ysfR8eFRPxQkbMy6fmbeCmPPLe4VU0tAsdPnOS r2gmMnEoswesRUKzyzI/EXbVfjYHXaqkVDKHCKInPAfKqlAgQPZr4qWnTnh7CQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1640713092; a=rsa-sha256; cv=none; b=gZ+gseleq9HfO0hncxcJcOLQiZD5JUyf6FIhyRZ3dCZ3Mukev+kl4Ksgb15+SIY2nEsTJh e5zfskhb7Eu1VsKkRpQ1RAcJFs9pX37ti6VAWruvkYR7x/GTjrs2Fwkio4vXwcFItnGV+Q fYlNqXQ0yaauGVbn0uowkCL9tRE7NbieskDj9Ho2tHDV9NLeQptWJS3PmxH4B4O0EKQG7B KiYc4gM4qrSoWJaJbUklvLg+uZVvhF41t2i1ZfbENvRXz/AKv6ekoMSQ3Mq3DyovAw+yAK yTe+71wB6ElAVpOy73TfK9DyRyXfVbisvLQ3h9mZGOgyNmLkddVgy6tmRZiuQw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by leres: URL: https://cgit.FreeBSD.org/ports/commit/?id=e237c912125cf736a2bb67759d23d3e11cb5acc3 commit e237c912125cf736a2bb67759d23d3e11cb5acc3 Author: Craig Leres AuthorDate: 2021-12-28 17:37:39 +0000 Commit: Craig Leres CommitDate: 2021-12-28 17:37:39 +0000 comms/py-pyserial: Add an EXAMPLES option The pyserial distribution includes a handy tcp/serial port bridge script called tcp_serial_redirect.py. Add an EXAMPLES option to install this (along with other pyserial example scripts). PR: 260328 Approved by: sbz (maintainer timeout, 18 days) --- comms/py-pyserial/Makefile | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/comms/py-pyserial/Makefile b/comms/py-pyserial/Makefile index 7dd89f348134..4e53177b4903 100644 --- a/comms/py-pyserial/Makefile +++ b/comms/py-pyserial/Makefile @@ -2,7 +2,7 @@ PORTNAME= pyserial PORTVERSION= 3.5 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= comms python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,13 +13,29 @@ COMMENT= Serial port encapsulation library for Python LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt -USES= python:3.6+ +USES= python:3.6+ shebangfix +SHEBANG_FILES= examples/*.py USE_PYTHON= distutils autoplist concurrent +PORTEXAMPLES= at_protocol.py port_publisher.py rfc2217_server.py \ + setup-miniterm-py2exe.py setup-rfc2217_server-py2exe.py \ + setup-wxTerminal-py2exe.py tcp_serial_redirect.py \ + wxSerialConfigDialog.py wxTerminal.py + +EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME} + +OPTIONS_DEFINE= EXAMPLES + NO_ARCH= yes +post-install: + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_SCRIPT} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} \ + ${STAGEDIR}${EXAMPLESDIR} + do-test: - ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} ${WRKSRC}/test/test.py + ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \ + ${PYTHON_CMD} ${WRKSRC}/test/test.py .include