aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Champ <lab+bsd@thinkum.space>2023-08-12 20:29:13 +0000
committerKevin Bowling <kbowling@FreeBSD.org>2023-08-12 20:29:13 +0000
commit4a8056dce3e04d7b80842eded91ee3c0153b3e37 (patch)
tree99a3d53b54543da5cadc2fe8b24eb011a3cfea18
parentba250e03fd652940d2da0e4d947dca35e26b5a4c (diff)
downloadports-4a8056dce3e04d7b80842eded91ee3c0153b3e37.tar.gz
ports-4a8056dce3e04d7b80842eded91ee3c0153b3e37.zip
devel/libgudev: Updating to 237 & meson
PR: 267479
-rw-r--r--devel/libgudev/Makefile25
-rw-r--r--devel/libgudev/distinfo6
-rw-r--r--devel/libgudev/pkg-plist2
3 files changed, 26 insertions, 7 deletions
diff --git a/devel/libgudev/Makefile b/devel/libgudev/Makefile
index 1d8f5903e7da..6d9083030bac 100644
--- a/devel/libgudev/Makefile
+++ b/devel/libgudev/Makefile
@@ -1,5 +1,5 @@
PORTNAME= libgudev
-PORTVERSION= 234
+PORTVERSION= 237
CATEGORIES= devel
MASTER_SITES= GNOME
@@ -12,11 +12,28 @@ LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libudev.so:devel/libudev-devd
-USES= gettext-runtime gmake gnome libtool pathfix pkgconfig tar:xz
+USES= gettext-runtime gnome libtool meson pathfix pkgconfig tar:xz
USE_GNOME= glib20 introspection:build
-GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
-CONFIGURE_ARGS= --disable-umockdev
+
+MESON_ARGS= -Dintrospection=enabled -Dtests=disabled
+
+DOCSDIR= ${PREFIX}/share/gtk-doc/html/${PORTNAME}
+
+OPTIONS_DEFINE= DOCS VALA
+OPTIONS_SUB= yes
+
+DOCS_MESON_TRUE= gtk_doc
+DOCS_BUILD_DEPENDS= gtk-doc>0:textproc/gtk-doc
+
+VALA_DESC= Build and install Vala bindings
+VALA_MESON_ENABLED= vapi
+VALA_BUILD_DEPENDS= vapigen:lang/vala
+VALA_VARS= USE+=vala:build
+
+add-plist-docs: ${STAGE_COOKIE}
+ cd ${STAGEDIR}; ${FIND} ${DOCSDIR:C@^/@@} -type f | ${SED} -e 's@^@/@' >> ${TMPPLIST}
+ cd ${STAGEDIR}; ${FIND} ${LOCALBASE:C@^/@@}/share/gtk-doc/html -mindepth 2 -type f | ${SED} -e 's@^@/@' >> ${TMPPLIST}
.include <bsd.port.mk>
diff --git a/devel/libgudev/distinfo b/devel/libgudev/distinfo
index a5756f1cf731..b49094ba9928 100644
--- a/devel/libgudev/distinfo
+++ b/devel/libgudev/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1600349011
-SHA256 (libgudev-234.tar.xz) = 1baeacacf0db42fa073ad5183d1decce9317857416a2b0f82ce3370d711a2e37
-SIZE (libgudev-234.tar.xz) = 273244
+TIMESTAMP = 1691872085
+SHA256 (libgudev-237.tar.xz) = 0d06b21170d20c93e4f0534dbb9b0a8b4f1119ffb00b4031aaeb5b9148b686aa
+SIZE (libgudev-237.tar.xz) = 29060
diff --git a/devel/libgudev/pkg-plist b/devel/libgudev/pkg-plist
index fec6fcaef8b7..9455d1629b36 100644
--- a/devel/libgudev/pkg-plist
+++ b/devel/libgudev/pkg-plist
@@ -11,3 +11,5 @@ lib/libgudev-1.0.so.0
lib/libgudev-1.0.so.0.3.0
libdata/pkgconfig/gudev-1.0.pc
share/gir-1.0/GUdev-1.0.gir
+%%VALA%%share/vala/vapi/gudev-1.0.deps
+%%VALA%%share/vala/vapi/gudev-1.0.vapi