git: bfdb36acae8b - main - x11/gnome-console: New port

From: Neel Chauhan <nc_at_FreeBSD.org>
Date: Thu, 14 Jul 2022 22:43:50 UTC
The branch main has been updated by nc:

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

commit bfdb36acae8b9503c100ae9885143e5806e05d9a
Author:     Neel Chauhan <nc@FreeBSD.org>
AuthorDate: 2022-07-14 22:43:46 +0000
Commit:     Neel Chauhan <nc@FreeBSD.org>
CommitDate: 2022-07-14 22:43:46 +0000

    x11/gnome-console: New port
---
 x11/Makefile                                   |  1 +
 x11/gnome-console/Makefile                     | 30 ++++++++++++++++
 x11/gnome-console/distinfo                     |  3 ++
 x11/gnome-console/files/patch-src_kgx-pages.c  | 12 +++++++
 x11/gnome-console/files/patch-src_kgx-window.c | 10 ++++++
 x11/gnome-console/pkg-descr                    | 10 ++++++
 x11/gnome-console/pkg-plist                    | 47 ++++++++++++++++++++++++++
 7 files changed, 113 insertions(+)

diff --git a/x11/Makefile b/x11/Makefile
index 3bf46fe163ba..4b0ab8309b40 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -80,6 +80,7 @@
     SUBDIR += gmrun
     SUBDIR += gnome
     SUBDIR += gnome-clipboard-daemon
+    SUBDIR += gnome-console
     SUBDIR += gnome-desktop
     SUBDIR += gnome-menus
     SUBDIR += gnome-pie
