Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
94af6f11
Commit
94af6f11
authored
Dec 02, 2019
by
Ed Reel
Committed by
Chris Thurber
Dec 02, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update gdk_pixbuf from 2.36.7-1 to 2.40.0 (#3674)
Update postinstall message Add pre-built binaries
parent
9f897652
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
19 deletions
+43
-19
packages/gdk_pixbuf.rb
packages/gdk_pixbuf.rb
+43
-19
No files found.
packages/gdk_pixbuf.rb
View file @
94af6f11
...
...
@@ -3,43 +3,67 @@ require 'package'
class
Gdk_pixbuf
<
Package
description
'GdkPixbuf is a library for image loading and manipulation.'
homepage
'https://developer.gnome.org/gdk-pixbuf'
version
'2.
36.7-1
'
source_url
'https://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.
36/gdk-pixbuf-2.36.7
.tar.xz'
source_sha256
'1
b6e5eef09d98f05f383014ecd3503e25dfb03d7e5b5f5904e5a65b049a6a4d8
'
version
'2.
40.0
'
source_url
'https://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.
40/gdk-pixbuf-2.40.0
.tar.xz'
source_sha256
'1
582595099537ca8ff3b99c6804350b4c058bb8ad67411bbaae024ee7cead4e6
'
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.36.7-1-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.36.7-1-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.36.7-1-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.36.7-1-chromeos-x86_64.tar.xz'
,
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.40.0-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.40.0-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.40.0-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.40.0-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'3baf4efbf49e731ae15e0f3650dccbf47e1128fc735b3f1dc0b82f49faaac926'
,
armv7l:
'3baf4efbf49e731ae15e0f3650dccbf47e1128fc735b3f1dc0b82f49faaac926'
,
i686:
'b70469069a781d819aedb94f5c6e1a829815b76aef27926129d43bf20fe97042'
,
x86_64:
'044b281179d0d781757bd131fc181169e74bf3018f4de51fa8550449ea96f19e'
,
aarch64:
'27c5d0f1f700078e2e1ec3497332468b433d654921c429f1babafcdd5dce8dd4'
,
armv7l:
'27c5d0f1f700078e2e1ec3497332468b433d654921c429f1babafcdd5dce8dd4'
,
i686:
'0fe14285a8dba7328f45d719a7f4b57112a561a4daffca3631d7b49fcba0efc3'
,
x86_64:
'04f4f25490ad360d585b34ca81b47ebc25d1f072a4062199d5ba090d13e89bb4'
,
})
depends_on
'meson'
=>
:build
depends_on
'pango'
depends_on
'gobject_introspection'
depends_on
'jasper'
depends_on
'libtiff'
depends_on
'libjpeg'
depends_on
'six'
depends_on
'sommelier'
def
self
.
build
system
"./configure --prefix=
#{
CREW_PREFIX
}
--libdir=
#{
CREW_LIB_PREFIX
}
--with-x11"
system
"make"
Dir
.
mkdir
'build'
Dir
.
chdir
'build'
do
system
'meson'
,
"--prefix=
#{
CREW_DEST_PREFIX
}
"
,
"--libdir=
#{
CREW_DEST_LIB_PREFIX
}
"
,
"--mandir=
#{
CREW_DEST_PREFIX
}
/share/man"
,
'-Dinstalled_tests=false'
,
'-Dbuildtype=release'
,
'-Drelocatable=true'
,
'-Djasper=true'
,
'-Ddebug=false'
,
'-Dman=false'
system
'ninja'
end
end
def
self
.
install
system
"make"
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
"install"
system
"mkdir -p
#{
CREW_DEST_LIB_PREFIX
}
/gdk-pixbuf-2.0/2.10.0"
system
"touch
#{
CREW_DEST_LIB_PREFIX
}
/gdk-pixbuf-2.0/2.10.0/loaders.cache"
Dir
.
chdir
'build'
do
system
'ninja install'
end
loader_dir
=
"
#{
CREW_DEST_LIB_PREFIX
}
/gdk-pixbuf-2.0/2.10.0/loaders"
FileUtils
.
mkdir_p
"
#{
loader_dir
}
"
system
"touch
#{
loader_dir
}
.cache"
end
def
self
.
postinstall
system
"gdk-pixbuf-query-loaders --update-cache"
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'
system
'gdk-pixbuf-query-loaders --update-cache'
puts
puts
"To complete the installation, execute the following:"
.
lightblue
puts
"echo 'export GDK_PIXBUF_MODULEDIR="
.
lightblue
+
ENV
[
'GDK_PIXBUF_MODULEDIR'
].
lightblue
+
"' >> ~/.bashrc"
.
lightblue
puts
"echo 'export GDK_PIXBUF_MODULE_FILE="
.
lightblue
+
ENV
[
'GDK_PIXBUF_MODULE_FILE'
].
lightblue
+
"' >> ~/.bashrc"
.
lightblue
puts
"source ~/.bashrc"
.
lightblue
puts
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment