git: 9f83e6190ae9 - main - x11-toolkits/granite7: new port -- Extensions of GTK 4.0 toolkit

From: Tobias C. Berner <tcberner_at_FreeBSD.org>
Date: Fri, 13 May 2022 21:59:39 UTC
The branch main has been updated by tcberner:

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

commit 9f83e6190ae9e3d4253ec897d96c19d0be2f405c
Author:     Olivier Duchateau <duchateau.olivier@gmail.com>
AuthorDate: 2022-05-13 21:55:43 +0000
Commit:     Tobias C. Berner <tcberner@FreeBSD.org>
CommitDate: 2022-05-13 21:58:27 +0000

    x11-toolkits/granite7: new port -- Extensions of GTK 4.0 toolkit
    
    Granite is an extension of GTK toolkit. It provides several widgets and
    classes that ease desktop applications development.
    
    WWW: https://github.com/elementary/granite
    
    PR:             263776
---
 x11-toolkits/Makefile                              |   1 +
 x11-toolkits/granite7/Makefile                     |  27 +++
 x11-toolkits/granite7/distinfo                     |   3 +
 .../files/patch-lib_Widgets_DatePicker.vala        |  11 ++
 x11-toolkits/granite7/pkg-descr                    |   4 +
 x11-toolkits/granite7/pkg-plist                    | 212 +++++++++++++++++++++
 6 files changed, 258 insertions(+)

diff --git a/x11-toolkits/Makefile b/x11-toolkits/Makefile
index 54e1d60e09bb..419248dbb882 100644
--- a/x11-toolkits/Makefile
+++ b/x11-toolkits/Makefile
@@ -23,6 +23,7 @@
     SUBDIR += gnustep-back
     SUBDIR += gnustep-gui
     SUBDIR += granite
+    SUBDIR += granite7
     SUBDIR += gstreamer1-plugins-gtk
     SUBDIR += gstreamer1-plugins-gtk4
     SUBDIR += gstreamer1-plugins-pango
