pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/py-libixion



Module Name:    pkgsrc
Committed By:   nros
Date:           Wed Dec  4 18:58:47 UTC 2019

Modified Files:
        pkgsrc/math/py-libixion: Makefile

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/math/py-libixion/Makefile

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

Modified files:

Index: pkgsrc/math/py-libixion/Makefile
diff -u pkgsrc/math/py-libixion/Makefile:1.1 pkgsrc/math/py-libixion/Makefile:1.2
--- pkgsrc/math/py-libixion/Makefile:1.1        Wed Dec  4 13:31:43 2019
+++ pkgsrc/math/py-libixion/Makefile    Wed Dec  4 18:58:47 2019
@@ -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 @@ USE_TOOLS+=   aclocal autoconf automake
 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