diff options
author | wiz <wiz@pkgsrc.org> | 2016-07-09 21:13:02 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2016-07-09 21:13:02 +0000 |
commit | 01b0927acf99b494b548b6f4f11f0ffabb64d32e (patch) | |
tree | 14db099f4819d3febbe283e8fcb22a430aee85d0 /archivers/py-czipfile | |
parent | f59f0e58031723d893c60bb76162191d774b505a (diff) | |
download | pkgsrc-01b0927acf99b494b548b6f4f11f0ffabb64d32e.tar.gz |
Import py27-czipfile-1.0.0 as archivers/py-czipfile.
A replacement for the builtin zipfile module, with fast, C-based zipfile
decryption
czipfile is a replacement for Python's builtin "zipfile" module, and provides
much faster, C-based zipfile decryption. The code is actually 95% identical to
Python 2.6.5's Lib/zipfile.py, with some very minor modifications to allow it
to compile in Cython, and the _ZipDecrypter class adapted to take advantage of
native C datatypes.
Package provided by Kimihiro Nonaka in PR 51326, with some cleanups by myself.
(Fix typo in MASTER_SITES, pkglint.)
Diffstat (limited to 'archivers/py-czipfile')
-rw-r--r-- | archivers/py-czipfile/DESCR | 8 | ||||
-rw-r--r-- | archivers/py-czipfile/Makefile | 17 | ||||
-rw-r--r-- | archivers/py-czipfile/PLIST | 6 | ||||
-rw-r--r-- | archivers/py-czipfile/distinfo | 7 | ||||
-rw-r--r-- | archivers/py-czipfile/patches/patch-setup.py | 14 |
5 files changed, 52 insertions, 0 deletions
diff --git a/archivers/py-czipfile/DESCR b/archivers/py-czipfile/DESCR new file mode 100644 index 00000000000..2bd4b2046c3 --- /dev/null +++ b/archivers/py-czipfile/DESCR @@ -0,0 +1,8 @@ +A replacement for the builtin zipfile module, with fast, C-based zipfile +decryption + +czipfile is a replacement for Python's builtin "zipfile" module, and provides +much faster, C-based zipfile decryption. The code is actually 95% identical to +Python 2.6.5's Lib/zipfile.py, with some very minor modifications to allow it +to compile in Cython, and the _ZipDecrypter class adapted to take advantage of +native C datatypes. diff --git a/archivers/py-czipfile/Makefile b/archivers/py-czipfile/Makefile new file mode 100644 index 00000000000..4f32499ea06 --- /dev/null +++ b/archivers/py-czipfile/Makefile @@ -0,0 +1,17 @@ +# $NetBSD: Makefile,v 1.1 2016/07/09 21:13:02 wiz Exp $ + +DISTNAME= czipfile-1.0.0 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= archivers python +MASTER_SITES= ${MASTER_SITE_PYPI:=c/czipfile/} + +MAINTAINER= nonakap@gmail.com +HOMEPAGE= http://pypi.python.org/pypi/czipfile +COMMENT= Replacement for builtin zipfile, with fast, C-based zipfile decryption +LICENSE= python-software-foundation + +PYTHON_VERSIONS_INCOMPATIBLE= 34 35 # for 2.x only + +.include "../../lang/python/egg.mk" +.include "../../devel/py-cython/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/archivers/py-czipfile/PLIST b/archivers/py-czipfile/PLIST new file mode 100644 index 00000000000..ef5c784f097 --- /dev/null +++ b/archivers/py-czipfile/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1 2016/07/09 21:13:02 wiz Exp $ +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/czipfile.so diff --git a/archivers/py-czipfile/distinfo b/archivers/py-czipfile/distinfo new file mode 100644 index 00000000000..c46b742163b --- /dev/null +++ b/archivers/py-czipfile/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/07/09 21:13:02 wiz Exp $ + +SHA1 (czipfile-1.0.0.tar.gz) = 7155b7238c397a7bca130ce986d03613228ca318 +RMD160 (czipfile-1.0.0.tar.gz) = e86710e82c50e85dc86b8489eb042ccce0889d03 +SHA512 (czipfile-1.0.0.tar.gz) = 522e72aaa6b90e51190b0dc7abb2629779c6c24375e526a1347bc5b6a84769b794708ae8bb220801cbd069cbee28a497117c9f52025f60a60b424249004503a1 +Size (czipfile-1.0.0.tar.gz) = 144418 bytes +SHA1 (patch-setup.py) = 4064bad441316e88ec6dcbe97371c1b18d5a86e8 diff --git a/archivers/py-czipfile/patches/patch-setup.py b/archivers/py-czipfile/patches/patch-setup.py new file mode 100644 index 00000000000..f2e55fe6dd2 --- /dev/null +++ b/archivers/py-czipfile/patches/patch-setup.py @@ -0,0 +1,14 @@ +$NetBSD: patch-setup.py,v 1.1 2016/07/09 21:13:02 wiz Exp $ + +Use setuptools for packaging to create nice eggs. + +--- setup.py.orig 2010-07-28 06:19:12.000000000 +0900 ++++ setup.py 2016-07-07 21:11:32.000000000 +0900 +@@ -2,6 +2,7 @@ + # vim: set expandtab tabstop=4 shiftwidth=4: + + import os ++import setuptools + from distutils.core import setup + from distutils.extension import Extension + |