pkgsrc-WIP-changes archive

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

py-macs2: Clean up



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Sat Jan 21 16:21:31 2023 -0600
Changeset:	b839fa3ae3af976a4c1bb08eed74086d57df09f6

Modified Files:
	py-macs2/DESCR
	py-macs2/Makefile

Log Message:
py-macs2: Clean up

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

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

diffstat:
 py-macs2/DESCR    |  6 +++++-
 py-macs2/Makefile | 20 ++++----------------
 2 files changed, 9 insertions(+), 17 deletions(-)

diffs:
diff --git a/py-macs2/DESCR b/py-macs2/DESCR
index 845dbab1b0..087b58b49d 100644
--- a/py-macs2/DESCR
+++ b/py-macs2/DESCR
@@ -1 +1,5 @@
-[description of the port]
+MACS is a tool for chromatin immunoprecipitation (ChIP) sequence
+analysis.  MACS empirically models the length of the sequenced ChIP
+fragments, which tend to be shorter than sonication or library
+construction size estimates, and uses it to improve the spatial
+resolution of predicted binding sites.
diff --git a/py-macs2/Makefile b/py-macs2/Makefile
index 6749a3eee0..77a213fa1c 100644
--- a/py-macs2/Makefile
+++ b/py-macs2/Makefile
@@ -1,11 +1,6 @@
 # $NetBSD$
-#
-###########################################################
-#                  Generated by fbsd2pkg                  #
-#              Thu Nov  2 10:04:18 CDT 2017               #
-###########################################################
 
-DISTNAME=	MACS2-2.2.7.1
+DISTNAME=	MACS2-${PKGVERSION_NOREV}
 PKGNAME=	${PYPKGPREFIX}-macs2-2.2.7.1
 CATEGORIES=	biology
 MASTER_SITES=	${MASTER_SITE_GITHUB:=taoliu/}
@@ -19,23 +14,16 @@ LICENSE=	modified-bsd
 
 TOOL_DEPENDS+=	${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython
 
-# Does not build with python > 3.9
-# PYTHON_VERSIONS_INCOMPATIBLE=	310 311
+CYTHONIZE=	${PREFIX}/bin/cythonize-${PYVERSSUFFIX}
 
 # these files do not support python 3.11 in the 3.5 release
 post-extract:
 	${MV} ${WRKSRC}/MACS2/cPosValCalculation.c ${WRKSRC}
 	${RM} ${WRKSRC}/MACS2/*.c ${WRKSRC}/MACS2/*/*.c
-	cd ${WRKSRC} && cythonize-${PYVERSSUFFIX} ${WRKSRC}/MACS2/*.pyx ${WRKSRC}/MACS2/*/*.pyx
+	cd ${WRKSRC} && ${CYTHONIZE} ${WRKSRC}/MACS2/*.pyx
+	cd ${WRKSRC} && ${CYTHONIZE} ${WRKSRC}/MACS2/*/*.pyx
 	${MV} ${WRKSRC}/cPosValCalculation.c ${WRKSRC}/MACS2
 
-# Fails on Darwin
-#post-install:
-#	${STRIP} \
-#		${DESTDIR}${PREFIX}/${PYSITELIB}/MACS2/*.so \
-#		${DESTDIR}${PREFIX}/${PYSITELIB}/MACS2/*/*.so
-
 .include "../../lang/python/egg.mk"
 .include "../../math/py-numpy/buildlink3.mk"
-.include "../../devel/py-cython/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index