mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
* Escape anitya name passed via anitya search url; update gtk3 mapping. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * gtk: Package File Update Run on linux/amd64 container. * gtk: Package File Update Run on linux/arm/v7 container. * Only let docbook_xml create directories if not in CI. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Include subdirectories of CREW_PREFIX in filelists. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Adjust gtk3 build with fixed filelist. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * gtk: Package File Update Run on linux/arm/v7 container. * revert url change Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: chromebrew-actions[bot] <chromebrew-actions[bot]@users.noreply.github.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com>
103 lines
3.2 KiB
Ruby
103 lines
3.2 KiB
Ruby
require 'buildsystems/meson'
|
|
|
|
class Gtk3 < Meson
|
|
description 'GTK+ is a multi-platform toolkit for creating graphical user interfaces.'
|
|
homepage 'https://docs.gtk.org/gtk3/'
|
|
version '3.24.51'
|
|
license 'LGPL-2.1'
|
|
compatibility 'aarch64 armv7l x86_64'
|
|
source_url 'https://gitlab.gnome.org/GNOME/gtk.git'
|
|
git_hashtag version
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: 'c16fc1ed90b02fce49d75e37def55a1543b15e50d518f2b835f1a9e6c0f81f7f',
|
|
armv7l: 'c16fc1ed90b02fce49d75e37def55a1543b15e50d518f2b835f1a9e6c0f81f7f',
|
|
x86_64: '88dc2bc6f045d56ad578002f261682d09a6b34fd0cea09f77d9ed09e2120284b'
|
|
})
|
|
|
|
# L = Logical Dependency, R = Runtime Dependency
|
|
depends_on 'adwaita_fonts' # L
|
|
depends_on 'adwaita_icon_theme' # L
|
|
depends_on 'at_spi2_core' # R
|
|
depends_on 'cairo' # R
|
|
depends_on 'cups' # R
|
|
depends_on 'docbook' => :build
|
|
depends_on 'fontconfig' # R
|
|
depends_on 'fribidi' # R
|
|
depends_on 'gcc_lib' # R
|
|
depends_on 'gdk_pixbuf' # R
|
|
depends_on 'ghostscript' => :build
|
|
depends_on 'glib' # R
|
|
depends_on 'glibc' # R
|
|
depends_on 'gobject_introspection' => :build
|
|
depends_on 'graphene' => :build # Do we need this?
|
|
depends_on 'graphite' => :build # Do we need this?
|
|
depends_on 'harfbuzz' # R
|
|
depends_on 'hicolor_icon_theme' # L
|
|
depends_on 'iso_codes' => :build
|
|
depends_on 'json_glib' => :build
|
|
depends_on 'libdeflate' => :build # Do we need this?
|
|
depends_on 'libepoxy' # R
|
|
depends_on 'libjpeg_turbo' => :build # Do we need this?
|
|
depends_on 'librsvg' # L
|
|
depends_on 'libsass' => :build
|
|
depends_on 'libspectre' => :build
|
|
depends_on 'libx11' # R
|
|
depends_on 'libxcomposite' # R
|
|
depends_on 'libxcursor' # R
|
|
depends_on 'libxdamage' # R
|
|
depends_on 'libxext' # R
|
|
depends_on 'libxfixes' # R
|
|
depends_on 'libxi' # R
|
|
depends_on 'libxinerama' # R
|
|
depends_on 'libxkbcommon' # R
|
|
depends_on 'libxrandr' # R
|
|
depends_on 'mesa' => :build
|
|
depends_on 'pango' # R
|
|
depends_on 'rest' => :build
|
|
depends_on 'shaderc' => :build
|
|
depends_on 'shared_mime_info' # L
|
|
depends_on 'sommelier' # L
|
|
depends_on 'valgrind' => :build
|
|
depends_on 'vulkan_headers' => :build
|
|
depends_on 'vulkan_icd_loader' => :build
|
|
depends_on 'wayland' # R
|
|
depends_on 'xdg_base' # L
|
|
|
|
gnome
|
|
no_fhs
|
|
no_upstream_update
|
|
|
|
def self.patch
|
|
# Use locally build subprojects
|
|
@deps = %w[cairo librsvg]
|
|
@deps.each do |dep|
|
|
FileUtils.rm_rf ["subprojects/#{dep}", "subprojects/#{dep}.wrap"]
|
|
end
|
|
end
|
|
|
|
meson_options '-Dbroadway_backend=true \
|
|
-Ddemos=false \
|
|
-Dexamples=false \
|
|
-Dgtk_doc=false'
|
|
|
|
meson_build_extras do
|
|
File.write 'gtk3settings', <<~GTK3_CONFIG_HEREDOC
|
|
[Settings]
|
|
gtk-icon-theme-name = Adwaita
|
|
gtk-fallback-icon-theme = gnome
|
|
gtk-theme-name = Adwaita
|
|
gtk-font-name = Adwaita Sans 11
|
|
gtk-application-prefer-dark-theme = false
|
|
monospace-font-name = Adwaita Mono 11
|
|
GTK3_CONFIG_HEREDOC
|
|
end
|
|
|
|
meson_install_extras do
|
|
system "sed -i 's,null,,g' #{CREW_DEST_LIB_PREFIX}/pkgconfig/gtk*.pc"
|
|
xdg_config_dest_home = File.join(CREW_DEST_PREFIX, '.config')
|
|
FileUtils.install 'gtk3settings', "#{xdg_config_dest_home}/gtk-3.0/settings.ini", mode: 0o644
|
|
end
|
|
end
|