From nobody Sat Feb 04 06:58:58 2023 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 4P83KG6Bztz3knJ8; Sat, 4 Feb 2023 06:58:58 +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 4P83KG59JZz4Pbt; Sat, 4 Feb 2023 06:58:58 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675493938; 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=//MXukhEjpVmMiXRvIyg3IUc2DQMzMdBgMYBlJiHtZw=; b=OCp3SESGD0oA94OQZ2EtxXozq7n/bFweesffIrO4bJM3i+FbTTBNMjvnNAdfr1hEpjTRAt wrunPOwrAR6PluGvFwA+TEopu/TzjTGNpa/thuoXEokzNhL1k+e2pVkaFi3YF40iAf7Mfv 6+Ars4C68vHqlBhy3zNGZLJo+AIsN77+5ASKPjhyw52NWtLWqKcbyqOJy6yKKPZtPMNW1Y E0Xb61zmCyvO7tJh2ert0IAB10oRoil4M0o8GEFs9GgBS8wXS4kngPrqBnabAuyPYf56ap 4mh27BhMfN9p+GUqmnDeux6n2R5riKekPoZq25TW5sYdBtQ3EbTGoyu9wknLzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675493938; 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=//MXukhEjpVmMiXRvIyg3IUc2DQMzMdBgMYBlJiHtZw=; b=gkgCY97eYAX1ziwPa8kwtSn4p9YdbzrOfl6GdZ5BYOh2QvJEGeIWxseWwkELrW0IhYPle6 kwbnKvwAWj1sQmgvShsp8GaQ7wsV01cbOnPiITOC+UPocP/rEQa5EFhOk15sAfITCC3C+A UEyKHJzECtFlc1CJwbt3/5HJfZJgA36EhP2fzC7SFJXkmECNI/WYLiZZe5zeFaAyfLzvhc 4W5IHExeW7sd3K+gA+aPmloxJ0S2VShJcl65CChpvFYAk4iwgn6Gg024ljjxZf1VgFSPYq 2HKjsyD5Tr0Ya8VIkweE51aO+1LtPl8fYpME4/w+nP/4FMKrpNmwSkjSVpB02Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675493938; a=rsa-sha256; cv=none; b=qQRGYyEtGKied29t42I3NsLnKGtqapHX555hdLpqBMLNdrrD6jiAyG62i84ysQQM15EX/A Uzr4daT03nGTaMo91TeBbJvc9GVrvj8KNwAcqf2dgn4qLgNpN5LRBxt1iqOBEg3OX4TgoT F873QvxpJ0Dq++Bg6FbIAz0IXQTfCT/HgmfhNbNv1e/+2zN1NceUmnUCcam6ysuHb6Ootw VRDha13k7vqH5T+C+NXviSj442E38ZLk1l2/jKqSW7w+TvLDFZGSqjxb2OGhSPeU1a/XU/ ymRxgY8Cm/2oo72JMiGtrztDYyivdsFKfqxQb4PUhdETjDMI1X7uH52b45I9ug== 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 4P83KG4GZ9z15cm; Sat, 4 Feb 2023 06:58:58 +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 3146wweh008517; Sat, 4 Feb 2023 06:58:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3146ww5T008516; Sat, 4 Feb 2023 06:58:58 GMT (envelope-from git) Date: Sat, 4 Feb 2023 06:58:58 GMT Message-Id: <202302040658.3146ww5T008516@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 0ad876d5fd2d - main - cad/py-cocotb: New port: Coroutine based cosimulation library for writing VHDL and Verilog 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0ad876d5fd2d1befbfa7f01ab6fa8f5279ff8ab1 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=0ad876d5fd2d1befbfa7f01ab6fa8f5279ff8ab1 commit 0ad876d5fd2d1befbfa7f01ab6fa8f5279ff8ab1 Author: Yuri Victorovich AuthorDate: 2023-02-04 06:58:11 +0000 Commit: Yuri Victorovich CommitDate: 2023-02-04 06:58:53 +0000 cad/py-cocotb: New port: Coroutine based cosimulation library for writing VHDL and Verilog --- cad/Makefile | 1 + cad/py-cocotb/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++ cad/py-cocotb/distinfo | 3 +++ cad/py-cocotb/pkg-descr | 5 +++++ 4 files changed, 49 insertions(+) diff --git a/cad/Makefile b/cad/Makefile index fa412f520987..7d15ad17a9ab 100644 --- a/cad/Makefile +++ b/cad/Makefile @@ -102,6 +102,7 @@ SUBDIR += pcb-rnd SUBDIR += pdnmesh SUBDIR += py-cadquery + SUBDIR += py-cocotb SUBDIR += py-cq-editor SUBDIR += py-edalize SUBDIR += py-ezdxf diff --git a/cad/py-cocotb/Makefile b/cad/py-cocotb/Makefile new file mode 100644 index 000000000000..a2168ec07d4d --- /dev/null +++ b/cad/py-cocotb/Makefile @@ -0,0 +1,40 @@ +PORTNAME= cocotb +DISTVERSIONPREFIX= v +DISTVERSION= 1.7.2 +CATEGORIES= cad python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Coroutine based cosimulation library for writing VHDL and Verilog +WWW= https://www.cocotb.org/ + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}find-libpython>0:devel/py-find-libpython@${PY_FLAVOR} \ + gtkwave:cad/gtkwave + +USES= python:3.6+ +USE_PYTHON= pep517 autoplist pytest # https://github.com/cocotb/cocotb/issues/3230 +USE_GITHUB= yes + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${WRKSRC}/tests + +OPTIONS_DEFINE= IVERILOG VERILATOR # GHDL - TODO +OPTIONS_DEFAULT= IVERILOG VERILATOR + +IVERILOG_DESC= Iverilog dependency +IVERILOG_RUN_DEPENDS= iverilog:cad/iverilog + +VERILATOR_DESC= Verilator dependency +VERILATOR_RUN_DEPENDS= verilator:cad/verilator + +post-install: + @${STRIP_CMD} \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/cocotb/simulator${PYTHON_EXT_SUFFIX}.so \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/cocotb/libs/lib*.so \ + ${STAGEDIR}${PYTHON_SITELIBDIR}/cocotb/libs/libcocotbvpi_icarus.vpl + +.include diff --git a/cad/py-cocotb/distinfo b/cad/py-cocotb/distinfo new file mode 100644 index 000000000000..f7f52cba0128 --- /dev/null +++ b/cad/py-cocotb/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1675490974 +SHA256 (cocotb-cocotb-v1.7.2_GH0.tar.gz) = 2b72f25e91a8733abc9a49171adcf67d04670eb64bdc6be0d8ee653ac6b1d69f +SIZE (cocotb-cocotb-v1.7.2_GH0.tar.gz) = 641521 diff --git a/cad/py-cocotb/pkg-descr b/cad/py-cocotb/pkg-descr new file mode 100644 index 000000000000..de72cfe264b0 --- /dev/null +++ b/cad/py-cocotb/pkg-descr @@ -0,0 +1,5 @@ +cocotb is an open source coroutine-based cosimulation testbench environment +for verifying VHDL and SystemVerilog RTL using Python. + +cocotb lets you verify chips like software: productive, simulator-agnostic, +in Python.