summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2022-11-28 18:42:09 +0000
committeradam <adam@pkgsrc.org>2022-11-28 18:42:09 +0000
commite826405298324527e80048c35ae84d1555138d63 (patch)
tree674caccb67655e121da355541d5f14ab71698f1a /devel
parentca580a4f2b6326565c6610bc99bf1b641ad3733d (diff)
downloadpkgsrc-e826405298324527e80048c35ae84d1555138d63.tar.gz
py-kaitaistruct: updated to 0.10
0.10 read_bytes(): use previous implementation again for small reads For small reads, the new code that tries to avoid unnecessary reads is noticeably slower than the previous code that reads unconditionally. In the worst case (1-byte reads), the new code is 13 times as slow as the previous implementation. The potential memory/IO savings only become worth it for larger reads, where the performance difference disappears.
Diffstat (limited to 'devel')
-rw-r--r--devel/py-kaitaistruct/Makefile10
-rw-r--r--devel/py-kaitaistruct/PLIST3
-rw-r--r--devel/py-kaitaistruct/distinfo8
3 files changed, 13 insertions, 8 deletions
diff --git a/devel/py-kaitaistruct/Makefile b/devel/py-kaitaistruct/Makefile
index 34dfd33a7d3..0e1062a9690 100644
--- a/devel/py-kaitaistruct/Makefile
+++ b/devel/py-kaitaistruct/Makefile
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2022/01/04 20:53:14 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2022/11/28 18:42:09 adam Exp $
-DISTNAME= kaitaistruct-0.9
+DISTNAME= kaitaistruct-0.10
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=k/kaitaistruct/}
@@ -13,5 +12,10 @@ LICENSE= mit
USE_LANGUAGES= # none
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} == 27
+DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
+.endif
+
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/devel/py-kaitaistruct/PLIST b/devel/py-kaitaistruct/PLIST
index 742df2ec9ba..a331b50bb0e 100644
--- a/devel/py-kaitaistruct/PLIST
+++ b/devel/py-kaitaistruct/PLIST
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.2 2021/04/06 20:01:36 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/11/28 18:42:09 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/${EGG_INFODIR}/zip-safe
${PYSITELIB}/kaitaistruct.py
diff --git a/devel/py-kaitaistruct/distinfo b/devel/py-kaitaistruct/distinfo
index f01d693b053..191ac56a720 100644
--- a/devel/py-kaitaistruct/distinfo
+++ b/devel/py-kaitaistruct/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:18:37 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/11/28 18:42:09 adam Exp $
-BLAKE2s (kaitaistruct-0.9.tar.gz) = 67fa5a71e82c8da0b168a5b7f17163fd25ffe0bca9aa03829d66942e6368f445
-SHA512 (kaitaistruct-0.9.tar.gz) = 4654f18d72f31745f27eed035899231e69f9539a8e8322055b0dd99ad701dbd4d484357d0bc42f5a1953abc6947a90fc5ec9da80aeb862077c175c1295549682
-Size (kaitaistruct-0.9.tar.gz) = 5497 bytes
+BLAKE2s (kaitaistruct-0.10.tar.gz) = 7e8f87dc1a8ef32d01764b95c22d7b56904d2c2a07e84ca254c7b075d142592a
+SHA512 (kaitaistruct-0.10.tar.gz) = b4db8b67fe5dd310121ecfad6db79d424e2bd7308b5ae2cc1cdbcd73538533b5bbe4047b71e2ff65d8109b213ad0a5b88a96cd593b08f910ea6ae9bf3c4cbfac
+Size (kaitaistruct-0.10.tar.gz) = 7061 bytes