diff --git a/x11-toolkits/granite7/Makefile b/x11-toolkits/granite7/Makefile
new file mode 100644
index 000000000000..3413f5cabb06
--- /dev/null
+++ b/x11-toolkits/granite7/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	granite
+DISTVERSION=	7.0.0
+CATEGORIES=	x11-toolkits
+PKGNAMESUFFIX=	7
+
+MAINTAINER=	desktop@FreeBSD.org
+COMMENT=	Extensions of GTK 4.0 toolkit
+
+LICENSE=	LGPL3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	valac:lang/vala
+LIB_DEPENDS=	libgee-0.8.so:devel/libgee
+RUN_DEPENDS=	contractor:sysutils/contractor \
+		gsettings-desktop-schemas>0:devel/gsettings-desktop-schemas \
+		xdg-desktop-portal>0:deskutils/xdg-desktop-portal
+
+USES=		gettext gnome meson pkgconfig python:3.6+,build tar:xz
+USE_GITHUB=	yes
+GH_ACCOUNT=	elementary
+USE_GNOME=	cairo glib20 gtk40 gdkpixbuf2 introspection:build
+USE_LDCONFIG=	yes
+
+BINARY_ALIAS=	python3=${PYTHON_CMD}
+PLIST_SUB=	DISTVERSION=${DISTVERSION}
+
+.include <bsd.port.mk>
diff --git a/x11-toolkits/granite7/distinfo b/x11-toolkits/granite7/distinfo
new file mode 100644
index 000000000000..5f15708b96db
--- /dev/null
+++ b/x11-toolkits/granite7/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1651686647
+SHA256 (elementary-granite-7.0.0_GH0.tar.gz) = b3e77a1ca954d68f074cfad08ec65db12a56a80460e3c031c41d9f900f0314e3
+SIZE (elementary-granite-7.0.0_GH0.tar.gz) = 375269
diff --git a/x11-toolkits/granite7/files/patch-lib_Widgets_DatePicker.vala b/x11-toolkits/granite7/files/patch-lib_Widgets_DatePicker.vala
new file mode 100644
index 000000000000..b4258cfe17d7
--- /dev/null
+++ b/x11-toolkits/granite7/files/patch-lib_Widgets_DatePicker.vala
@@ -0,0 +1,11 @@
+--- lib/Widgets/DatePicker.vala.orig	2022-04-30 18:14:07 UTC
++++ lib/Widgets/DatePicker.vala
+@@ -50,7 +50,7 @@ public class Granite.DatePicker : Gtk.Entry, Gtk.Build
+ 
+         // Entry properties
+         editable = false; // user can't edit the entry directly
+-        primary_icon_gicon = new ThemedIcon.with_default_fallbacks ("office-calendar-symbolic");
++        primary_icon_gicon = new ThemedIcon.with_default_fallbacks ("x-office-calendar-symbolic");
+         secondary_icon_gicon = new ThemedIcon.with_default_fallbacks ("pan-down-symbolic");
+ 
+         add_css_class ("date-picker");
diff --git a/x11-toolkits/granite7/pkg-descr b/x11-toolkits/granite7/pkg-descr
new file mode 100644
index 000000000000..982b2934fe8b
--- /dev/null
+++ b/x11-toolkits/granite7/pkg-descr
@@ -0,0 +1,4 @@
+Granite is an extension of GTK toolkit. It provides several widgets and
+classes that ease desktop applications development.
+
+WWW: https://github.com/elementary/granite
diff --git a/x11-toolkits/granite7/pkg-plist b/x11-toolkits/granite7/pkg-plist
new file mode 100644
index 000000000000..02790d455c6f
--- /dev/null
+++ b/x11-toolkits/granite7/pkg-plist
@@ -0,0 +1,212 @@
+bin/granite-7-demo
+include/granite-7/granite-7.h
+lib/girepository-1.0/Granite-7.0.typelib
+lib/libgranite-7.so
+lib/libgranite-7.so.7
+lib/libgranite-7.so.%%DISTVERSION%%
+libdata/pkgconfig/granite-7.pc
+share/applications/io.elementary.granite-7.demo.desktop
+share/gir-1.0/Granite-7.0.gir
+share/locale/aa/LC_MESSAGES/granite-7.mo
+share/locale/ab/LC_MESSAGES/granite-7.mo
+share/locale/ace/LC_MESSAGES/granite-7.mo
+share/locale/ae/LC_MESSAGES/granite-7.mo
+share/locale/af/LC_MESSAGES/granite-7.mo
+share/locale/ak/LC_MESSAGES/granite-7.mo
+share/locale/am/LC_MESSAGES/granite-7.mo
+share/locale/an/LC_MESSAGES/granite-7.mo
+share/locale/ar/LC_MESSAGES/granite-7.mo
+share/locale/as/LC_MESSAGES/granite-7.mo
+share/locale/ast/LC_MESSAGES/granite-7.mo
+share/locale/av/LC_MESSAGES/granite-7.mo
+share/locale/ay/LC_MESSAGES/granite-7.mo
+share/locale/az/LC_MESSAGES/granite-7.mo
+share/locale/ba/LC_MESSAGES/granite-7.mo
+share/locale/be/LC_MESSAGES/granite-7.mo
+share/locale/bg/LC_MESSAGES/granite-7.mo
+share/locale/bh/LC_MESSAGES/granite-7.mo
+share/locale/bi/LC_MESSAGES/granite-7.mo
+share/locale/bm/LC_MESSAGES/granite-7.mo
+share/locale/bn/LC_MESSAGES/granite-7.mo
+share/locale/bo/LC_MESSAGES/granite-7.mo
+share/locale/br/LC_MESSAGES/granite-7.mo
+share/locale/bs/LC_MESSAGES/granite-7.mo
+share/locale/ca/LC_MESSAGES/granite-7.mo
+share/locale/ce/LC_MESSAGES/granite-7.mo
+share/locale/ch/LC_MESSAGES/granite-7.mo
+share/locale/ckb/LC_MESSAGES/granite-7.mo
+share/locale/co/LC_MESSAGES/granite-7.mo
+share/locale/cr/LC_MESSAGES/granite-7.mo
+share/locale/cs/LC_MESSAGES/granite-7.mo
+share/locale/cu/LC_MESSAGES/granite-7.mo
+share/locale/cv/LC_MESSAGES/granite-7.mo
+share/locale/cy/LC_MESSAGES/granite-7.mo
+share/locale/da/LC_MESSAGES/granite-7.mo
+share/locale/de/LC_MESSAGES/granite-7.mo
+share/locale/dv/LC_MESSAGES/granite-7.mo
+share/locale/dz/LC_MESSAGES/granite-7.mo
+share/locale/ee/LC_MESSAGES/granite-7.mo
+share/locale/el/LC_MESSAGES/granite-7.mo
+share/locale/en_AU/LC_MESSAGES/granite-7.mo
+share/locale/en_CA/LC_MESSAGES/granite-7.mo
+share/locale/en_GB/LC_MESSAGES/granite-7.mo
+share/locale/eo/LC_MESSAGES/granite-7.mo
+share/locale/es/LC_MESSAGES/granite-7.mo
+share/locale/et/LC_MESSAGES/granite-7.mo
+share/locale/eu/LC_MESSAGES/granite-7.mo
+share/locale/fa/LC_MESSAGES/granite-7.mo
+share/locale/ff/LC_MESSAGES/granite-7.mo
+share/locale/fi/LC_MESSAGES/granite-7.mo
+share/locale/fil/LC_MESSAGES/granite-7.mo
+share/locale/fj/LC_MESSAGES/granite-7.mo
+share/locale/fo/LC_MESSAGES/granite-7.mo
+share/locale/fr/LC_MESSAGES/granite-7.mo
+share/locale/fr_CA/LC_MESSAGES/granite-7.mo
+share/locale/fy/LC_MESSAGES/granite-7.mo
+share/locale/ga/LC_MESSAGES/granite-7.mo
+share/locale/gd/LC_MESSAGES/granite-7.mo
+share/locale/gl/LC_MESSAGES/granite-7.mo
+share/locale/gn/LC_MESSAGES/granite-7.mo
+share/locale/gu/LC_MESSAGES/granite-7.mo
+share/locale/gv/LC_MESSAGES/granite-7.mo
+share/locale/ha/LC_MESSAGES/granite-7.mo
+share/locale/he/LC_MESSAGES/granite-7.mo
+share/locale/hi/LC_MESSAGES/granite-7.mo
+share/locale/ho/LC_MESSAGES/granite-7.mo
+share/locale/hr/LC_MESSAGES/granite-7.mo
+share/locale/ht/LC_MESSAGES/granite-7.mo
+share/locale/hu/LC_MESSAGES/granite-7.mo
+share/locale/hy/LC_MESSAGES/granite-7.mo
+share/locale/hz/LC_MESSAGES/granite-7.mo
+share/locale/ia/LC_MESSAGES/granite-7.mo
+share/locale/id/LC_MESSAGES/granite-7.mo
+share/locale/ie/LC_MESSAGES/granite-7.mo
+share/locale/ig/LC_MESSAGES/granite-7.mo
+share/locale/ii/LC_MESSAGES/granite-7.mo
+share/locale/ik/LC_MESSAGES/granite-7.mo
+share/locale/io/LC_MESSAGES/granite-7.mo
+share/locale/is/LC_MESSAGES/granite-7.mo
+share/locale/it/LC_MESSAGES/granite-7.mo
+share/locale/iu/LC_MESSAGES/granite-7.mo
+share/locale/ja/LC_MESSAGES/granite-7.mo
+share/locale/jv/LC_MESSAGES/granite-7.mo
+share/locale/ka/LC_MESSAGES/granite-7.mo
+share/locale/kg/LC_MESSAGES/granite-7.mo
+share/locale/ki/LC_MESSAGES/granite-7.mo
+share/locale/kj/LC_MESSAGES/granite-7.mo
+share/locale/kk/LC_MESSAGES/granite-7.mo
+share/locale/kl/LC_MESSAGES/granite-7.mo
+share/locale/km/LC_MESSAGES/granite-7.mo
+share/locale/kn/LC_MESSAGES/granite-7.mo
+share/locale/ko/LC_MESSAGES/granite-7.mo
+share/locale/kr/LC_MESSAGES/granite-7.mo
+share/locale/ks/LC_MESSAGES/granite-7.mo
+share/locale/ku/LC_MESSAGES/granite-7.mo
+share/locale/kv/LC_MESSAGES/granite-7.mo
+share/locale/kw/LC_MESSAGES/granite-7.mo
+share/locale/ky/LC_MESSAGES/granite-7.mo
+share/locale/la/LC_MESSAGES/granite-7.mo
+share/locale/lb/LC_MESSAGES/granite-7.mo
+share/locale/lg/LC_MESSAGES/granite-7.mo
+share/locale/li/LC_MESSAGES/granite-7.mo
+share/locale/ln/LC_MESSAGES/granite-7.mo
+share/locale/lo/LC_MESSAGES/granite-7.mo
+share/locale/lt/LC_MESSAGES/granite-7.mo
+share/locale/lu/LC_MESSAGES/granite-7.mo
+share/locale/lv/LC_MESSAGES/granite-7.mo
+share/locale/mg/LC_MESSAGES/granite-7.mo
+share/locale/mh/LC_MESSAGES/granite-7.mo
+share/locale/mi/LC_MESSAGES/granite-7.mo
+share/locale/mk/LC_MESSAGES/granite-7.mo
+share/locale/ml/LC_MESSAGES/granite-7.mo
+share/locale/mn/LC_MESSAGES/granite-7.mo
+share/locale/mo/LC_MESSAGES/granite-7.mo
+share/locale/mr/LC_MESSAGES/granite-7.mo
+share/locale/ms/LC_MESSAGES/granite-7.mo
+share/locale/mt/LC_MESSAGES/granite-7.mo
+share/locale/my/LC_MESSAGES/granite-7.mo
+share/locale/na/LC_MESSAGES/granite-7.mo
+share/locale/nb/LC_MESSAGES/granite-7.mo
+share/locale/nd/LC_MESSAGES/granite-7.mo
+share/locale/ne/LC_MESSAGES/granite-7.mo
+share/locale/ng/LC_MESSAGES/granite-7.mo
+share/locale/nl/LC_MESSAGES/granite-7.mo
+share/locale/nn/LC_MESSAGES/granite-7.mo
+share/locale/no/LC_MESSAGES/granite-7.mo
+share/locale/nr/LC_MESSAGES/granite-7.mo
+share/locale/nv/LC_MESSAGES/granite-7.mo
+share/locale/ny/LC_MESSAGES/granite-7.mo
+share/locale/oc/LC_MESSAGES/granite-7.mo
+share/locale/oj/LC_MESSAGES/granite-7.mo
+share/locale/om/LC_MESSAGES/granite-7.mo
+share/locale/or/LC_MESSAGES/granite-7.mo
+share/locale/os/LC_MESSAGES/granite-7.mo
+share/locale/pa/LC_MESSAGES/granite-7.mo
+share/locale/pi/LC_MESSAGES/granite-7.mo
+share/locale/pl/LC_MESSAGES/granite-7.mo
+share/locale/ps/LC_MESSAGES/granite-7.mo
+share/locale/pt/LC_MESSAGES/granite-7.mo
+share/locale/pt_BR/LC_MESSAGES/granite-7.mo
+share/locale/qu/LC_MESSAGES/granite-7.mo
+share/locale/rm/LC_MESSAGES/granite-7.mo
+share/locale/rn/LC_MESSAGES/granite-7.mo
+share/locale/ro/LC_MESSAGES/granite-7.mo
+share/locale/ru/LC_MESSAGES/granite-7.mo
+share/locale/rue/LC_MESSAGES/granite-7.mo
+share/locale/rw/LC_MESSAGES/granite-7.mo
+share/locale/sa/LC_MESSAGES/granite-7.mo
+share/locale/sc/LC_MESSAGES/granite-7.mo
+share/locale/sd/LC_MESSAGES/granite-7.mo
+share/locale/se/LC_MESSAGES/granite-7.mo
+share/locale/sg/LC_MESSAGES/granite-7.mo
+share/locale/si/LC_MESSAGES/granite-7.mo
+share/locale/sk/LC_MESSAGES/granite-7.mo
+share/locale/sl/LC_MESSAGES/granite-7.mo
+share/locale/sm/LC_MESSAGES/granite-7.mo
+share/locale/sma/LC_MESSAGES/granite-7.mo
+share/locale/sn/LC_MESSAGES/granite-7.mo
+share/locale/so/LC_MESSAGES/granite-7.mo
+share/locale/sq/LC_MESSAGES/granite-7.mo
+share/locale/sr/LC_MESSAGES/granite-7.mo
+share/locale/sr@latin/LC_MESSAGES/granite-7.mo
+share/locale/ss/LC_MESSAGES/granite-7.mo
+share/locale/st/LC_MESSAGES/granite-7.mo
+share/locale/su/LC_MESSAGES/granite-7.mo
+share/locale/sv/LC_MESSAGES/granite-7.mo
+share/locale/sw/LC_MESSAGES/granite-7.mo
+share/locale/szl/LC_MESSAGES/granite-7.mo
+share/locale/ta/LC_MESSAGES/granite-7.mo
+share/locale/te/LC_MESSAGES/granite-7.mo
+share/locale/tg/LC_MESSAGES/granite-7.mo
+share/locale/th/LC_MESSAGES/granite-7.mo
+share/locale/ti/LC_MESSAGES/granite-7.mo
+share/locale/tk/LC_MESSAGES/granite-7.mo
+share/locale/tl/LC_MESSAGES/granite-7.mo
+share/locale/tn/LC_MESSAGES/granite-7.mo
+share/locale/to/LC_MESSAGES/granite-7.mo
+share/locale/tr/LC_MESSAGES/granite-7.mo
+share/locale/ts/LC_MESSAGES/granite-7.mo
+share/locale/tt/LC_MESSAGES/granite-7.mo
+share/locale/tw/LC_MESSAGES/granite-7.mo
+share/locale/ty/LC_MESSAGES/granite-7.mo
+share/locale/ug/LC_MESSAGES/granite-7.mo
+share/locale/uk/LC_MESSAGES/granite-7.mo
+share/locale/ur/LC_MESSAGES/granite-7.mo
+share/locale/uz/LC_MESSAGES/granite-7.mo
+share/locale/ve/LC_MESSAGES/granite-7.mo
+share/locale/vi/LC_MESSAGES/granite-7.mo
+share/locale/vo/LC_MESSAGES/granite-7.mo
+share/locale/wa/LC_MESSAGES/granite-7.mo
+share/locale/wo/LC_MESSAGES/granite-7.mo
+share/locale/xh/LC_MESSAGES/granite-7.mo
+share/locale/yi/LC_MESSAGES/granite-7.mo
+share/locale/yo/LC_MESSAGES/granite-7.mo
+share/locale/za/LC_MESSAGES/granite-7.mo
+share/locale/zh/LC_MESSAGES/granite-7.mo
+share/locale/zh_CN/LC_MESSAGES/granite-7.mo
+share/locale/zh_HK/LC_MESSAGES/granite-7.mo
+share/locale/zh_TW/LC_MESSAGES/granite-7.mo
+share/locale/zu/LC_MESSAGES/granite-7.mo
+share/metainfo/granite-7.appdata.xml
+share/vala/vapi/granite-7.deps
+share/vala/vapi/granite-7.vapi