devel/glib20: Define TEST_DEPENDS and add prepartions to pre-test

This commit is contained in:
Gleb Popov 2024-06-30 17:43:29 +03:00
parent 48d1e730a4
commit 4eb8bb45d3

View file

@ -15,6 +15,9 @@ BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR
LIB_DEPENDS= libffi.so:devel/libffi \ LIB_DEPENDS= libffi.so:devel/libffi \
libpcre2-8.so:devel/pcre2 libpcre2-8.so:devel/pcre2
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>0:devel/py-packaging@${PY_FLAVOR}
TEST_DEPENDS= dbus-uuidgen:devel/dbus \
update-desktop-database:devel/desktop-file-utils \
update-mime-database:misc/shared-mime-info
# iconv:wchar_t - our iconv in base doesn't support utf-8 -> wchar_t (boooo) # iconv:wchar_t - our iconv in base doesn't support utf-8 -> wchar_t (boooo)
# (wchar_t is used by glibmm, rawtherapee triggered this) # (wchar_t is used by glibmm, rawtherapee triggered this)
@ -55,7 +58,6 @@ FAM_ALTBACKEND_DESC= Alternate file monitor backend
MANPAGES_BUILD_DEPENDS= rst2man:textproc/py-docutils MANPAGES_BUILD_DEPENDS= rst2man:textproc/py-docutils
MANPAGES_MESON_ENABLED= man-pages MANPAGES_MESON_ENABLED= man-pages
TEST_BUILD_DEPENDS= dbus-daemon:devel/dbus
TEST_MESON_TRUE= tests TEST_MESON_TRUE= tests
.include <bsd.port.pre.mk> .include <bsd.port.pre.mk>
@ -122,4 +124,7 @@ post-install:
.endfor .endfor
${RM} -r ${STAGEDIR}${PREFIX}/libexec/installed-tests ${RM} -r ${STAGEDIR}${PREFIX}/libexec/installed-tests
pre-test:
${LOCALBASE}/bin/dbus-uuidgen > /var/lib/dbus/machine-id
.include <bsd.port.post.mk> .include <bsd.port.post.mk>