git: 091c77589239 - main - graphics/librsvg2-rust: Add VAPI option, default on
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 23 Aug 2025 10:20:41 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/ports/commit/?id=091c77589239ce8116c5e289012cd8c812de12e0
commit 091c77589239ce8116c5e289012cd8c812de12e0
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2025-08-23 10:01:38 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-08-23 10:20:32 +0000
graphics/librsvg2-rust: Add VAPI option, default on
PR: 286066
---
graphics/librsvg2-rust/Makefile | 9 +++++++--
graphics/librsvg2-rust/pkg-plist | 4 ++--
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/graphics/librsvg2-rust/Makefile b/graphics/librsvg2-rust/Makefile
index 93a33e2bb2ac..f520dfd7f1b8 100644
--- a/graphics/librsvg2-rust/Makefile
+++ b/graphics/librsvg2-rust/Makefile
@@ -23,7 +23,7 @@ LIB_DEPENDS= libdav1d.so:multimedia/dav1d \
TEST_DEPENDS= urw-base35-fonts>0:x11-fonts/urw-base35-fonts
USES= cargo compiler:c11 cpe gettext gnome meson pkgconfig \
- python:build shebangfix tar:xz vala:build
+ python:build shebangfix tar:xz
CPE_VENDOR= gnome
SHEBANG_FILES= meson/*.py \
benchmarks/*.py \
@@ -43,11 +43,16 @@ MAKE_ENV= ${CARGO_ENV}
MESON_ARGS= -Dtests=true
-OPTIONS_DEFINE= DOCS
+OPTIONS_DEFINE= DOCS VAPI
+OPTIONS_DEFAULT= VAPI
+OPTIONS_SUB= yes
DOCS_BUILD_DEPENDS= gi-docgen:textproc/py-gi-docgen
DOCS_MESON_ENABLED= docs
+VAPI_MESON_ENABLED= vala
+VAPI_USES= vala:build
+
post-install-DOCS-off:
${LOCALBASE}/bin/rst2man --no-datestamp ${WRKSRC}/rsvg-convert.rst --output=${STAGEDIR}${PREFIX}/share/man/man1/rsvg-convert.1
diff --git a/graphics/librsvg2-rust/pkg-plist b/graphics/librsvg2-rust/pkg-plist
index 56de103c9104..559abe64d1d5 100644
--- a/graphics/librsvg2-rust/pkg-plist
+++ b/graphics/librsvg2-rust/pkg-plist
@@ -140,5 +140,5 @@ share/man/man1/rsvg-convert.1.gz
%%PORTDOCS%%share/doc/Rsvg-2.0/urlmap.js
share/gir-1.0/Rsvg-2.0.gir
share/thumbnailers/librsvg.thumbnailer
-share/vala/vapi/librsvg-2.0.deps
-share/vala/vapi/librsvg-2.0.vapi
+%%VAPI%%share/vala/vapi/librsvg-2.0.deps
+%%VAPI%%share/vala/vapi/librsvg-2.0.vapi