pkgsrc-WIP-changes archive

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

py-macs2: Clean up, move cythonize to pre-configure



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Sat Dec 23 10:32:35 2023 -0600
Changeset:	9f362f6fbcbcd190c81ab6661cf278e4f7b6dc1f

Modified Files:
	py-macs2/Makefile

Log Message:
py-macs2: Clean up, move cythonize to pre-configure

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=9f362f6fbcbcd190c81ab6661cf278e4f7b6dc1f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 py-macs2/Makefile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diffs:
diff --git a/py-macs2/Makefile b/py-macs2/Makefile
index b165f43857..20f7bf3f3b 100644
--- a/py-macs2/Makefile
+++ b/py-macs2/Makefile
@@ -12,8 +12,7 @@ HOMEPAGE=	https://github.com/macs3-project/MACS
 COMMENT=	Algorithm for identifying transcription factor binding sites
 LICENSE=	modified-bsd
 
-# TOOL_DEPENDS+=	${PYPKGPREFIX}-cython-0.*:../../wip/py-cython-legacy
-TOOL_DEPENDS+=	${PYPKGPREFIX}-cython-3.*:../../devel/py-cython
+TOOL_DEPENDS+=	${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython
 
 # Requires new python features
 PYTHON_VERSIONS_INCOMPATIBLE=	27 38
@@ -21,7 +20,7 @@ PYTHON_VERSIONS_INCOMPATIBLE=	27 38
 CYTHONIZE=	${PREFIX}/bin/cythonize-${PYVERSSUFFIX}
 
 # Distributed .c files do not support python > 3.9
-post-patch:
+pre-configure:
 	${MV} ${WRKSRC}/MACS2/cPosValCalculation.c ${WRKSRC}
 	${RM} -f ${WRKSRC}/MACS2/*.c ${WRKSRC}/MACS2/*/*.c
 	cd ${WRKSRC} && ${CYTHONIZE} ${WRKSRC}/MACS2/*.pyx


Home | Main Index | Thread Index | Old Index