summaryrefslogtreecommitdiff
path: root/graphics/librsvg2-rust/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/librsvg2-rust/Makefile')
-rw-r--r--graphics/librsvg2-rust/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/graphics/librsvg2-rust/Makefile b/graphics/librsvg2-rust/Makefile
index 93a33e2bb2ac..73387dcbf41a 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,12 +43,17 @@ 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
+ ${LOCALBASE}/bin/rst2man --no-datestamp ${WRKSRC}/rsvg-convert.rst > ${STAGEDIR}${PREFIX}/share/man/man1/rsvg-convert.1
.include <bsd.port.mk>