summaryrefslogtreecommitdiff
path: root/biology/py-cutadapt
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2022-11-16 23:02:14 +0000
committerwiz <wiz@pkgsrc.org>2022-11-16 23:02:14 +0000
commitabdaba2533a496ac624ff6e2b8001de1d436db5f (patch)
tree3e37482304998e6e07c7d31634d946d65b27b1a0 /biology/py-cutadapt
parentcea2575aa6ab14c10aeae99b773c8e6727741551 (diff)
downloadpkgsrc-abdaba2533a496ac624ff6e2b8001de1d436db5f.tar.gz
py-cutadapt: fix build with python 3.11
Diffstat (limited to 'biology/py-cutadapt')
-rw-r--r--biology/py-cutadapt/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/biology/py-cutadapt/Makefile b/biology/py-cutadapt/Makefile
index 8d30249d51d..94acf348ee8 100644
--- a/biology/py-cutadapt/Makefile
+++ b/biology/py-cutadapt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2022/01/17 09:03:10 adam Exp $
+# $NetBSD: Makefile,v 1.10 2022/11/16 23:02:14 wiz Exp $
DISTNAME= cutadapt-3.5
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
@@ -11,6 +11,8 @@ COMMENT= Find and remove adapter sequences, primers, poly-A tails, etc
LICENSE= mit
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
+# needed for python 3.11 as of 3.5 release
+TOOL_DEPENDS+= ${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython
DEPENDS+= ${PYPKGPREFIX}-dnaio>=0.5.0:../../biology/py-dnaio
DEPENDS+= ${PYPKGPREFIX}-xopen>=1.0.0:../../devel/py-xopen
@@ -18,6 +20,11 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-xopen
USE_PKG_RESOURCES= yes
+# these files do not support python 3.11 in the 3.5 release
+post-extract:
+ ${RM} ${WRKSRC}/src/cutadapt/*.c
+ cd ${WRKSRC} && cythonize-${PYVERSSUFFIX} src/cutadapt/*.pyx
+
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} cutadapt cutadapt-${PYVERSSUFFIX} || ${TRUE}