From b7ebc951da8800f711142f69d9d958bde67a112d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 28 Apr 2019 09:54:45 +0100 Subject: gentoo resync : 28.04.2019 --- sys-apps/gnome-disk-utility/Manifest | 2 + .../gnome-disk-utility/files/elogind-support.patch | 114 +++++++++++++++++++++ .../gnome-disk-utility-3.30.2-r1.ebuild | 67 ++++++++++++ 3 files changed, 183 insertions(+) create mode 100644 sys-apps/gnome-disk-utility/files/elogind-support.patch create mode 100644 sys-apps/gnome-disk-utility/gnome-disk-utility-3.30.2-r1.ebuild (limited to 'sys-apps/gnome-disk-utility') diff --git a/sys-apps/gnome-disk-utility/Manifest b/sys-apps/gnome-disk-utility/Manifest index 5784a16b9ceb..ba66963d41ce 100644 --- a/sys-apps/gnome-disk-utility/Manifest +++ b/sys-apps/gnome-disk-utility/Manifest @@ -1,5 +1,7 @@ +AUX elogind-support.patch 4363 BLAKE2B 060db5cb921d8b51d7eb3acd76186649b3d3887ebd72aaca79dfcdc44a602591d3d9ee11047af1655678e6a9f5c2fd445e67cb66b65cc1ac0a244db22b8f9c1d SHA512 1f7ec2af9e2764f338d5d903ce506a8416d21cf03be6c2dc927d3fde67420c5a9066244db0e3837468fa2bea0527643bfb55dc6db8524e8122467d13e19db418 DIST gnome-disk-utility-3.24.1.tar.xz 1947976 BLAKE2B a3b9d02417bed415bf6b9b8d86abcfa857abe316133ce7abfa11db835831e916d879b09d1e1129d12621b0234ffa27c1e246837cb614c51c54ce387a9c73bea4 SHA512 ae6bf83e005733ae985987411a9fe25b0059f64484fc0d613ad54af478130782974607bec53713ee36c2a28de653ceba82b0fb091aee57101773c0eeeaaed2d5 DIST gnome-disk-utility-3.30.2.tar.xz 1665896 BLAKE2B 9000dc8e95f27cccdb3a13b84c527c740f801a58b0f3f1a384ae1415eeed330f5f81f284f190d110dca0f5dcfb9316262491b715c2b2cd4f67813587046b5b42 SHA512 59228fa923b7b1e89e8ce8d96920b6f452bc6ae62c203261bffbc584a2ef231e1d2006db8ddbd15f1f7b4ee14aeae54b85520b89bfd3e1450d42c423d987f2dc EBUILD gnome-disk-utility-3.24.1.ebuild 1048 BLAKE2B 9efcbf2160fc20cf85e6d720966d67f158ebc7575dbcb1f994993a6f3f21328482cf4500e2ab911dd576a2fb81e9c61c934c39c023e206b8d38b963ec6c15daf SHA512 ced1da29f927fd86b9be3472ee52cacfec069119ce308f64a37768933a4c9bdbddc7ce4547d5696918094d3fb21f1b931487eb6992f6fa55f8faa520f22404bf +EBUILD gnome-disk-utility-3.30.2-r1.ebuild 1631 BLAKE2B 0bae6a9a95ec598a06ec6dda89f30cd16d506ce93968b868635372113ee8966619a96976071659d50232bc8e3eded34d598d923162a2f24df75185457485d847 SHA512 0d4e1db88846f4483b2ff07262739509cc98e8e7b16610b4d5fa03e1bf0599ee2a6e0295b90da18efe6af61bc28cfcd90e716cf88507cfe89b7836ee85d12c5a EBUILD gnome-disk-utility-3.30.2.ebuild 1459 BLAKE2B f30180a801f992aa23d6c7dd20ddc6ed11a84814857b8f9bfc86106326a0b3ec89be063a8d9887b4ff1115af9d99f9432892ed0d537a9099f16d97f81ed96908 SHA512 3fa9c3d366538cdd705910b279d2108b37e862572e5decd799e4e605fe205071695affe6d0adbe8beedff18b8a4307452c132d9ebe6239782c7804038acfe06c MISC metadata.xml 597 BLAKE2B 6a1f81b2d7758158e8469a0544ce2ca45af42d24379391870b55fd97fd6dd963228136329af658851ecead1c14bf5a92658e6fde18223842451a9d85ccd628de SHA512 40904280037c0754d3481458bf024f83382e65122188f8fece8cd361cab57e01dfbc7b85da631b4265aaa6107567e376f4291e9f6e60e5e89bc747908c8e496c diff --git a/sys-apps/gnome-disk-utility/files/elogind-support.patch b/sys-apps/gnome-disk-utility/files/elogind-support.patch new file mode 100644 index 000000000000..10ebcdc9f53d --- /dev/null +++ b/sys-apps/gnome-disk-utility/files/elogind-support.patch @@ -0,0 +1,114 @@ +From 2c09cf164f654a5ed2bc153db30710999842c7a5 Mon Sep 17 00:00:00 2001 +From: Mart Raudsepp +Date: Tue, 9 Apr 2019 13:16:46 +0300 +Subject: [PATCH] build: add elogind support for seat retrieval + +--- + meson.build | 21 ++++++++++++--------- + meson_options.txt | 3 ++- + src/libgdu/gduutils.c | 4 ++-- + src/libgdu/meson.build | 5 +---- + 4 files changed, 17 insertions(+), 16 deletions(-) + +diff --git a/meson.build b/meson.build +index a5149c8e..ac641928 100644 +--- a/meson.build ++++ b/meson.build +@@ -3,7 +3,7 @@ project( + version: '3.32.0', + license: 'GPL2.0', + default_options: 'buildtype=debugoptimized', +- meson_version: '>= 0.43.0' ++ meson_version: '>= 0.47.0' + ) + + gdu_name = 'gnome-disk-utility' +@@ -75,13 +75,16 @@ libnotify_dep = dependency('libnotify', version: '>= 0.7') + liblzma_dep = dependency('liblzma', version: '>= 5.0.5') + m_dep = cc.find_library('m') + +-# *** Check for libsystemd *** +-enable_libsystemd = get_option('libsystemd') +-if enable_libsystemd +- libsystemd_dep = dependency('libsystemd', version: '>= 209', required: false) +- config_h.set('HAVE_LIBSYSTEMD', libsystemd_dep.found(), +- description: 'Define to 1 if libsystemd is available') ++# *** Check for logind *** ++assert(not (get_option('libsystemd').enabled() and get_option('libelogind').enabled()), 'Can not support systemd and elogind at once') ++if not get_option('libelogind').enabled() ++ logind_dep = dependency('libsystemd', version: '>= 209', required: get_option('libsystemd')) + endif ++if get_option('libelogind').enabled() or not logind_dep.found() ++ logind_dep = dependency('libelogind', version: '>= 209', required: get_option('libelogind')) ++endif ++config_h.set('HAVE_LOGIND', logind_dep.found(), ++ description: 'Define to 1 if logind API is available') + + gnome = import('gnome') + i18n = import('i18n') +@@ -123,9 +126,9 @@ output += ' libexecdir: ' + gdu_libexecdir + '\n' + output += ' localedir: ' + gdu_localedir + '\n' + output += ' mandir: ' + gdu_mandir + '\n' + output += ' sysconfdir: ' + gdu_sysconfdir + '\n\n' +-output += ' Use libsystemd: ' + enable_libsystemd.to_string() + '\n' ++output += ' Use logind: ' + logind_dep.found().to_string() + '\n' + output += ' Build g-s-d plug-in: ' + enable_gsd_plugin.to_string() + '\n\n' + output += ' compiler: ' + cc.get_id() + '\n' + output += ' cflags: ' + ' '.join(compiler_flags) + '\n\n' +-output += ' (Change with: meson configure BUILDDIR -D libsystemd=true|false -D gsd_plugin=true|false)\n\n' ++output += ' (Change with: meson configure BUILDDIR -D libelogind=auto|enabled|disabled -D libsystemd=auto|enabled|disabled -D gsd_plugin=true|false)\n\n' + message(output) +diff --git a/meson_options.txt b/meson_options.txt +index 952f5d24..895fc115 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -1,2 +1,3 @@ +-option('libsystemd', type: 'boolean', value: true, description: 'build with libsystemd') ++option('libelogind', type: 'feature', value: 'auto', description: 'build with libelogind') ++option('libsystemd', type: 'feature', value: 'auto', description: 'build with libsystemd') + option('gsd_plugin', type: 'boolean', value: true, description: 'build gnome-settings-daemon plug-in') +diff --git a/src/libgdu/gduutils.c b/src/libgdu/gduutils.c +index 59a26f3a..bff70304 100644 +--- a/src/libgdu/gduutils.c ++++ b/src/libgdu/gduutils.c +@@ -19,7 +19,7 @@ + # include + #endif + +-#if defined(HAVE_LIBSYSTEMD) ++#if defined(HAVE_LOGIND) + #include + #endif + +@@ -405,7 +405,7 @@ gdu_options_update_entry_option (GtkWidget *options_entry, + g_free (opts); + } + +-#if defined(HAVE_LIBSYSTEMD) ++#if defined(HAVE_LOGIND) + + const gchar * + gdu_utils_get_seat (void) +diff --git a/src/libgdu/meson.build b/src/libgdu/meson.build +index 00f7edd7..0693b229 100644 +--- a/src/libgdu/meson.build ++++ b/src/libgdu/meson.build +@@ -17,14 +17,11 @@ deps = [ + udisk_dep, + gtk_dep, + libsecret_dep, ++ logind_dep, + pwquality_dep, + m_dep + ] + +-if enable_libsystemd +- deps += libsystemd_dep +-endif +- + cflags = [ + '-DPACKAGE_DATA_DIR="@0@"'.format(gdu_datadir), + '-DG_LOG_DOMAIN="libgdu"', +-- +2.17.0 + diff --git a/sys-apps/gnome-disk-utility/gnome-disk-utility-3.30.2-r1.ebuild b/sys-apps/gnome-disk-utility/gnome-disk-utility-3.30.2-r1.ebuild new file mode 100644 index 000000000000..bdc871e209f2 --- /dev/null +++ b/sys-apps/gnome-disk-utility/gnome-disk-utility-3.30.2-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit gnome.org gnome2-utils meson xdg + +DESCRIPTION="Disk Utility for GNOME using udisks" +HOMEPAGE="https://wiki.gnome.org/Apps/Disks" + +LICENSE="GPL-2+" +SLOT="0" +IUSE="fat elogind gnome systemd" +REQUIRED_USE="?? ( elogind systemd )" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86" + +COMMON_DEPEND=" + >=dev-libs/glib-2.31:2 + >=sys-fs/udisks-2.7.6:2 + >=x11-libs/gtk+-3.16.0:3 + >=app-crypt/libsecret-0.7 + >=dev-libs/libpwquality-1.0.0 + >=media-libs/libcanberra-0.1[gtk3] + >=media-libs/libdvdread-4.2.0 + >=x11-libs/libnotify-0.7:= + >=app-arch/xz-utils-5.0.5 + elogind? ( >=sys-auth/elogind-209 ) + systemd? ( >=sys-apps/systemd-209:0= ) +" +RDEPEND="${COMMON_DEPEND} + x11-themes/adwaita-icon-theme + fat? ( sys-fs/dosfstools ) + gnome? ( >=gnome-base/gnome-settings-daemon-3.8 ) +" +# appstream-glib for developer_name tag in appdata (gettext-0.19.8.1 own appdata.its file doesn't have it yet) +# libxml2 for xml-stripblanks in gresource +DEPEND="${COMMON_DEPEND} + dev-libs/appstream-glib + dev-libs/libxml2:2 + dev-libs/libxslt + dev-util/glib-utils + >=sys-devel/gettext-0.19.8 + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/elogind-support.patch # https://gitlab.gnome.org/GNOME/gnome-disk-utility/merge_requests/15 +) + +src_configure() { + local emesonargs=( + $(meson_feature elogind libelogind) + $(meson_feature systemd libsystemd) + $(meson_use gnome gsd_plugin) + ) + meson_src_configure +} + +pkg_postinst() { + xdg_pkg_postinst + gnome2_schemas_update +} + +pkg_postrm() { + xdg_pkg_postrm + gnome2_schemas_update +} -- cgit v1.2.3