pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/math/py-libixion Use BUILDLINK feature to get python3.pc
details: https://anonhg.NetBSD.org/pkgsrc/rev/616e4e7e9e15
branches: trunk
changeset: 405695:616e4e7e9e15
user: nros <nros%pkgsrc.org@localhost>
date: Wed Dec 04 18:58:47 2019 +0000
description:
Use BUILDLINK feature to get python3.pc
Use BUILDLINK_FNAME_TRANSFORM to get python3.pc instead of using
ln -s.
While here set incompoatible python versions since it is looking for python 3.
diffstat:
math/py-libixion/Makefile | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r a8d036b99803 -r 616e4e7e9e15 math/py-libixion/Makefile
--- a/math/py-libixion/Makefile Wed Dec 04 14:00:36 2019 +0000
+++ b/math/py-libixion/Makefile Wed Dec 04 18:58:47 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2019/12/04 13:31:43 nros Exp $
+# $NetBSD: Makefile,v 1.2 2019/12/04 18:58:47 nros Exp $
.include "../../math/libixion/Makefile.common"
@@ -8,14 +8,17 @@
BUILD_DIRS= src/python
PY_PATCHPLIST= yes
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
pre-configure:
- ${LN} -s ${BUILDLINK_DIR}/lib/pkgconfig/python-${PYVERSSUFFIX}.pc \
- ${BUILDLINK_DIR}/lib/pkgconfig/python3.pc
set -e; cd ${WRKSRC}; \
aclocal; automake -a --foreign -i; autoconf
+.include "../../lang/python/extension.mk"
+
+BUILDLINK_FNAME_TRANSFORM.${PYPACKAGE}+= -e "s|-${PYVERSSUFFIX}.pc|3.pc|g"
+
.include "../../devel/boost-libs/buildlink3.mk"
.include "../../devel/mdds/buildlink3.mk"
-.include "../../lang/python/extension.mk"
.include "../../math/libixion/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Home |
Main Index |
Thread Index |
Old Index