Commit 71024d9b authored by satmandu's avatar satmandu Committed by GitHub

gdk_pixbuf to 2.24.2 (#5008)

parent c6f40214
...@@ -3,55 +3,49 @@ require 'package' ...@@ -3,55 +3,49 @@ require 'package'
class Gdk_pixbuf < Package class Gdk_pixbuf < Package
description 'GdkPixbuf is a library for image loading and manipulation.' description 'GdkPixbuf is a library for image loading and manipulation.'
homepage 'https://developer.gnome.org/gdk-pixbuf' homepage 'https://developer.gnome.org/gdk-pixbuf'
version '2.40.0-1' version '2.42.2'
compatibility 'all' compatibility 'all'
source_url 'https://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.40/gdk-pixbuf-2.40.0.tar.xz' source_url 'https://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.42/gdk-pixbuf-2.42.2.tar.xz'
source_sha256 '1582595099537ca8ff3b99c6804350b4c058bb8ad67411bbaae024ee7cead4e6' source_sha256 '83c66a1cfd591d7680c144d2922c5955d38b4db336d7cd3ee109f7bcf9afef15'
binary_url ({ binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.40.0-1-chromeos-armv7l.tar.xz', aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.42.2-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.40.0-1-chromeos-armv7l.tar.xz', armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.42.2-chromeos-armv7l.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.40.0-1-chromeos-x86_64.tar.xz', i686: 'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.42.2-chromeos-i686.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.40.0-1-chromeos-i686.tar.xz', x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.42.2-chromeos-x86_64.tar.xz',
}) })
binary_sha256 ({ binary_sha256 ({
aarch64: '1ee4c25a59579f11c12b3ef0f2b466710268164e4810c879861aa65a4185edfb', aarch64: '3db50fb39c83c5b61f4e27efbfedeaa0ea2706f7ef1f059e32d0f06ab712c93f',
armv7l: '1ee4c25a59579f11c12b3ef0f2b466710268164e4810c879861aa65a4185edfb', armv7l: '3db50fb39c83c5b61f4e27efbfedeaa0ea2706f7ef1f059e32d0f06ab712c93f',
x86_64: 'b8ab8af77ef2b41003487ea06f17ffa8e3828af62b646aa634b8a092160df1ea', i686: '487395d7623101d17960ba51739e535a82f7362388c49bacc87449a56d7c3fe2',
i686: 'e041085afe17c2a853ef5057e44c05e3e3b0e4b943557f1d60e59b574ee52bf3', x86_64: '39f8ce2eb21d95bad9c5dbc68424374d94013d60681e03d4943d86d27c713e02',
}) })
depends_on 'meson' => :build
depends_on 'pango' depends_on 'pango'
depends_on 'gobject_introspection' depends_on 'gobject_introspection'
depends_on 'jasper' depends_on 'jasper'
depends_on 'libtiff' depends_on 'libtiff'
depends_on 'libjpeg_turbo' depends_on 'libjpeg_turbo'
depends_on 'libwebp'
depends_on 'six' depends_on 'six'
def self.build def self.build
Dir.mkdir 'build' system "meson #{CREW_MESON_LTO_OPTIONS} \
Dir.chdir 'build' do -Dinstalled_tests=false \
system 'meson', -Dbuiltin_loaders=all \
"--prefix=#{CREW_PREFIX}", -Drelocatable=true \
"--libdir=#{CREW_LIB_PREFIX}", -Djasper=true \
"--mandir=#{CREW_PREFIX}/share/man", -Ddebug=false \
'-Dinstalled_tests=false', -Dman=false \
'-Dbuildtype=release', builddir"
'-Drelocatable=true', system "meson configure builddir"
'-Djasper=true', system "ninja -C builddir"
'-Ddebug=false',
'-Dman=false'
system 'ninja'
end
end end
def self.install def self.install
Dir.chdir 'build' do system "DESTDIR=#{CREW_DEST_DIR} ninja -C builddir install"
system "DESTDIR=#{CREW_DEST_DIR} ninja install"
end
loader_dir = "#{CREW_DEST_LIB_PREFIX}/gdk-pixbuf-2.0/2.10.0/loaders" loader_dir = "#{CREW_DEST_LIB_PREFIX}/gdk-pixbuf-2.0/2.10.0/loaders"
FileUtils.mkdir_p "#{loader_dir}" FileUtils.mkdir_p loader_dir
system "touch #{loader_dir}.cache" system "touch #{loader_dir}.cache"
end end
...@@ -59,11 +53,13 @@ class Gdk_pixbuf < Package ...@@ -59,11 +53,13 @@ class Gdk_pixbuf < Package
ENV['GDK_PIXBUF_MODULEDIR'] = "#{CREW_LIB_PREFIX}/gdk-pixbuf-2.0/2.10.0/loaders" ENV['GDK_PIXBUF_MODULEDIR'] = "#{CREW_LIB_PREFIX}/gdk-pixbuf-2.0/2.10.0/loaders"
ENV['GDK_PIXBUF_MODULE_FILE'] = ENV['GDK_PIXBUF_MODULEDIR'] + '.cache' ENV['GDK_PIXBUF_MODULE_FILE'] = ENV['GDK_PIXBUF_MODULEDIR'] + '.cache'
system 'gdk-pixbuf-query-loaders --update-cache' system 'gdk-pixbuf-query-loaders --update-cache'
puts gdk_pixbuf_in_bashrc = `grep -c "GDK_PIXBUF_MODULEDIR" ~/.bashrc || true`
puts "To complete the installation, execute the following:".lightblue unless gdk_pixbuf_in_bashrc.to_i > 0
puts "echo 'export GDK_PIXBUF_MODULEDIR=".lightblue + ENV['GDK_PIXBUF_MODULEDIR'].lightblue + "' >> ~/.bashrc".lightblue puts "Putting GDK_PIXBUF code in ~/.bashrc".lightblue
puts "echo 'export GDK_PIXBUF_MODULE_FILE=".lightblue + ENV['GDK_PIXBUF_MODULE_FILE'].lightblue + "' >> ~/.bashrc".lightblue system "echo 'export GDK_PIXBUF_MODULEDIR=#{CREW_LIB_PREFIX}/gdk-pixbuf-2.0/2.10.0/loaders' >> ~/.bashrc"
puts "source ~/.bashrc".lightblue system "echo 'export GDK_PIXBUF_MODULE_FILE=#{CREW_LIB_PREFIX}/gdk-pixbuf-2.0/2.10.0/loaders.cache' >> ~/.bashrc"
puts puts "To complete the installation, execute the following:".orange
puts "source ~/.bashrc".orange
end
end end
end 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