diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-04-12 03:41:30 +0100 |
commit | 623ee73d661e5ed8475cb264511f683407d87365 (patch) | |
tree | 993eb27c93ec7a2d2d19550300d888fc1fed9e69 /gnome-extra/gnome-tweaks | |
parent | ceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (diff) |
gentoo Easter resync : 12.04.2020
Diffstat (limited to 'gnome-extra/gnome-tweaks')
-rw-r--r-- | gnome-extra/gnome-tweaks/Manifest | 3 | ||||
-rw-r--r-- | gnome-extra/gnome-tweaks/files/3.34.0-fix-python.patch | 85 | ||||
-rw-r--r-- | gnome-extra/gnome-tweaks/gnome-tweaks-3.34.0.ebuild | 51 |
3 files changed, 139 insertions, 0 deletions
diff --git a/gnome-extra/gnome-tweaks/Manifest b/gnome-extra/gnome-tweaks/Manifest index 5a200f14b741..48a48f8660c6 100644 --- a/gnome-extra/gnome-tweaks/Manifest +++ b/gnome-extra/gnome-tweaks/Manifest @@ -1,4 +1,7 @@ AUX 3.28.1-gentoo-cursor-themes.patch 1019 BLAKE2B 1dc92c4f8e53c1303f884f6acc332a7a0f1bd11b463e91ddd4ae731938e678f75499692044b5c13021f24dd9bf61264c4454fab734fe65609b3b4c009cb2eee2 SHA512 e502e1ae5945517e7a69cd15436bc07e34fe0db739350e0617d02c9b7a45264f585229f80352a93595e1246d5f9c6e987242772dfb7293de06b400fbaf676971 +AUX 3.34.0-fix-python.patch 2967 BLAKE2B a1a2859dcd5ecd1028b1b08d266960bb0366d0a940c81a2e9e338af02b72a01939a835dca37ab05b8a5b0ca8e118e2e0b5178479aa90b61a59b3f426f83e95be SHA512 097abd98bd2124c5e2536ed7bc8f337f836da4a4dda4e2566d533c16e771d91690f43f47e7d61a9a238e2c9cf6e687a057b6857265ef3892eacfa7f2079a00b0 DIST gnome-tweaks-3.32.0.tar.xz 241492 BLAKE2B f3c0a25b39726600fc5d53d8d3c343dbcde594642a87fc56dd3fff9b88a3498e0f283568a944fc37445c138201db1f280222eb1161f5b8351c566537404cde5e SHA512 8107e9d2b33ac6c46e8d0076b27a1c3a84e1721e49a6b80da28fe854f6f4f6693bc7f7e836c54d39bafec79dcee8a6e2b2962580a77d7d01bfc06c6d11206d8f +DIST gnome-tweaks-3.34.0.tar.xz 246592 BLAKE2B 8701b03f64bf6b779f6f96de25684602447b4da8f2714cb38f866e5016532aad3283f3dc217b29161534958c03e72aed33c0803e60681a3616818d037c23e5e8 SHA512 1d2b21a31550d4b48afd02a9fcfb9844eacac7aa726ef624abcb40225af31da29b34e9032b3bb2943e5cb5f7553a6f931467d04bfbc2b026732e6bdcb86eb840 EBUILD gnome-tweaks-3.32.0-r1.ebuild 1233 BLAKE2B 9241987e7079112f706e7de2153153502efa9ec9a187666e2792d797932c03744e1032be24679407fa99ee499b2da205c35335ff3b98a166c2fcebaff1d16967 SHA512 773dcef7bd2f9747dfecdad0d405331a394eb3dfe2a715d14ca828cee634c8e3f92fe76a768f3d1ed368ac8cc771c08a7600ef43fd746ea7ba1eb8592cbf9fc2 +EBUILD gnome-tweaks-3.34.0.ebuild 1277 BLAKE2B b9e1a689c5c3ae687454990d2750187ddc37f7516b9f10e423c7b795ee6a67aee89d8443ca854cfceed2a4a260b3511412dc8570d5ad972e511d5a02f968c7c3 SHA512 a1af14cfa406fdd41e68ffddf415500429bacf0c678a7736960e6bfe3e0d23ba2d3457e98d8efc87a223a4a916ec63ce2183afbc9c9ca2c770eb4d45141e2b00 MISC metadata.xml 556 BLAKE2B 0964398067f54577410c361418ce6f70d1afc4e1f064e3f67a1b3b6a7d37489124b7405f75c1bda57f0f25f74bc0b6ae144a4d5e04fd29bf1d180b5b4245a1a6 SHA512 1e6abce7e7e566d0c382956311c35ce9d70d044c8ee672103dc443eddcd7492e7bb4940b889213dfd7b49accce41269d820bb0b39d32e81857e3c6775609f67d diff --git a/gnome-extra/gnome-tweaks/files/3.34.0-fix-python.patch b/gnome-extra/gnome-tweaks/files/3.34.0-fix-python.patch new file mode 100644 index 000000000000..2501bc7c4d12 --- /dev/null +++ b/gnome-extra/gnome-tweaks/files/3.34.0-fix-python.patch @@ -0,0 +1,85 @@ +From 0ec042734f63a3a870920b1e71f07851d335ea45 Mon Sep 17 00:00:00 2001 +From: Mart Raudsepp <leio@gentoo.org> +Date: Sun, 29 Mar 2020 16:05:36 +0300 +Subject: [PATCH] build: Fix python files installation handling + +The deprecated meson python3 module tends to end up installing only +to a python version that meson is installed for too, possibly +breaking some expectations downstream that want it installed to +a specific python3 version, that might not match what the build +machine uses for meson. +Fix it by using the non-deprecated python module and methods from it. + +The python module exists since 0.46, which should be safe to require +by now. There were meson 0.50 features used already, but unnecessarily, +as the configure_file install parameter was added then, but all versions +default to `true` anyhow. However in practice this only emitted a +warning with newer meson versions and was able to build fine with older +versions too. However fix it too, so that we are now warning-free for +meson features after raising of the meson version dep. +--- + gtweak/meson.build | 5 ++--- + meson.build | 12 ++++++++---- + 2 files changed, 10 insertions(+), 7 deletions(-) + +diff --git a/gtweak/meson.build b/gtweak/meson.build +index 3d9a743..4e558b4 100644 +--- a/gtweak/meson.build ++++ b/gtweak/meson.build +@@ -11,7 +11,6 @@ configure_file( + input: 'defs.py.in', + output: 'defs.py', + configuration: defs_conf, +- install: true, + install_dir: gtweakdir + ) + +@@ -46,5 +45,5 @@ tweak_sources = [ + 'tweaks/tweak_wacom.py', + ] + +-install_data(shell_sources, install_dir: gtweakdir) +-install_data(tweak_sources, install_dir: gtweakdir + '/tweaks') ++python3.install_sources(shell_sources, subdir: 'gtweak') ++python3.install_sources(tweak_sources, subdir: join_paths('gtweak', 'tweaks')) +diff --git a/meson.build b/meson.build +index b7da518..df49ae3 100644 +--- a/meson.build ++++ b/meson.build +@@ -1,11 +1,16 @@ + project('gnome-tweaks', + version: '3.34.0', +- meson_version: '>= 0.40.0' ++ meson_version: '>= 0.46.0' + ) + + gnome = import('gnome') + i18n = import('i18n') +-python3 = import('python3') ++pymod = import('python') ++python3 = pymod.find_installation('python3') ++ ++if not python3.found() ++ error('No valid python3 installation found') ++endif + + prefix = get_option('prefix') + +@@ -13,13 +18,12 @@ bindir = join_paths(prefix, get_option('bindir')) + datadir = join_paths(prefix, get_option('datadir')) + libexecdir = join_paths(prefix, get_option('libexecdir')) + localedir = join_paths(prefix, get_option('localedir')) +-pythondir = join_paths(prefix, python3.sysconfig_path('purelib')) + + pkgdatadir = join_paths(datadir, meson.project_name()) + + appdatadir = join_paths(datadir, 'metainfo') + desktopdir = join_paths(datadir, 'applications') +-gtweakdir = join_paths(pythondir, 'gtweak') ++gtweakdir = python3.get_install_dir(subdir: 'gtweak') + icondir = join_paths(datadir, 'icons', 'hicolor') + schemadir = join_paths(datadir, 'glib-2.0', 'schemas') + +-- +2.20.1 + diff --git a/gnome-extra/gnome-tweaks/gnome-tweaks-3.34.0.ebuild b/gnome-extra/gnome-tweaks/gnome-tweaks-3.34.0.ebuild new file mode 100644 index 000000000000..7a5ad14a25b8 --- /dev/null +++ b/gnome-extra/gnome-tweaks/gnome-tweaks-3.34.0.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8} ) + +inherit gnome.org meson python-single-r1 xdg + +DESCRIPTION="Customize advanced GNOME 3 options" +HOMEPAGE="https://wiki.gnome.org/Apps/Tweaks" + +LICENSE="GPL-3+ CC0-1.0" +SLOT="0" + +IUSE="" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +KEYWORDS="~amd64 ~arm64 ~ia64 ~ppc ~ppc64 ~x86" + +DEPEND="${PYTHON_DEPS}" +# See README.md for list of deps +RDEPEND="${DEPEND} + $(python_gen_cond_dep ' + >=dev-python/pygobject-3.10.2:3[${PYTHON_MULTI_USEDEP}] + ') + >=gnome-base/gnome-settings-daemon-3 + x11-themes/sound-theme-freedesktop + + >=dev-libs/glib-2.58:2 + >=x11-libs/gtk+-3.12:3[introspection] + >=gnome-base/gnome-desktop-3.30:3[introspection] + gui-libs/libhandy:0.0[introspection] + net-libs/libsoup:2.4[introspection] + x11-libs/libnotify[introspection] + + >=gnome-base/gsettings-desktop-schemas-3.33.0 + >=gnome-base/gnome-shell-3.24 + x11-wm/mutter +" +BDEPEND=">=sys-devel/gettext-0.19.8" + +PATCHES=( + "${FILESDIR}"/3.28.1-gentoo-cursor-themes.patch # Add contents of Gentoo's cursor theme directory to cursor theme list + "${FILESDIR}"/${PV}-fix-python.patch +) + +src_install() { + meson_src_install + python_optimize + python_fix_shebang "${ED}"/usr/bin/ +} |