git: f3ddc7f01134 - main - x11/mate-applet-appmenu: new port

Eric Turgeon ericbsd at FreeBSD.org
Wed Jul 7 11:18:24 UTC 2021


The branch main has been updated by ericbsd:

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

commit f3ddc7f01134fcbd4c83c24e905aa3aefbc858c9
Author:     Eric Turgeon <ericbsd at FreeBSD.org>
AuthorDate: 2021-07-07 11:16:45 +0000
Commit:     Eric Turgeon <ericbsd at FreeBSD.org>
CommitDate: 2021-07-07 11:18:16 +0000

    x11/mate-applet-appmenu: new port
    
    This is an Application Menu applet providing Global Menu for
    the MATE panel.
---
 x11/Makefile                                       |  1 +
 x11/appmenu-registrar/Makefile                     |  1 -
 x11/mate-applet-appmenu/Makefile                   | 35 ++++++++++++++++++++++
 x11/mate-applet-appmenu/distinfo                   |  3 ++
 .../files/patch-lib_dbusmenu-importer_importer.c   | 11 +++++++
 x11/mate-applet-appmenu/files/patch-meson.build    |  8 +++++
 ...ts_appmenu-gtk-module_src_datastructs-private.h | 11 +++++++
 x11/mate-applet-appmenu/pkg-descr                  |  3 ++
 x11/mate-applet-appmenu/pkg-plist                  |  2 ++
 9 files changed, 74 insertions(+), 1 deletion(-)

diff --git a/x11/Makefile b/x11/Makefile
index ce04df7e109e..b0668b0dda1f 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -215,6 +215,7 @@
     SUBDIR += ly
     SUBDIR += mako
     SUBDIR += mate
+    SUBDIR += mate-applet-appmenu
     SUBDIR += mate-applets
     SUBDIR += mate-base
     SUBDIR += mate-desktop
diff --git a/x11/appmenu-registrar/Makefile b/x11/appmenu-registrar/Makefile
index 3c781fe46898..8f40b36711f3 100644
--- a/x11/appmenu-registrar/Makefile
+++ b/x11/appmenu-registrar/Makefile
@@ -22,7 +22,6 @@ MESON_ARGS=	-Dvalapanel=disabled \
 		-Dappmenu-gtk-module=disabled
 
 USE_GNOME=	gtk30 glib20 gtk20 gdkpixbuf2
-# GLIB_SCHEMAS=	org.appmenu.gtk-module.gschema.xml
 
 USE_GITLAB=	yes
 GL_ACCOUNT=	vala-panel-project
