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
5750f70f
Commit
5750f70f
authored
Mar 15, 2021
by
satmandu
Committed by
GitHub
Mar 15, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update gtk4.rb
parent
b4546aea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
26 deletions
+21
-26
packages/gtk4.rb
packages/gtk4.rb
+21
-26
No files found.
packages/gtk4.rb
View file @
5750f70f
...
@@ -24,22 +24,22 @@ class Gtk4 < Package
...
@@ -24,22 +24,22 @@ class Gtk4 < Package
x86_64:
'3d715f42be186839b936929deaec180a3bf13f3fb2f7e89dc21421d6b19988fa'
x86_64:
'3d715f42be186839b936929deaec180a3bf13f3fb2f7e89dc21421d6b19988fa'
})
})
depends_on
'cups'
depends_on
'at_spi2_atk'
depends_on
'at_spi2_atk'
depends_on
'cantarell_fonts'
depends_on
'cantarell_fonts'
depends_on
'cups'
depends_on
'gdk_pixbuf'
depends_on
'gnome_icon_theme'
depends_on
'gnome_icon_theme'
depends_on
'gobject_introspection'
depends_on
'gobject_introspection'
depends_on
'gdk_pixbuf'
depends_on
'graphene'
depends_on
'graphene'
depends_on
'hicolor_icon_theme'
depends_on
'hicolor_icon_theme'
depends_on
'iso_codes'
depends_on
'iso_codes'
depends_on
'json_glib'
depends_on
'json_glib'
depends_on
'libepoxy'
depends_on
'libepoxy'
depends_on
'libxkbcommon'
depends_on
'libxkbcommon'
depends_on
'pygments'
=>
:build
depends_on
'shared_mime_info'
depends_on
'shared_mime_info'
depends_on
'six'
=>
:build
depends_on
'six'
=>
:build
depends_on
'xdg_base'
depends_on
'xdg_base'
depends_on
'pygments'
=>
:build
def
self
.
patch
def
self
.
patch
case
ARCH
case
ARCH
...
@@ -51,22 +51,30 @@ class Gtk4 < Package
...
@@ -51,22 +51,30 @@ class Gtk4 < Package
def
self
.
build
def
self
.
build
system
"meson
#{
CREW_MESON_LTO_OPTIONS
}
\
system
"meson
#{
CREW_MESON_LTO_OPTIONS
}
\
-Dbroadway-backend=true \
-Dbroadway-backend=true \
-Ddemos=false
\
-Dbuild-examples=false
\
-Dbuild-example
s=false \
-Dbuild-test
s=false \
-Dbuild-tests=false
\
-Ddemos=false
\
-Dgraphene:default_library=both \
-Dgraphene:default_library=both \
-Dlibsass:default_library=both \
-Dlibsass:default_library=both \
-Dmutest:default_library=both \
-Dmutest:default_library=both \
-Dsassc:default_library=both \
-Dsassc:default_library=both \
-Dsassc=enabled \
-Dsassc=enabled \
build"
build"
system
'meson configure build'
system
'meson configure build'
system
'ninja -C build'
system
'ninja -C build'
end
end
def
self
.
install
def
self
.
install
system
"DESTDIR=
#{
CREW_DEST_DIR
}
ninja -C build install"
system
"DESTDIR=
#{
CREW_DEST_DIR
}
ninja -C build install"
@gtk4settings
=
<<~
GTK4_CONFIG_HEREDOC
[Settings]
gtk-icon-theme-name = Adwaita
gtk-theme-name = Adwaita
gtk-font-name = Cantarell 11
GTK4_CONFIG_HEREDOC
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/etc/gtk-4.0"
File
.
write
(
"
#{
CREW_DEST_PREFIX
}
/etc/gtk-4.0/settings.ini"
,
@gtk4settings
)
end
end
def
self
.
postinstall
def
self
.
postinstall
...
@@ -74,18 +82,5 @@ class Gtk4 < Package
...
@@ -74,18 +82,5 @@ class Gtk4 < Package
system
"glib-compile-schemas
#{
CREW_PREFIX
}
/share/glib-2.0/schemas"
system
"glib-compile-schemas
#{
CREW_PREFIX
}
/share/glib-2.0/schemas"
# update mime database
# update mime database
system
"update-mime-database
#{
CREW_PREFIX
}
/share/mime"
system
"update-mime-database
#{
CREW_PREFIX
}
/share/mime"
@xdg_config_home
=
ENV
[
'XDG_CONFIG_HOME'
]
@gtk4settings
=
<<~
GTK4_CONFIG_HEREDOC
[Settings]
gtk-icon-theme-name = Adwaita
gtk-theme-name = Adwaita
gtk-font-name = Cantarell 11
GTK4_CONFIG_HEREDOC
unless
File
.
exist?
(
"
#{
@xdg_config_home
}
/gtk-4.0/settings.ini"
)
puts
puts
'Adding basic gtk4 settings to XDG_CONFIG_HOME/gtk-4.0/settings.ini'
.
lightblue
FileUtils
.
mkdir_p
"
#{
@xdg_config_home
}
/gtk-4.0"
File
.
write
(
"
#{
@xdg_config_home
}
/gtk-4.0/settings.ini"
,
@gtk4settings
)
end
end
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