git: 709fe0c87198 - main - net/msgraph: GNOME library to access MS Graph API for Office 365

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Wed, 15 Jan 2025 13:27:17 UTC
The branch main has been updated by arrowd:

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

commit 709fe0c87198545170ef46ce533b782f1b1b06a8
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-12-13 22:08:23 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2025-01-15 13:26:59 +0000

    net/msgraph: GNOME library to access MS Graph API for Office 365
    
    Sponsored by:   Future Crew, LLC
    Pull Request:   https://github.com/freebsd/freebsd-ports/pull/332
---
 net/Makefile          |  1 +
 net/msgraph/Makefile  | 32 ++++++++++++++++++++++++++++++++
 net/msgraph/distinfo  |  3 +++
 net/msgraph/pkg-descr |  4 ++++
 net/msgraph/pkg-plist | 28 ++++++++++++++++++++++++++++
 5 files changed, 68 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index 99e1aeb6450c..b0198b2b16bf 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -501,6 +501,7 @@
     SUBDIR += mrouted
     SUBDIR += mrtparse
     SUBDIR += msend
+    SUBDIR += msgraph
     SUBDIR += msoak
     SUBDIR += mtr
     SUBDIR += multicat
diff --git a/net/msgraph/Makefile b/net/msgraph/Makefile
new file mode 100644
index 000000000000..b5bc0e07f1f9
--- /dev/null
+++ b/net/msgraph/Makefile
@@ -0,0 +1,32 @@
+PORTNAME=	msgraph
+DISTVERSION=	0.2.3
+CATEGORIES=	net gnome
+MASTER_SITES=	GNOME
+
+LICENSE=	LGPL3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+MAINTAINER=	gnome@FreeBSD.org
+COMMENT=	Library to access MS Graph API for Office 365
+WWW=		https://gnome.pages.gitlab.gnome.org/msgraph/
+
+LIB_DEPENDS=    libgoa-1.0.so:net/gnome-online-accounts \
+		libjson-glib-1.0.so:devel/json-glib \
+		libsoup-3.0.so:devel/libsoup3
+
+USES=		gnome meson pkgconfig tar:xz
+USE_GNOME=	glib20 introspection:build
+USE_LDCONFIG=	yes
+
+DOCSDIR=	${PREFIX}/share/doc/${PORTNAME}-0
+PORTDOCS=	*
+
+OPTIONS_DEFINE=		DOCS TEST
+
+DOCS_MESON_TRUE=	gtk_doc
+DOCS_BUILD_DEPENDS=	gi-docgen:textproc/py-gi-docgen
+
+TEST_MESON_TRUE=	tests
+TEST_LIB_DEPENDS=	libuhttpmock-1.0.so:net/uhttpmock
+
+.include <bsd.port.mk>
diff --git a/net/msgraph/distinfo b/net/msgraph/distinfo
new file mode 100644
index 000000000000..952d54762fb5
--- /dev/null
+++ b/net/msgraph/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1734121676
+SHA256 (msgraph-0.2.3.tar.xz) = ed42e800cb7f0a07477cd9e3e744cdc1a240a6ad7ab96b8a875806267a9fddb0
+SIZE (msgraph-0.2.3.tar.xz) = 95904
diff --git a/net/msgraph/pkg-descr b/net/msgraph/pkg-descr
new file mode 100644
index 000000000000..1bf780940770
--- /dev/null
+++ b/net/msgraph/pkg-descr
@@ -0,0 +1,4 @@
+Microsoft Graph is a RESTful web API that enables you to access Microsoft
+Cloud service resources. libmsgraph is a GLib-based library for accessing this
+API licensed under LGPL.
+
diff --git a/net/msgraph/pkg-plist b/net/msgraph/pkg-plist
new file mode 100644
index 000000000000..da624c61dbf6
--- /dev/null
+++ b/net/msgraph/pkg-plist
@@ -0,0 +1,28 @@
+include/msg/contact/msg-contact-service.h
+include/msg/contact/msg-contact.h
+include/msg/drive/msg-drive-item-file.h
+include/msg/drive/msg-drive-item-folder.h
+include/msg/drive/msg-drive-item.h
+include/msg/drive/msg-drive-service.h
+include/msg/drive/msg-drive.h
+include/msg/message/msg-mail-folder.h
+include/msg/message/msg-message-service.h
+include/msg/message/msg-message.h
+include/msg/msg-authorizer.h
+include/msg/msg-error.h
+include/msg/msg-goa-authorizer.h
+include/msg/msg-input-stream.h
+include/msg/msg-json-utils.h
+include/msg/msg-oauth2-authorizer.h
+include/msg/msg-private.h
+include/msg/msg-service.h
+include/msg/msg-version.h
+include/msg/msg.h
+include/msg/user/msg-user-service.h
+include/msg/user/msg-user.h
+lib/girepository-1.0/Msg-0.typelib
+lib/libmsgraph-0.so
+lib/libmsgraph-0.so.0.2.3
+lib/libmsgraph-0.so.1
+libdata/pkgconfig/msgraph-0.1.pc
+share/gir-1.0/Msg-0.gir