mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 07:28:01 -05:00
Crew profile base (#5503)
* Make basic crew-profile-base package * Use crew consts * Upgrade to 0.0.2-pre2 * Convert aa* to cf* * Docbook * aa* to dz* * docbook-xsl * through fz* and fix environment variables * through mz* * through pz* * through zz* * fix crew-profile-base * upgrade crew-profile-base * major crew-profile-base changes * Upgrade crew-profile-base and fix xdg-base * fix sha256sum * Remove stale files * pkgsrc and sommelier * Add crew-profile-base to core packages and ready for merging * Bump versions * prevent conflicts with #5494 * fix sha256sum * fix fop * profile.d is not ours * fix bash * Upgrade crew-profile-base to 0.0.1-pre6 and fix bash * Remove self-referencing comment * Add binaries, fix rust, fix #{@ver} * move compatibility line * add core mandb deps back * File.exists? => File.exist? * deduplicate @env * update packages * Fix gdk_pixbug source url * Add binaries, use rubocop style fixes * Update cf from 6.36.1-1 to 6.53.0 * fix sl * fix depot tools * remove apulse since it conflicts with pulseaudio. * refactor crew_profile_base * first tranche of builds * go * add cf * hunspell * transmission * clean up dependency & env situation for gdk_pixbuf * fix gettext * fix nano * fix intel-media-driver * add zziplib for texlive * fix texlive * split fuse for flatpak * fix flatpak * delete rack (broken and unmaintained) * fix packer completion * modify and fix sl * fix s * fix stressng * fix stack * Add TMPDIR * Remove TMPDIR from build files * Fix aws2 version * Go: remove extraneous dependency * hunspell_fr_fr: use french in description * intel media driver: remove case x86_64 * aws2: quickfix * everything but texlive * texlive * fix stressng * Delete pkgsrc.rb * add back pkgsrc Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Ed Reel <edreel@gmail.com> Co-authored-by: satmandu <satadru@umich.edu>
This commit is contained in:
committed by
GitHub
parent
2dd3b6a45b
commit
d6e779ccd3
@@ -4,23 +4,23 @@ 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}-1"
|
||||
version "#{@_ver}-2"
|
||||
license 'MIT'
|
||||
compatibility 'all'
|
||||
source_url "https://github.com/freedesktop/fontconfig/archive/#{@_ver}.tar.gz"
|
||||
source_sha256 'f8452c78d1a12f6966455b0d584f89553b13e970b40644c3650f690ec0b3b4fe'
|
||||
|
||||
binary_url({
|
||||
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/fontconfig-2.13.93-1-chromeos-armv7l.tar.xz',
|
||||
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/fontconfig-2.13.93-1-chromeos-armv7l.tar.xz',
|
||||
i686: 'https://dl.bintray.com/chromebrew/chromebrew/fontconfig-2.13.93-1-chromeos-i686.tar.xz',
|
||||
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/fontconfig-2.13.93-1-chromeos-x86_64.tar.xz'
|
||||
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/fontconfig-2.13.93-2-chromeos-armv7l.tar.xz',
|
||||
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/fontconfig-2.13.93-2-chromeos-armv7l.tar.xz',
|
||||
i686: 'https://dl.bintray.com/chromebrew/chromebrew/fontconfig-2.13.93-2-chromeos-i686.tar.xz',
|
||||
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/fontconfig-2.13.93-2-chromeos-x86_64.tar.xz'
|
||||
})
|
||||
binary_sha256({
|
||||
aarch64: 'fac3629221d8a54bba8a1a8e1fc151706a434320c2a92726508234c799cecade',
|
||||
armv7l: 'fac3629221d8a54bba8a1a8e1fc151706a434320c2a92726508234c799cecade',
|
||||
i686: '668b4e389a105b91ed6b75416cea01e84856eaa8d7902448c9907670e1acf13b',
|
||||
x86_64: 'd38e7415b0dad534c2bdfc66a8460c6a5ba00153dade7033e757ffd8be8ea30a'
|
||||
aarch64: '0047a707a1fc8531fa6bfc6fa45f2aead43ece0e65d1eaad094e4e98f3e43ec0',
|
||||
armv7l: '0047a707a1fc8531fa6bfc6fa45f2aead43ece0e65d1eaad094e4e98f3e43ec0',
|
||||
i686: 'abef1aab53d6880c0f43fc188a6de1ca1bf9b60c20c3f6459cdbcb40b32cb80a',
|
||||
x86_64: '762b2f4a1d0d593f7f4c5000b651e9d03e98b11759a113bac0c260cc45830391'
|
||||
})
|
||||
|
||||
depends_on 'gperf'
|
||||
@@ -68,16 +68,16 @@ class Fontconfig < Package
|
||||
</fontconfig>
|
||||
FONTCONF_HEREDOC
|
||||
IO.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)
|
||||
end
|
||||
|
||||
def self.postinstall
|
||||
fontconfig_in_bashrc = `grep -c "FONTCONFIG_PATH" ~/.bashrc || true`
|
||||
unless fontconfig_in_bashrc.to_i.positive?
|
||||
puts 'Putting fontconfig code in ~/.bashrc'.lightblue
|
||||
system "echo 'export FONTCONFIG_PATH=#{CREW_PREFIX}/etc/fonts' >> ~/.bashrc"
|
||||
puts 'To complete the installation, execute the following:'.orange
|
||||
puts 'source ~/.bashrc'.orange
|
||||
end
|
||||
# The following postinstall fails if graphite isn't installed when fontconfig
|
||||
# is being installed.
|
||||
system "env FONTCONFIG_PATH=#{CREW_PREFIX}/etc/fonts fc-cache -fv || true"
|
||||
|
||||
Reference in New Issue
Block a user