pkgsrc-WIP-changes archive

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

py-cutadapt: Trying to get ALTERNATIVES working



Module Name:	pkgsrc-wip
Committed By:	Jason W. Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Thu Feb 8 07:49:35 2024 -0600
Changeset:	6f4a248f45169c191594a71ce338ea39a019ef02

Modified Files:
	py-cutadapt/Makefile
	py-cutadapt/PLIST

Log Message:
py-cutadapt: Trying to get ALTERNATIVES working

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

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

diffstat:
 py-cutadapt/Makefile | 13 ++++++++++++-
 py-cutadapt/PLIST    |  2 +-
 2 files changed, 13 insertions(+), 2 deletions(-)

diffs:
diff --git a/py-cutadapt/Makefile b/py-cutadapt/Makefile
index d419fcb499..9a45f02668 100644
--- a/py-cutadapt/Makefile
+++ b/py-cutadapt/Makefile
@@ -10,6 +10,12 @@ HOMEPAGE=	https://cutadapt.readthedocs.io/en/stable/
 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 cutadapt 3.5 release
+TOOL_DEPENDS+=	${PYPKGPREFIX}-cython-[0-9]*:../../devel/py-cython
+# The ALTERNATIVES file has no effect without this, and yet almost
+# none of the packages using ALTERNATIVES have this dependency
+TOOL_DEPENDS+=	pkg_alternatives-[0-9]*:../../pkgtools/pkg_alternatives
 DEPENDS+=	${PYPKGPREFIX}-xopen>=1.6.0:../../devel/py-xopen
 DEPENDS+=	${PYPKGPREFIX}-dnaio>=0.10.0:../../wip/py-dnaio
 
@@ -17,7 +23,12 @@ PYTHON_VERSIONS_INCOMPATIBLE=	27 # py-xopen
 
 USE_PKG_RESOURCES=	yes
 
-PYTHON_SELF_CONFLICT=	yes
+# Trying to use ALTERNATIVES instead
+# PYTHON_SELF_CONFLICT=	yes
+
+post-install:
+	cd ${DESTDIR}${PREFIX}/bin && \
+	${MV} cutadapt cutadapt-${PYVERSSUFFIX} || ${TRUE}
 
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/py-cutadapt/PLIST b/py-cutadapt/PLIST
index deb85e0075..f7a2355a82 100644
--- a/py-cutadapt/PLIST
+++ b/py-cutadapt/PLIST
@@ -1,5 +1,5 @@
 @comment $NetBSD$
-bin/cutadapt
+bin/cutadapt-${PYVERSSUFFIX}
 ${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
 ${PYSITELIB}/${WHEEL_INFODIR}/METADATA
 ${PYSITELIB}/${WHEEL_INFODIR}/RECORD


Home | Main Index | Thread Index | Old Index