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
71024d9b
Commit
71024d9b
authored
Jan 26, 2021
by
satmandu
Committed by
GitHub
Jan 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdk_pixbuf to 2.24.2 (#5008)
parent
c6f40214
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
36 deletions
+32
-36
packages/gdk_pixbuf.rb
packages/gdk_pixbuf.rb
+32
-36
No files found.
packages/gdk_pixbuf.rb
View file @
71024d9b
...
...
@@ -3,55 +3,49 @@ 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.4
0.0-1
'
version
'2.4
2.2
'
compatibility
'all'
source_url
'https://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.4
0/gdk-pixbuf-2.40.0
.tar.xz'
source_sha256
'
1582595099537ca8ff3b99c6804350b4c058bb8ad67411bbaae024ee7cead4e6
'
source_url
'https://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/2.4
2/gdk-pixbuf-2.42.2
.tar.xz'
source_sha256
'
83c66a1cfd591d7680c144d2922c5955d38b4db336d7cd3ee109f7bcf9afef15
'
binary_url
({
aarch64:
'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.40.0-1
-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.40.0-1-chromeos-i686
.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.42.2
-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.42.2-chromeos-i686
.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/gdk_pixbuf-2.42.2-chromeos-x86_64
.tar.xz'
,
})
binary_sha256
({
aarch64:
'1ee4c25a59579f11c12b3ef0f2b466710268164e4810c879861aa65a4185edfb
'
,
armv7l:
'1ee4c25a59579f11c12b3ef0f2b466710268164e4810c879861aa65a4185edfb
'
,
x86_64:
'b8ab8af77ef2b41003487ea06f17ffa8e3828af62b646aa634b8a092160df1ea
'
,
i686:
'e041085afe17c2a853ef5057e44c05e3e3b0e4b943557f1d60e59b574ee52bf3
'
,
aarch64:
'3db50fb39c83c5b61f4e27efbfedeaa0ea2706f7ef1f059e32d0f06ab712c93f
'
,
armv7l:
'3db50fb39c83c5b61f4e27efbfedeaa0ea2706f7ef1f059e32d0f06ab712c93f
'
,
i686:
'487395d7623101d17960ba51739e535a82f7362388c49bacc87449a56d7c3fe2
'
,
x86_64:
'39f8ce2eb21d95bad9c5dbc68424374d94013d60681e03d4943d86d27c713e02
'
,
})
depends_on
'meson'
=>
:build
depends_on
'pango'
depends_on
'gobject_introspection'
depends_on
'jasper'
depends_on
'libtiff'
depends_on
'libjpeg_turbo'
depends_on
'libwebp'
depends_on
'six'
def
self
.
build
Dir
.
mkdir
'build'
Dir
.
chdir
'build'
do
system
'meson'
,
"--prefix=
#{
CREW_PREFIX
}
"
,
"--libdir=
#{
CREW_LIB_PREFIX
}
"
,
"--mandir=
#{
CREW_PREFIX
}
/share/man"
,
'-Dinstalled_tests=false'
,
'-Dbuildtype=release'
,
'-Drelocatable=true'
,
'-Djasper=true'
,
'-Ddebug=false'
,
'-Dman=false'
system
'ninja'
end
system
"meson
#{
CREW_MESON_LTO_OPTIONS
}
\
-Dinstalled_tests=false \
-Dbuiltin_loaders=all \
-Drelocatable=true \
-Djasper=true \
-Ddebug=false \
-Dman=false \
builddir"
system
"meson configure builddir"
system
"ninja -C builddir"
end
def
self
.
install
Dir
.
chdir
'build'
do
system
"DESTDIR=
#{
CREW_DEST_DIR
}
ninja install"
end
system
"DESTDIR=
#{
CREW_DEST_DIR
}
ninja -C builddir install"
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"
end
...
...
@@ -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_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
gdk_pixbuf_in_bashrc
=
`grep -c "GDK_PIXBUF_MODULEDIR" ~/.bashrc || true`
unless
gdk_pixbuf_in_bashrc
.
to_i
>
0
puts
"Putting GDK_PIXBUF code in ~/.bashrc"
.
lightblue
system
"echo 'export GDK_PIXBUF_MODULEDIR=
#{
CREW_LIB_PREFIX
}
/gdk-pixbuf-2.0/2.10.0/loaders' >> ~/.bashrc"
system
"echo 'export GDK_PIXBUF_MODULE_FILE=
#{
CREW_LIB_PREFIX
}
/gdk-pixbuf-2.0/2.10.0/loaders.cache' >> ~/.bashrc"
puts
"To complete the installation, execute the following:"
.
orange
puts
"source ~/.bashrc"
.
orange
end
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