From owner-svn-ports-head@freebsd.org Fri Jul 24 07:07:58 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 35125371ED4; Fri, 24 Jul 2020 07:07:58 +0000 (UTC) (envelope-from sunpoet@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BCgJY1Wh0z3WHP; Fri, 24 Jul 2020 07:07:56 +0000 (UTC) (envelope-from sunpoet@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 0DFEB2653C; Fri, 24 Jul 2020 07:07:55 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 06O77tug041409; Fri, 24 Jul 2020 07:07:55 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 06O77s4L041404; Fri, 24 Jul 2020 07:07:54 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <202007240707.06O77s4L041404@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Fri, 24 Jul 2020 07:07:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r543009 - in head/devel: . py-google-crc32c py-google-crc32c/files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel: . py-google-crc32c py-google-crc32c/files X-SVN-Commit-Revision: 543009 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2020 07:07:58 -0000 Author: sunpoet Date: Fri Jul 24 07:07:54 2020 New Revision: 543009 URL: https://svnweb.freebsd.org/changeset/ports/543009 Log: Add py-google-crc32c 0.1.0 google-crc32c wraps the google/crc32c hardware-based implementation of the CRC32C hashing algorithm. Multiple wheels are distributed as well as source. If a wheel is not published for the python version and platform you are using, you will need to compile crc32c using a C toolchain. WWW: https://github.com/googleapis/python-crc32c Added: head/devel/py-google-crc32c/ head/devel/py-google-crc32c/Makefile (contents, props changed) head/devel/py-google-crc32c/distinfo (contents, props changed) head/devel/py-google-crc32c/files/ head/devel/py-google-crc32c/files/patch-setup.py (contents, props changed) head/devel/py-google-crc32c/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Fri Jul 24 07:07:48 2020 (r543008) +++ head/devel/Makefile Fri Jul 24 07:07:54 2020 (r543009) @@ -4453,6 +4453,7 @@ SUBDIR += py-gobject3 SUBDIR += py-google-apputils SUBDIR += py-google-cloud-iam + SUBDIR += py-google-crc32c SUBDIR += py-google-i18n-address SUBDIR += py-google-pasta SUBDIR += py-googleapis-common-protos Added: head/devel/py-google-crc32c/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-google-crc32c/Makefile Fri Jul 24 07:07:54 2020 (r543009) @@ -0,0 +1,25 @@ +# Created by: Po-Chuan Hsieh +# $FreeBSD$ + +PORTNAME= google-crc32c +PORTVERSION= 0.1.0 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Wrapper of the C library Google CRC32C + +LICENSE= APACHE20 + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} +LIB_DEPENDS= libcrc32c.so:devel/crc32c +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} + +USES= localbase python +USE_PYTHON= autoplist concurrent distutils + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/crc32c/_crc32c_cffi.abi3.so + +.include Added: head/devel/py-google-crc32c/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-google-crc32c/distinfo Fri Jul 24 07:07:54 2020 (r543009) @@ -0,0 +1,3 @@ +TIMESTAMP = 1595416505 +SHA256 (google-crc32c-0.1.0.tar.gz) = ad3d9b4402d4a16673aba7e74feacd621678aef3a9e6c0a5fb4c7e133c39ac45 +SIZE (google-crc32c-0.1.0.tar.gz) = 10486 Added: head/devel/py-google-crc32c/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-google-crc32c/files/patch-setup.py Fri Jul 24 07:07:54 2020 (r543009) @@ -0,0 +1,10 @@ +--- setup.py.orig 2020-03-21 00:48:10 UTC ++++ setup.py +@@ -54,7 +54,6 @@ def main(build_cffi=True): + setuptools.setup( + packages=["crc32c"], + package_dir={"": "src"}, +- package_data={"crc32c": [os.path.join(_EXTRA_DLL, _DLL_FILENAME)]}, + setup_requires=[cffi_dep] if build_cffi else [], + cffi_modules=[builder] if build_cffi else [], + install_requires=[cffi_dep] if build_cffi else [], Added: head/devel/py-google-crc32c/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-google-crc32c/pkg-descr Fri Jul 24 07:07:54 2020 (r543009) @@ -0,0 +1,6 @@ +google-crc32c wraps the google/crc32c hardware-based implementation of the +CRC32C hashing algorithm. Multiple wheels are distributed as well as source. If +a wheel is not published for the python version and platform you are using, you +will need to compile crc32c using a C toolchain. + +WWW: https://github.com/googleapis/python-crc32c