git: fc5be254502e - main - devel/gobject-introspection: Move cairo dependency under TEST option.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Jan 2024 18:25:26 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fc5be254502ef92e9f1acc28c7040f9c795e7b43
commit fc5be254502ef92e9f1acc28c7040f9c795e7b43
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-01-08 18:24:15 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-01-08 18:24:15 +0000
devel/gobject-introspection: Move cairo dependency under TEST option.
PR: 276117
Reported by: Siva Mahadevan <me@svmhdvn.name>
---
devel/gobject-introspection/Makefile | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/devel/gobject-introspection/Makefile b/devel/gobject-introspection/Makefile
index f3f5b9c31bcb..2b980c99f7d0 100644
--- a/devel/gobject-introspection/Makefile
+++ b/devel/gobject-introspection/Makefile
@@ -1,5 +1,6 @@
PORTNAME= gobject-introspection
DISTVERSION= 1.78.1
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= devel
MASTER_SITES= GNOME
@@ -14,8 +15,6 @@ LICENSE_COMB= multi
LICENSE_FILE_LGPL20+ = ${WRKSRC}/COPYING.LGPL
LICENSE_FILE_GPLv2+ = ${WRKSRC}/COPYING.GPL
-# we need cairo otherwise the generated Cairo gir is broken
-BUILD_DEPENDS= cairo-trace:graphics/cairo
LIB_DEPENDS= libffi.so:devel/libffi
PORTSCOUT= limitw:1,even
@@ -26,6 +25,11 @@ USE_LDCONFIG= yes
MESON_ARGS= -Ddoctool=disabled \
-Dpython=${PYTHON_CMD}
+OPTIONS_DEFINE= TEST
+
+TEST_MESON_ENABLED= cairo
+TEST_LIB_DEPENDS= libcairo.so:graphics/cairo
+
post-patch:
@${REINPLACE_CMD} -e 's|%%PYTHON_CMD%%|${PYTHON_CMD}|' ${WRKSRC}/tools/meson.build