pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/biology/py-cutadapt py-cutadapt: fix build with python...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/244c4424db90
branches:  trunk
changeset: 388317:244c4424db90
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Nov 16 23:02:14 2022 +0000

description:
py-cutadapt: fix build with python 3.11

diffstat:

 biology/py-cutadapt/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (30 lines):

diff -r f6aad04f743e -r 244c4424db90 biology/py-cutadapt/Makefile
--- a/biology/py-cutadapt/Makefile      Wed Nov 16 22:57:02 2022 +0000
+++ b/biology/py-cutadapt/Makefile      Wed Nov 16 23:02:14 2022 +0000
@@ -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 @@
 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 @@
 
 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}



Home | Main Index | Thread Index | Old Index