pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/py-cairo
Module Name: pkgsrc
Committed By: wiz
Date: Mon Oct 12 21:57:51 UTC 2026
Modified Files:
pkgsrc/graphics/py-cairo: Makefile
Log Message:
py-cairo: add test target
The wheel build doesn't leave the binaries lying around.
Do a separate build for the test phase, like py-gobject3 does.
To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 pkgsrc/graphics/py-cairo/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/graphics/py-cairo/Makefile
diff -u pkgsrc/graphics/py-cairo/Makefile:1.97 pkgsrc/graphics/py-cairo/Makefile:1.98
--- pkgsrc/graphics/py-cairo/Makefile:1.97 Mon Oct 12 13:16:16 2026
+++ pkgsrc/graphics/py-cairo/Makefile Mon Oct 12 21:57:51 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.97 2026/10/12 13:16:16 wiz Exp $
+# $NetBSD: Makefile,v 1.98 2026/10/12 21:57:51 wiz Exp $
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
@@ -7,9 +7,27 @@ COMMENT= Python bindings for cairo
.include "Makefile.common"
TOOL_DEPENDS+= ${PYPKGPREFIX}-meson_python-[0-9]*:../../devel/py-meson_python
+TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test
USE_TOOLS+= pkg-config
+MESON_TESTBUILDDIR= ${WRKDIR}/testbuild
+
+do-test:
+ ${RUN} printf '[binaries]\npython = %s\n' "'${PYTHONBIN}'" > ${WRKDIR}/.meson_test_native
+ ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
+ meson setup \
+ --prefix ${PREFIX} \
+ --wrap-mode=nodownload \
+ --native-file ${WRKDIR}/.meson_test_native \
+ -Dtests=true \
+ -Dwheel=false \
+ ${MESON_TESTBUILDDIR}
+ ${RUN} ${SETENV} ${MAKE_ENV} \
+ ninja -C ${MESON_TESTBUILDDIR}
+ ${RUN} cd ${WRKSRC} && ${SETENV} ${TEST_ENV} \
+ meson test -C ${MESON_TESTBUILDDIR} --no-rebuild --timeout 600
+
BUILDLINK_API_DEPENDS.cairo+= cairo>=1.13.1
.include "../../graphics/cairo/buildlink3.mk"
.include "../../graphics/py-cairo-shared/buildlink3.mk"
Home |
Main Index |
Thread Index |
Old Index