diff --git a/x11/mate-applet-appmenu/Makefile b/x11/mate-applet-appmenu/Makefile
new file mode 100644
index 000000000000..706b93bfbc00
--- /dev/null
+++ b/x11/mate-applet-appmenu/Makefile
@@ -0,0 +1,35 @@
+PORTNAME=	mate-applet-appmenu
+DISTVERSION=	0.7.6
+CATEGORIES=	x11
+
+MAINTAINER=	ericbsd at FreeBSD.org
+COMMENT=	Application Menu plugin for mate-panel
+
+LICENSE=	LGPL3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libbamf3.so:sysutils/bamf
+BUILD_DEPENDS=	valac:lang/vala
+RUN_DEPENDS=	appmenu-registrar>=0:x11/appmenu-registrar \
+		appmenu-gtk-module>=0:x11/gtk-app-menu
+
+USES=	meson gnome mate pkgconfig gettext
+
+MESON_ARGS=	-Dvalapanel=disabled \
+		-Dxfce=disabled \
+		-Dmate=enabled \
+		-Dbudgie=disabled \
+		-Djayatana=disabled \
+		-Dregistrar=disabled \
+		-Dappmenu-gtk-module=disabled
+
+USE_MATE= 	panel
+USE_GNOME=	gtk30 glib20 gtk20 gdkpixbuf2
+GLIB_SCHEMAS=	org.valapanel.appmenu.gschema.xml
+
+USE_GITLAB=	yes
+GL_ACCOUNT=	vala-panel-project
+GL_PROJECT=	vala-panel-appmenu
+GL_COMMIT=	4e362c22ab3a23c98f13fb379c782786ee057cf6
+
+.include <bsd.port.mk>
diff --git a/x11/mate-applet-appmenu/distinfo b/x11/mate-applet-appmenu/distinfo
new file mode 100644
index 000000000000..063974a98247
--- /dev/null
+++ b/x11/mate-applet-appmenu/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1617892721
+SHA256 (vala-panel-project-vala-panel-appmenu-4e362c22ab3a23c98f13fb379c782786ee057cf6_GL0.tar.gz) = 374ee0bd840ae1e78891ca1dd97ea25ebabec929e5eaec8dc16ae8f8e7680b67
+SIZE (vala-panel-project-vala-panel-appmenu-4e362c22ab3a23c98f13fb379c782786ee057cf6_GL0.tar.gz) = 149765
diff --git a/x11/mate-applet-appmenu/files/patch-lib_dbusmenu-importer_importer.c b/x11/mate-applet-appmenu/files/patch-lib_dbusmenu-importer_importer.c
new file mode 100644
index 000000000000..c36a53d3b3e3
--- /dev/null
+++ b/x11/mate-applet-appmenu/files/patch-lib_dbusmenu-importer_importer.c
@@ -0,0 +1,11 @@
+--- lib/dbusmenu-importer/importer.c.orig	2021-01-01 20:18:10 UTC
++++ lib/dbusmenu-importer/importer.c
+@@ -25,7 +25,7 @@ struct _DBusMenuImporter
+ 	GObject parent_instance;
+ 	char *bus_name;
+ 	char *object_path;
+-	ulong name_id;
++	gulong name_id;
+ 	GCancellable *cancellable;
+ 	DBusMenuXml *proxy;
+ 	DBusMenuModel *top_model;
diff --git a/x11/mate-applet-appmenu/files/patch-meson.build b/x11/mate-applet-appmenu/files/patch-meson.build
new file mode 100644
index 000000000000..4ff6b1ce2cbd
--- /dev/null
+++ b/x11/mate-applet-appmenu/files/patch-meson.build
@@ -0,0 +1,8 @@
+--- meson.build.orig	2021-01-02 21:06:31 UTC
++++ meson.build
+@@ -117,4 +117,4 @@ readmes = [
+     'README.md',
+     'LICENSE',
+ ]
+-install_data(readmes, install_dir : join_paths(get_option('datadir'), meson.project_name(), 'doc'))
++# install_data(readmes, install_dir : join_paths(get_option('datadir'), meson.project_name(), 'doc'))
diff --git a/x11/mate-applet-appmenu/files/patch-subprojects_appmenu-gtk-module_src_datastructs-private.h b/x11/mate-applet-appmenu/files/patch-subprojects_appmenu-gtk-module_src_datastructs-private.h
new file mode 100644
index 000000000000..5e5f620d955c
--- /dev/null
+++ b/x11/mate-applet-appmenu/files/patch-subprojects_appmenu-gtk-module_src_datastructs-private.h
@@ -0,0 +1,11 @@
+--- subprojects/appmenu-gtk-module/src/datastructs-private.h.orig	2019-03-02 16:23:40 UTC
++++ subprojects/appmenu-gtk-module/src/datastructs-private.h
+@@ -31,7 +31,7 @@
+ struct _WindowData
+ {
+ 	uint window_id;
+-	ulong wayland_window_id;
++	gulong wayland_window_id;
+ 	GMenu *menu_model;
+ 	guint menu_model_export_id;
+ 	GSList *menus;
diff --git a/x11/mate-applet-appmenu/pkg-descr b/x11/mate-applet-appmenu/pkg-descr
new file mode 100644
index 000000000000..b831215880d4
--- /dev/null
+++ b/x11/mate-applet-appmenu/pkg-descr
@@ -0,0 +1,3 @@
+This is an Application Menu applet providing Global Menu for the MATE panel.
+
+WWW: https://gitlab.com/vala-panel-project/vala-panel-appmenu
diff --git a/x11/mate-applet-appmenu/pkg-plist b/x11/mate-applet-appmenu/pkg-plist
new file mode 100644
index 000000000000..54b1d8d8fc3a
--- /dev/null
+++ b/x11/mate-applet-appmenu/pkg-plist
@@ -0,0 +1,2 @@
+lib/mate-panel/libappmenu-mate.so
+share/mate-panel/applets/org.vala-panel.appmenu.mate-panel-applet


More information about the dev-commits-ports-main mailing list