cinnamon-desktop: update to 4.0.1.

This commit is contained in:
maxice8 2018-12-09 09:45:45 -02:00 committed by maxice8
parent 4b32f03e92
commit 2c6049acbc
2 changed files with 6 additions and 114 deletions

View file

@ -1,104 +0,0 @@
--- libcinnamon-desktop/meson.build
+++ libcinnamon-desktop/meson.build
@@ -81,31 +81,35 @@ if pnp_ids_install_internal
)
endif
-cdesktop_gir = gnome.generate_gir(libcinnamon_desktop,
- sources: 'cdesktop-enums.h',
- namespace: 'CDesktopEnums',
- nsversion: '3.0',
- identifier_prefix: 'CDesktop',
- symbol_prefix: 'c_desktop',
- extra_args: [
- '-DGNOME_DESKTOP_USE_UNSTABLE_API',
- ],
- install: true,
-)
+with_introspection = get_option('introspection')
-gnome.generate_gir(libcinnamon_desktop,
- sources: libcinnamon_desktop_gir_sources + libcinnamon_desktop_headers,
- namespace: 'CinnamonDesktop',
- nsversion: '3.0',
- export_packages: 'cinnamon-desktop',
- identifier_prefix: 'Gnome',
- symbol_prefix: 'gnome_',
- includes: ['GObject-2.0', 'Gtk-3.0', cdesktop_gir[0], ],
- extra_args: [
- '-DGNOME_DESKTOP_USE_UNSTABLE_API',
- ],
- install: true,
-)
+if with_introspection
+ cdesktop_gir = gnome.generate_gir(libcinnamon_desktop,
+ sources: 'cdesktop-enums.h',
+ namespace: 'CDesktopEnums',
+ nsversion: '3.0',
+ identifier_prefix: 'CDesktop',
+ symbol_prefix: 'c_desktop',
+ extra_args: [
+ '-DGNOME_DESKTOP_USE_UNSTABLE_API',
+ ],
+ install: true,
+ )
+
+ gnome.generate_gir(libcinnamon_desktop,
+ sources: libcinnamon_desktop_gir_sources + libcinnamon_desktop_headers,
+ namespace: 'CinnamonDesktop',
+ nsversion: '3.0',
+ export_packages: 'cinnamon-desktop',
+ identifier_prefix: 'Gnome',
+ symbol_prefix: 'gnome_',
+ includes: ['GObject-2.0', 'Gtk-3.0', cdesktop_gir[0], ],
+ extra_args: [
+ '-DGNOME_DESKTOP_USE_UNSTABLE_API',
+ ],
+ install: true,
+ )
+endif
# FIXME
# https://github.com/mesonbuild/meson/issues/1687
--- libcvc/meson.build
+++ libcvc/meson.build
@@ -44,18 +44,20 @@ libcvc = shared_library('cvc',
version: '0.0.0',
)
-gnome.generate_gir(libcvc,
- sources: libcvc_gir_sources + libcvc_headers,
- namespace: 'Cvc',
- nsversion: '1.0',
- identifier_prefix: 'Gvc',
- symbol_prefix: 'gvc_',
- includes: [
- 'GObject-2.0',
- 'Gio-2.0',
- ],
- install: true,
-)
+if get_option('introspection')
+ gnome.generate_gir(libcvc,
+ sources: libcvc_gir_sources + libcvc_headers,
+ namespace: 'Cvc',
+ nsversion: '1.0',
+ identifier_prefix: 'Gvc',
+ symbol_prefix: 'gvc_',
+ includes: [
+ 'GObject-2.0',
+ 'Gio-2.0',
+ ],
+ install: true,
+ )
+endif
install_headers(
--- meson_options.txt
+++ meson_options.txt
@@ -1,3 +1,4 @@
option('deprecation-flags', type: 'boolean', value: true)
option('pnp-ids-path', type: 'string', value: '')
option('use-alsa', type: 'boolean', value: false)
+option('introspection', type: 'boolean', value: true)

View file

@ -1,29 +1,25 @@
# Template file for 'cinnamon-desktop'
pkgname=cinnamon-desktop
version=3.8.1
version=4.0.1
revision=1
build_style=meson
configure_args="-Dintrospection=$(vopt_if gir true false)"
hostmakedepends="glib-devel $(vopt_if gir gobject-introspection) intltool pkg-config"
configure_args="-Dintrospection=true"
hostmakedepends="glib-devel gobject-introspection intltool pkg-config"
makedepends="accountsservice-devel gtk+3-devel libxkbfile-devel pam-devel
pulseaudio-devel"
depends="xkeyboard-config"
short_desc="Library with common API for various Cinnamon modules"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later, LGPL-2.0-or-later"
homepage="http://developer.linuxmint.com/projects/cinnamon-projects.html"
homepage="https://developer.linuxmint.com/projects/cinnamon-projects.html"
distfiles="https://github.com/linuxmint/${pkgname}/archive/${version}.tar.gz"
checksum=239c8a210de18468919d9cbc379535e55628559e396cb321100ccab4ee0d04d0
checksum=72d4a8c78e42cf9d000f553551f3f3645df77c3c23973c989d7d269acd659100
nocross="Cinnamon project as a whole hard-depends on gir"
case "$XBPS_TARGET_MACHINE" in
aarch64-musl) broken="Expat.c: loadable library and perl binaries are mismatched (got handshake key 0xce00080, needed 0xc800080)" ;;
esac
build_options="gir"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
cinnamon-desktop-devel_package() {
depends="gtk+3-devel libxkbfile-devel ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"