diff --git a/x11/gnome-console/Makefile b/x11/gnome-console/Makefile
new file mode 100644
index 000000000000..3438d1195f78
--- /dev/null
+++ b/x11/gnome-console/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	gnome-console
+PORTVERSION=	42.2
+CATEGORIES=	x11 gnome
+MASTER_SITES=	GNOME/sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+)\..*/\1/}
+DIST_SUBDIR=	gnome
+
+MAINTAINER=	gnome@FreeBSD.org
+COMMENT=	Minimal terminal for GNOME
+
+LICENSE=	GPLv2+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	itstool>0:textproc/itstool \
+		sassc>0:textproc/sassc
+LIB_DEPENDS=	libenchant-2.so:textproc/enchant2 \
+		libgtop-2.0.so:devel/libgtop \
+		libhandy-1.so:x11-toolkits/libhandy \
+		libicudata.so:devel/icu \
+		libpcre2-8.so:devel/pcre2 \
+		libvte-2.91.so:x11-toolkits/vte3
+
+USES=		compiler:c11 desktop-file-utils gettext gnome localbase meson \
+		pkgconfig tar:xz
+USE_CSTD=	c11
+USE_GNOME=	gtk30 gtksourceview5 libadwaita
+GLIB_SCHEMAS=	org.gnome.Console.gschema.xml
+
+PORTSCOUT=	limitw:1,even
+
+.include <bsd.port.mk>
diff --git a/x11/gnome-console/distinfo b/x11/gnome-console/distinfo
new file mode 100644
index 000000000000..d0ac721ad624
--- /dev/null
+++ b/x11/gnome-console/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1657835361
+SHA256 (gnome/gnome-console-42.2.tar.xz) = 7d26e6c18744c575a787293263f60ceff630107098e9e58a7765b00ac7437049
+SIZE (gnome/gnome-console-42.2.tar.xz) = 152288
diff --git a/x11/gnome-console/files/patch-src_kgx-pages.c b/x11/gnome-console/files/patch-src_kgx-pages.c
new file mode 100644
index 000000000000..e55d0dc2f951
--- /dev/null
+++ b/x11/gnome-console/files/patch-src_kgx-pages.c
@@ -0,0 +1,12 @@
+--- src/kgx-pages.c.orig	2022-07-14 22:39:12 UTC
++++ src/kgx-pages.c
+@@ -835,7 +835,9 @@ kgx_pages_get_children (KgxPages *self)
+   GPtrArray *children;
+   guint n;
+ 
++#ifndef __FreeBSD__
+   g_return_val_if_fail (KGX_IS_PAGES (self), KGX_NONE);
++#endif
+ 
+   priv = kgx_pages_get_instance_private (self);
+ 
diff --git a/x11/gnome-console/files/patch-src_kgx-window.c b/x11/gnome-console/files/patch-src_kgx-window.c
new file mode 100644
index 000000000000..9e1af1767957
--- /dev/null
+++ b/x11/gnome-console/files/patch-src_kgx-window.c
@@ -0,0 +1,10 @@
+--- src/kgx-window.c.orig	2022-07-14 22:37:21 UTC
++++ src/kgx-window.c
+@@ -83,7 +83,6 @@ kgx_window_constructed (GObject *object)
+ kgx_window_constructed (GObject *object)
+ {
+   KgxWindow          *self = KGX_WINDOW (object);
+-  g_autoptr (GError)  error = NULL;
+   GtkApplication     *application = NULL;
+   HdyStyleManager    *style_manager;
+ 
diff --git a/x11/gnome-console/pkg-descr b/x11/gnome-console/pkg-descr
new file mode 100644
index 000000000000..2e6922ec17dc
--- /dev/null
+++ b/x11/gnome-console/pkg-descr
@@ -0,0 +1,10 @@
+Console is a minimal terminal for GNOME
+
+Console is supposed to be a simple terminal emulator for the average user
+to carry out simple cli tasks and aims to be a ‘core’ app for GNOME/Phosh.
+
+We are not however trying to replace GNOME Terminal/Tilix, these advanced
+tools are great for developers and administrators, rather Console aims to
+serve the casual linux user who rarely needs a terminal
+
+WWW: https://gitlab.gnome.org/GNOME/console
diff --git a/x11/gnome-console/pkg-plist b/x11/gnome-console/pkg-plist
new file mode 100644
index 000000000000..3bd229a067e5
--- /dev/null
+++ b/x11/gnome-console/pkg-plist
@@ -0,0 +1,47 @@
+bin/kgx
+share/applications/org.gnome.Console.desktop
+share/dbus-1/services/org.gnome.Console.service
+share/icons/hicolor/scalable/apps/org.gnome.Console.svg
+share/icons/hicolor/symbolic/apps/org.gnome.Console-symbolic.svg
+share/locale/bg/LC_MESSAGES/kgx.mo
+share/locale/ca/LC_MESSAGES/kgx.mo
+share/locale/cs/LC_MESSAGES/kgx.mo
+share/locale/da/LC_MESSAGES/kgx.mo
+share/locale/de/LC_MESSAGES/kgx.mo
+share/locale/el/LC_MESSAGES/kgx.mo
+share/locale/en_GB/LC_MESSAGES/kgx.mo
+share/locale/es/LC_MESSAGES/kgx.mo
+share/locale/eu/LC_MESSAGES/kgx.mo
+share/locale/fa/LC_MESSAGES/kgx.mo
+share/locale/fi/LC_MESSAGES/kgx.mo
+share/locale/fr/LC_MESSAGES/kgx.mo
+share/locale/fur/LC_MESSAGES/kgx.mo
+share/locale/gl/LC_MESSAGES/kgx.mo
+share/locale/he/LC_MESSAGES/kgx.mo
+share/locale/hr/LC_MESSAGES/kgx.mo
+share/locale/hu/LC_MESSAGES/kgx.mo
+share/locale/id/LC_MESSAGES/kgx.mo
+share/locale/it/LC_MESSAGES/kgx.mo
+share/locale/ja/LC_MESSAGES/kgx.mo
+share/locale/kk/LC_MESSAGES/kgx.mo
+share/locale/ko/LC_MESSAGES/kgx.mo
+share/locale/lt/LC_MESSAGES/kgx.mo
+share/locale/nb/LC_MESSAGES/kgx.mo
+share/locale/ne/LC_MESSAGES/kgx.mo
+share/locale/nl/LC_MESSAGES/kgx.mo
+share/locale/oc/LC_MESSAGES/kgx.mo
+share/locale/pa/LC_MESSAGES/kgx.mo
+share/locale/pl/LC_MESSAGES/kgx.mo
+share/locale/pt/LC_MESSAGES/kgx.mo
+share/locale/pt_BR/LC_MESSAGES/kgx.mo
+share/locale/ro/LC_MESSAGES/kgx.mo
+share/locale/ru/LC_MESSAGES/kgx.mo
+share/locale/sk/LC_MESSAGES/kgx.mo
+share/locale/sl/LC_MESSAGES/kgx.mo
+share/locale/sr/LC_MESSAGES/kgx.mo
+share/locale/sv/LC_MESSAGES/kgx.mo
+share/locale/tr/LC_MESSAGES/kgx.mo
+share/locale/uk/LC_MESSAGES/kgx.mo
+share/locale/vi/LC_MESSAGES/kgx.mo
+share/locale/zh_CN/LC_MESSAGES/kgx.mo
+share/metainfo/org.gnome.Console.metainfo.xml