pkgsrc-WIP-changes archive

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

py-pysam: Fix build on Darwin



Module Name:	pkgsrc-wip
Committed By:	Jason Bacon <bacon%NetBSD.org@localhost>
Pushed By:	outpaddling
Date:		Sun Jul 30 07:44:34 2023 -0500
Changeset:	510ad590f8193cfe6762a63a823fb1d6c916aa26

Modified Files:
	py-pysam/Makefile

Log Message:
py-pysam: Fix build on Darwin

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

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

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

diffs:
diff --git a/py-pysam/Makefile b/py-pysam/Makefile
index deec6eb84f..92f1eb69e3 100644
--- a/py-pysam/Makefile
+++ b/py-pysam/Makefile
@@ -15,6 +15,11 @@ HOMEPAGE=	https://github.com/pysam-developers/pysam
 COMMENT=	Python module for reading, manipulating and writing genomic data sets
 LICENSE=	mit
 
+SUBST_CLASSES+=		rpath
+SUBST_STAGE.rpath=	pre-configure
+SUBST_SED.rpath=	-e 's|@rpath|${PREFIX}/${PYSITELIB}/pysam|g'
+SUBST_FILES.rpath=	cy_build.py
+
 USE_TOOLS+=	gmake
 MAKE_ENV+=	HTSLIB_MODE=external \
 		HTSLIB_LIBRARY_DIR=${PREFIX}/lib \
@@ -24,9 +29,6 @@ LDFLAGS+=	${COMPILER_RPATH_FLAG}${PREFIX}/${PYSITELIB}/pysam
 
 PYTHON_VERSIONS_INCOMPATIBLE=	27
 
-post-install:
-	${STRIP} ${DESTDIR}${PREFIX}/${PYSITELIB}/pysam/lib*.so
-
 .include "../../lang/python/egg.mk"
 .include "../../biology/htslib/buildlink3.mk"
 .include "../../devel/py-cython/tool.mk"


Home | Main Index | Thread Index | Old Index