git: d441828f0001 - main - net/librest1: update to 0.10.2

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Fri, 05 Sep 2025 16:48:32 UTC
The branch main has been updated by fluffy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d441828f00014b360bc2115451ac056638a33ae7

commit d441828f00014b360bc2115451ac056638a33ae7
Author:     Olivier Duchateau <duchateau.olivier@gmail.com>
AuthorDate: 2025-08-23 16:04:27 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2025-09-05 16:46:53 +0000

    net/librest1: update to 0.10.2
    
    Release notes:  https://gitlab.gnome.org/GNOME/librest/-/blob/0.10.2/NEWS#L1-L16
    PR:             288756
---
 net/librest1/Makefile  | 25 +++++++++++++------------
 net/librest1/distinfo  |  6 +++---
 net/librest1/pkg-plist |  8 ++++++--
 3 files changed, 22 insertions(+), 17 deletions(-)

diff --git a/net/librest1/Makefile b/net/librest1/Makefile
index 853840f61f35..c6885e15b66e 100644
--- a/net/librest1/Makefile
+++ b/net/librest1/Makefile
@@ -1,34 +1,35 @@
 PORTNAME=	librest
-DISTVERSION=	0.9.1
-PORTREVISION=	2
+PORTVERSION=	0.10.2
 CATEGORIES=	net devel gnome
+MASTER_SITES=	GNOME
 PKGNAMESUFFIX=	1
-MASTER_SITES=	GNOME/sources/rest
-DISTNAME=	rest-${DISTVERSION}
+DIST_SUBDIR=	gnome
 
 MAINTAINER=	gnome@FreeBSD.org
 COMMENT=	GNOME REST library
 WWW=		https://gitlab.gnome.org/GNOME/librest
 
-LICENSE=	LGPL21
+LICENSE=	LGPL21+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libadwaita-1.so:x11-toolkits/libadwaita \
-		libjson-glib-1.0.so:devel/json-glib \
+LIB_DEPENDS=	libjson-glib-1.0.so:devel/json-glib \
 		libsoup-3.0.so:devel/libsoup3
 
 PORTSCOUT=	limitw:1,even
 
-USES=		gettext gnome localbase meson pkgconfig python tar:xz
-USE_GNOME=	glib20 gtksourceview5 introspection:build
+USES=		gnome localbase meson pkgconfig python tar:xz
+USE_GNOME=	glib20 introspection:build libadwaita libxml2
 USE_LDCONFIG=	yes
 MESON_ARGS=	-Dca_certificates=true \
-		-Dca_certificates_path=/etc/ssl/cert.pem \
-		-Dgtk_doc=false
+		-Dca_certificates_path=/etc/ssl/cert.pem
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=	DOCS EXAMPLES
+OPTIONS_SUB=	yes
 
 DOCS_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gi-docgen>0:textproc/py-gi-docgen@${PY_FLAVOR}
 DOCS_MESON_TRUE=	gtk_doc
 
+EXAMPLES_USE=		gnome=gtksourceview5
+EXAMPLES_MESON_TRUE=	examples
+
 .include <bsd.port.mk>
diff --git a/net/librest1/distinfo b/net/librest1/distinfo
index 8927398dc1f7..baedbb9de9c9 100644
--- a/net/librest1/distinfo
+++ b/net/librest1/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1750437353
-SHA256 (rest-0.9.1.tar.xz) = 9266a5c10ece383e193dfb7ffb07b509cc1f51521ab8dad76af96ed14212c2e3
-SIZE (rest-0.9.1.tar.xz) = 71136
+TIMESTAMP = 1754757598
+SHA256 (gnome/librest-0.10.2.tar.xz) = 7b6cb912bb3a22cfa7dcf005925dcb62883024db0c09099486e7d6851185c9b8
+SIZE (gnome/librest-0.10.2.tar.xz) = 71936
diff --git a/net/librest1/pkg-plist b/net/librest1/pkg-plist
index 4bc982e29909..f274d7b1ebb7 100644
--- a/net/librest1/pkg-plist
+++ b/net/librest1/pkg-plist
@@ -1,8 +1,9 @@
-bin/librest-demo
+%%EXAMPLES%%bin/librest-demo
 include/rest-1.0/rest-extras/flickr-proxy-call.h
 include/rest-1.0/rest-extras/flickr-proxy.h
 include/rest-1.0/rest-extras/lastfm-proxy-call.h
 include/rest-1.0/rest-extras/lastfm-proxy.h
+include/rest-1.0/rest-extras/rest-extras.h
 include/rest-1.0/rest-extras/youtube-proxy.h
 include/rest-1.0/rest/rest-enum-types.h
 include/rest-1.0/rest/rest-oauth2-proxy-call.h
@@ -27,7 +28,7 @@ lib/librest-extras-1.0.so.0
 lib/librest-extras-1.0.so.0.0.0
 libdata/pkgconfig/rest-1.0.pc
 libdata/pkgconfig/rest-extras-1.0.pc
-share/applications/org.gnome.RestDemo.desktop
+%%EXAMPLES%%share/applications/org.gnome.RestDemo.desktop
 %%PORTDOCS%%%%DOCSDIR%%-1.0/RedHatDisplay-Black.woff
 %%PORTDOCS%%%%DOCSDIR%%-1.0/RedHatDisplay-Black.woff2
 %%PORTDOCS%%%%DOCSDIR%%-1.0/RedHatDisplay-BlackItalic.woff
@@ -79,6 +80,7 @@ share/applications/org.gnome.RestDemo.desktop
 %%PORTDOCS%%%%DOCSDIR%%-1.0/ctor.Proxy.new_with_authentication.html
 %%PORTDOCS%%%%DOCSDIR%%-1.0/ctor.XmlParser.new.html
 %%PORTDOCS%%%%DOCSDIR%%-1.0/enum.MemoryUse.html
+%%PORTDOCS%%%%DOCSDIR%%-1.0/error.OAuth2Error.html
 %%PORTDOCS%%%%DOCSDIR%%-1.0/error.ProxyCallError.html
 %%PORTDOCS%%%%DOCSDIR%%-1.0/error.ProxyError.html
 %%PORTDOCS%%%%DOCSDIR%%-1.0/fonts.css
@@ -183,6 +185,8 @@ share/applications/org.gnome.RestDemo.desktop
 %%PORTDOCS%%%%DOCSDIR%%-1.0/method.XmlNode.set_content.html
 %%PORTDOCS%%%%DOCSDIR%%-1.0/method.XmlNode.unref.html
 %%PORTDOCS%%%%DOCSDIR%%-1.0/method.XmlParser.parse_from_data.html
+%%PORTDOCS%%%%DOCSDIR%%-1.0/migration.html
+%%PORTDOCS%%%%DOCSDIR%%-1.0/opensearch.xml
 %%PORTDOCS%%%%DOCSDIR%%-1.0/property.OAuth2Proxy.access-token.html
 %%PORTDOCS%%%%DOCSDIR%%-1.0/property.OAuth2Proxy.auth-url.html
 %%PORTDOCS%%%%DOCSDIR%%-1.0/property.OAuth2Proxy.client-id.html