From nobody Tue Feb 08 03:20:49 2022 X-Original-To: dev-commits-ports-main@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 CAF9E19A8104; Tue, 8 Feb 2022 03:20:49 +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 4Jt7Z95MGgz3mfK; Tue, 8 Feb 2022 03:20:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644290449; 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=FkWrcNmNdQygE4SaoJSbQL/6wRfl6tPWB8rYvFNOXnc=; b=W4MbBxJmh1R3g8P8EMZtWixw06H6AtoeCqstA1xbJPSKX4K4Zv1pmdnt+kKits8SkBjQBU tM6K2d3NkXvP8v6zowsylKRv8SM/G/DAjoJKq5stGj1Ioumz5TGXSSWBSEgYs7Qy2lyX3O ISxcliplrXyam9ol2kx6XuxvZiooEcNWbDi1r2m/z6MHN1ydl8sqxe/2cKRFuDnhiazfcz QJlAofTMYRsViC6edLxG3fqTIT2WfWh5Q0mjXseDKielEbJNEIILA2Gq6zQ0r5+nvmhSEn xKZ/x8VkGSScLSi1mu2i39h3doI27ucRqthaP3G7eDoUIsbNSxq9Iu7A2r4nxw== 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 97A7E11E26; Tue, 8 Feb 2022 03:20:49 +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 2183KnF3073097; Tue, 8 Feb 2022 03:20:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2183KnKo073096; Tue, 8 Feb 2022 03:20:49 GMT (envelope-from git) Date: Tue, 8 Feb 2022 03:20:49 GMT Message-Id: <202202080320.2183KnKo073096@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Li-Wen Hsu Subject: git: c8bfb772c274 - main - Add comms/py-libscrc: Python library for calculating various types of CRC List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: lwhsu X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: c8bfb772c274a6044c7d5620776921364a46824e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644290449; 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=FkWrcNmNdQygE4SaoJSbQL/6wRfl6tPWB8rYvFNOXnc=; b=cyzNEaN1CROBW72jD6I00eOyVkQMVYMG4l5eK5uP+xoBu8Yo2RpWfRjjU3+8l50xjG3buN nIlVGccMrC7LTJmmdSB981lmubXeSBQh6nQh6KCS3fy3r/k+Jturh2V5LzhYhY6IOWEeqb sj3mGkgrJ519tv+okUEkjPId234PykD6YNQZwyMVWVh0lZTAfQRCyj4mpnRPlJ23HawDTW yyYq6qRy6H1pbFOz7tZBnn+InFIhIvmzfOAJH62Ov0+FC0z5al4i98qFrvHtdIkezj+cub 83WiFk2+ieUR8VBwitNGM4LsPtxF9rCI6Qexy0VQMjl+GhLPzSW1kMqlSDKZZw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644290449; a=rsa-sha256; cv=none; b=a1QW7y1d2jzacuaptJ5QmhMKzJ/RnNz+TMROpLPb0xhpbUHyO+rdOtRB5eNpk8LFNFPP/1 G+6MiX9KHaqxKm/EFvnnZkE0UuaAZGslG6auR3B2rv5//TxvtVs1Qz6ODyxJP8oCnCNZyy j6OLrf8ij36+LVCdkWnr11AeqCU3vKqp92HzDbK/5Qfi0IJnMTM8CHWYFz9jkKSZp9AxRU PgAEF4MHGVG7LGqmaL6nt8tR4ZN4iXXpkAZZiYtcc1vaGRscNOHhFAoOmGWBiuAQgcryVc KQQIdzxVln+SeDhboh7VdINuMtbZlFJ2xa/h//Loc+q5jqLlRvC/OOGq0FAZ4A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by lwhsu: URL: https://cgit.FreeBSD.org/ports/commit/?id=c8bfb772c274a6044c7d5620776921364a46824e commit c8bfb772c274a6044c7d5620776921364a46824e Author: Marek Zarychta AuthorDate: 2022-02-08 03:19:33 +0000 Commit: Li-Wen Hsu CommitDate: 2022-02-08 03:19:33 +0000 Add comms/py-libscrc: Python library for calculating various types of CRC PR: 261571 --- comms/Makefile | 1 + comms/py-libscrc/Makefile | 34 ++++++++++++++++++++++++++++++++++ comms/py-libscrc/distinfo | 3 +++ comms/py-libscrc/pkg-descr | 4 ++++ 4 files changed, 42 insertions(+) diff --git a/comms/Makefile b/comms/Makefile index 1676e470b3c8..03a3fc2d390f 100644 --- a/comms/Makefile +++ b/comms/Makefile @@ -136,6 +136,7 @@ SUBDIR += py-hid SUBDIR += py-hidapi SUBDIR += py-libimobiledevice + SUBDIR += py-libscrc SUBDIR += py-pyserial SUBDIR += py-xmodem SUBDIR += pyla diff --git a/comms/py-libscrc/Makefile b/comms/py-libscrc/Makefile new file mode 100644 index 000000000000..bd14e21f2d35 --- /dev/null +++ b/comms/py-libscrc/Makefile @@ -0,0 +1,34 @@ +PORTNAME= libscrc +DISTVERSIONPREFIX= v +DISTVERSION= 1.7 +CATEGORIES= comms python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= zarychtam@plan-b.pwste.edu.pl +COMMENT= Python library for calculating various types of CRC + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= python +USE_PYTHON= autoplist distutils + +USE_GITHUB= yes +GH_ACCOUNT= hex-in + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +do-test: + @cd ${TEST_WRKSRC} && for test in \ + libscrc/test/canx.py \ + libscrc/test/crc8.py \ + libscrc/test/crc16.py \ + libscrc/test/crc24.py \ + libscrc/test/crc32.py \ + libscrc/test/crc64.py \ + libscrc/test/crcx.py \ + libscrc/test/hacker.py \ + libscrc/test/modbus.py; \ + do ${SETENV} ${TEST_ENV} ${PYTHON_CMD} $${test}; done + +.include diff --git a/comms/py-libscrc/distinfo b/comms/py-libscrc/distinfo new file mode 100644 index 000000000000..8e31f0d6858a --- /dev/null +++ b/comms/py-libscrc/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1643544324 +SHA256 (hex-in-libscrc-v1.7_GH0.tar.gz) = cd4dc6555cb320705218e308b4c4e43b1ae299999084b5ac534c79f94fa2f9d7 +SIZE (hex-in-libscrc-v1.7_GH0.tar.gz) = 52893 diff --git a/comms/py-libscrc/pkg-descr b/comms/py-libscrc/pkg-descr new file mode 100644 index 000000000000..b370803f8041 --- /dev/null +++ b/comms/py-libscrc/pkg-descr @@ -0,0 +1,4 @@ +Python library for calculating: +CRC3/CRC4/CRC5/CRC6/CRC7/CRC8/CRC16/CRC24/CRC32/CRC64/CRC82. + +WWW: https://github.com/hex-in/libscrc