Make mold default x86 linker, plus harfbuzz + initial libpng cleanup (#6842)

* move libpng inside harfbuzz, make sure harfbuzz installs before freetype

* Make mold linker default for x86, make ragel an is_fake package

* fix fetchtags, start gtk3 update

* Add buildable gdk_pixbuf with patch

* rev harfbuzz version

* add rebuilds

* add pixman builds

* add binaries

* suggested changes

* add libva build

* change CREW_LINKER logic

* crew: Remove `CREW_*_PACKAGES` support

* const.rb: Remove `CREW_*_PACKAGES`

* suggested changes

* suggested changes

* fix linker env variable logic

* Don't let icon cache update failure derail other installs

* upload glew binaries

* suggested changes + add updated glib

* suggested changes

Co-authored-by: supechicken <supechicken666@gmail.com>
This commit is contained in:
Satadru Pramanik
2022-03-11 00:20:28 -05:00
committed by GitHub
parent dcc70d322d
commit c7c2eea7e4
18 changed files with 283 additions and 272 deletions

View File

@@ -3,24 +3,24 @@ require 'package'
class Fontconfig < Package
description 'Fontconfig is a library for configuring and customizing font access.'
homepage 'https://www.freedesktop.org/software/fontconfig/front.html'
@_ver = '2.13.93'
version "#{@_ver}-2"
@_ver = '2.13.96'
version @_ver
license 'MIT'
compatibility 'all'
source_url "https://github.com/freedesktop/fontconfig/archive/#{@_ver}.tar.gz"
source_sha256 'f8452c78d1a12f6966455b0d584f89553b13e970b40644c3650f690ec0b3b4fe'
source_url 'https://gitlab.freedesktop.org/fontconfig/fontconfig.git'
git_hashtag @_ver
binary_url({
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/fontconfig/2.13.93-2_armv7l/fontconfig-2.13.93-2-chromeos-armv7l.tar.xz',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/fontconfig/2.13.93-2_armv7l/fontconfig-2.13.93-2-chromeos-armv7l.tar.xz',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/fontconfig/2.13.93-2_i686/fontconfig-2.13.93-2-chromeos-i686.tar.xz',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/fontconfig/2.13.93-2_x86_64/fontconfig-2.13.93-2-chromeos-x86_64.tar.xz'
aarch64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/fontconfig/2.13.96_armv7l/fontconfig-2.13.96-chromeos-armv7l.tar.zst',
armv7l: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/fontconfig/2.13.96_armv7l/fontconfig-2.13.96-chromeos-armv7l.tar.zst',
i686: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/fontconfig/2.13.96_i686/fontconfig-2.13.96-chromeos-i686.tar.zst',
x86_64: 'https://gitlab.com/api/v4/projects/26210301/packages/generic/fontconfig/2.13.96_x86_64/fontconfig-2.13.96-chromeos-x86_64.tar.zst'
})
binary_sha256({
aarch64: '0047a707a1fc8531fa6bfc6fa45f2aead43ece0e65d1eaad094e4e98f3e43ec0',
armv7l: '0047a707a1fc8531fa6bfc6fa45f2aead43ece0e65d1eaad094e4e98f3e43ec0',
i686: 'abef1aab53d6880c0f43fc188a6de1ca1bf9b60c20c3f6459cdbcb40b32cb80a',
x86_64: '762b2f4a1d0d593f7f4c5000b651e9d03e98b11759a113bac0c260cc45830391'
aarch64: 'ee7900160a576c6402191b39c4a1764691d1eb97f18c19e0117bf2fd9fc0435c',
armv7l: 'ee7900160a576c6402191b39c4a1764691d1eb97f18c19e0117bf2fd9fc0435c',
i686: '5dc551362bc72fdcbd7734812e62d5035a97fee9b733b6690cae2286e6d4d69d',
x86_64: '0c0f777ba5352f92851c70a010b25824fa269dab2b389b95f823e03d890f4b15'
})
depends_on 'gperf'
@@ -28,8 +28,9 @@ class Fontconfig < Package
depends_on 'jsonc'
depends_on 'util_linux'
depends_on 'graphite'
no_fhs
# Remove freetype and fontconfig before rebuilding this package.
# Remove fontconfig before rebuilding this package.
def self.build
# Fix build failure from font directories not being writable.
@@ -38,7 +39,7 @@ class Fontconfig < Package
import sys
sys.exit()
INSTALLCACHE_HEREDOC
IO.write('install-cache', @install_cache, perm: 0o666)
File.write('install-cache', @install_cache, perm: 0o666)
system "meson #{CREW_MESON_OPTIONS} \
--localstatedir=#{CREW_PREFIX}/cache \
--default-library=both \
@@ -67,14 +68,14 @@ class Fontconfig < Package
<cachedir>~/.fontconfig</cachedir>
</fontconfig>
FONTCONF_HEREDOC
IO.write("#{CREW_DEST_PREFIX}/etc/fonts/conf.d/52-chromebrew.conf", @fonts_conf, perm: 0o666)
File.write("#{CREW_DEST_PREFIX}/etc/fonts/conf.d/52-chromebrew.conf", @fonts_conf, perm: 0o666)
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/etc/env.d/"
@env = <<~EOF
# Fontconfig configuration
export FONTCONFIG_PATH=#{CREW_PREFIX}/etc/fonts
EOF
IO.write("#{CREW_DEST_PREFIX}/etc/env.d/fontconfig", @env)
File.write("#{CREW_DEST_PREFIX}/etc/env.d/fontconfig", @env)
end
def self.postinstall