Commit c1579ef6 authored by satmandu's avatar satmandu Committed by GitHub

New Gnome terminal prereq updates (#5204)

* Update gtk4.rb

* Update vte.rb
parent fb1d3d6c
......@@ -3,22 +3,22 @@ require 'package'
class Gtk4 < Package
description 'GTK+ is a multi-platform toolkit for creating graphical user interfaces.'
homepage 'https://developer.gnome.org/gtk4/'
version '4.0.2'
version '4.1.0'
compatibility 'all'
source_url 'https://download.gnome.org/sources/gtk/4.0/gtk-4.0.2.tar.xz'
source_sha256 '626707ac6751426ed76fed49c5b2d052dfee45757ce3827088ba87ca7f1dbc84'
source_url 'https://download.gnome.org/sources/gtk/4.1/gtk-4.1.0.tar.xz'
source_sha256 '973f651722a847e91e12be0a1c1c610aae0961f2f8d55c5d1fa39e17267d7ada'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0.2-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0.2-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.0.2-chromeos-x86_64.tar.xz',
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.1.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.1.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.1.0-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gtk4-4.1.0-chromeos-x86_64.tar.xz'
})
binary_sha256 ({
aarch64: '80abb64172b377862591c608196ac945bd1f9ba81e2304d180d4f1129cb310f7',
armv7l: '80abb64172b377862591c608196ac945bd1f9ba81e2304d180d4f1129cb310f7',
i686: 'cdbb821b6bf8d6965022b0f8e8b52c750db13c40134a1704cf27bfcd753087cb',
x86_64: '496f28133a2541843b4cdd08db8a941c7513a19ba9621212e635bf3ec6bc0284',
binary_sha256({
aarch64: '660d77d46cd96bc0a9c444d0731e84c6a0e9d36b5df9b27f0214891f5e2c99ca',
armv7l: '660d77d46cd96bc0a9c444d0731e84c6a0e9d36b5df9b27f0214891f5e2c99ca',
i686: 'e800d434423310eee5e81f1973ec51be376a4e3b0cac040da68da4c5e53919ea',
x86_64: '873b3c26ecaf958476f782ae62c10291649f41e1d533aa6381340617beb5aae3'
})
depends_on 'cups'
......@@ -32,17 +32,16 @@ class Gtk4 < Package
depends_on 'json_glib'
depends_on 'libepoxy'
depends_on 'libxkbcommon'
depends_on 'llvm' => :build
depends_on 'shared_mime_info'
depends_on 'six' => :build
depends_on 'xdg_base'
depends_on 'pygments' => :build
def self.patch
case ARCH
case ARCH
when 'i686'
system "sed -i 's,#include <fcntl.h>,#include <linux/fcntl.h>,' gdk/wayland/cursor/os-compatibility.c"
system "sed -i 's/#define HAVE_MEMFD_CREATE/#define HAVE_MEMFD_CREATE_NO/' gdk/wayland/cursor/os-compatibility.c"
system "sed -i 's,#include <fcntl.h>,#include <linux/fcntl.h>,' gdk/wayland/cursor/os-compatibility.c"
system "sed -i 's/#define HAVE_MEMFD_CREATE/#define HAVE_MEMFD_CREATE_NO/' gdk/wayland/cursor/os-compatibility.c"
end
end
......@@ -70,9 +69,9 @@ class Gtk4 < Package
system "glib-compile-schemas #{CREW_PREFIX}/share/glib-2.0/schemas"
# update mime database
system "update-mime-database #{CREW_PREFIX}/share/mime"
if !File.exists?("#{HOME}/.config/gtk-4.0/settings.ini")
unless File.exist?("#{HOME}/.config/gtk-4.0/settings.ini")
puts
puts "Adding basic gtk4 settings to ~/.config/gtk-4.0/settings.ini".lightblue
puts 'Adding basic gtk4 settings to ~/.config/gtk-4.0/settings.ini'.lightblue
FileUtils.mkdir_p "#{HOME}/.config/gtk-4.0"
system "cat << 'EOF' > #{HOME}/.config/gtk-4.0/settings.ini
[Settings]
......
......@@ -8,38 +8,52 @@ class Vte < Package
source_url 'https://download.gnome.org/sources/vte/0.63/vte-0.63.91.tar.xz'
source_sha256 '2a6f58470148d2a16bac387da12525d061e5984b68fc1ff8d068d10d4f1716ab'
depends_on 'gobject_introspection' => :build
# depends_on 'vala' => :build
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/vte-0.63.91-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/vte-0.63.91-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/vte-0.63.91-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/vte-0.63.91-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '4028b67195f646d4a0e9fef0c3655fe6196339a78c9a9a8ec9e01855d76f9f8d',
armv7l: '4028b67195f646d4a0e9fef0c3655fe6196339a78c9a9a8ec9e01855d76f9f8d',
i686: '5a89dfee8af6d95ec42c14d308c760bc0f65bbe3653e1ce0a29a13455a681d6b',
x86_64: '0d51c8ac7090fb7b427bd963d71ad2b6f47cb459cae447548760973c60dbf7a6'
})
depends_on 'gobject_introspection' => ':build'
depends_on 'fribidi'
depends_on 'gtk3'
depends_on 'gtk4'
def self.patch
system "sed -i 's/gtk+-4.0/gtk4/g' meson.build"
# i686 headers are too old to have TIOCGPTPEER
case ARCH
when 'i686'
system "sed -i 's/#ifdef __linux__/#ifdef TIOCGPTPEER/' src/pty.cc"
end
end
# i686 headers are too old to have TIOCGPTPEER
case ARCH
when 'i686'
system "sed -i 's/#ifdef __linux__/#ifdef TIOCGPTPEER/' src/pty.cc"
end
def self.build
system "meson #{CREW_MESON_LTO_OPTIONS} \
-Dc_args='-fuse-ld=lld -pipe -fno-stack-protector' \
-Dc_link_args='-fuse-ld=lld -pipe -fno-stack-protector' \
-Dcpp_args='-fuse-ld=lld -pipe -fno-stack-protector' \
-Dcpp_link_args='-fuse-ld=lld -pipe -fno-stack-protector' \
-D_systemd=false \
-Dfribidi=true \
-Dgtk3=true \
-Dgtk4=true \
-Dgir=false \
-Dvapi=false \
builddir" # TODO: get gir and vapi working
system "ninja -C builddir"
system "meson \
#{CREW_MESON_OPTIONS} \
-Dc_args='-fuse-ld=lld -pipe -fno-stack-protector' \
-Dc_link_args='-fuse-ld=lld -pipe -fno-stack-protector' \
-Dcpp_args='-fuse-ld=lld -pipe -fno-stack-protector' \
-Dcpp_link_args='-fuse-ld=lld -pipe -fno-stack-protector' \
-D_systemd=false \
-Dfribidi=true \
-Dgtk3=true \
-Dgtk4=true \
-Dgir=false \
-Dvapi=false \
builddir"
system 'meson configure builddir'
system 'ninja -C builddir'
end
def self.install
system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment