Date: Fri, 24 Jul 2020 07:07:54 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> 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 Message-ID: <202007240707.06O77s4L041404@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <sunpoet@FreeBSD.org> +# $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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202007240707.06O77s4L041404>