Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: xfce-base/xfconf/
Date: Wed, 30 Nov 2022 17:25:10
Message-Id: 1669828964.5fe3ee447a22cc756269b5d87d80332d7582a602.mgorny@gentoo
1 commit: 5fe3ee447a22cc756269b5d87d80332d7582a602
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 30 17:22:44 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 17:22:44 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5fe3ee44
7
8 xfce-base/xfconf: Bump to 4.17.2
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 xfce-base/xfconf/Manifest | 1 +
13 xfce-base/xfconf/xfconf-4.17.2.ebuild | 78 +++++++++++++++++++++++++++++++++++
14 2 files changed, 79 insertions(+)
15
16 diff --git a/xfce-base/xfconf/Manifest b/xfce-base/xfconf/Manifest
17 index 022d6d2c0f30..2200fe0da468 100644
18 --- a/xfce-base/xfconf/Manifest
19 +++ b/xfce-base/xfconf/Manifest
20 @@ -1,2 +1,3 @@
21 DIST xfconf-4.16.0.tar.bz2 634858 BLAKE2B 34a03e457934310d4750b0811ff3b6fbde0c786656c9cc1bb2dd733e0104c2ab3ff1834fefcea31a6711931406b8ab507a528596b598e92c401defb8e6d7715e SHA512 d2e6b272243d6eda71f42cb3df18cb9c0745a1864718639e9aa494902dfe5b4989b2761fee2195456e5725cad0f744978f9c95c6f01e48aa016a919ce3468344
22 DIST xfconf-4.17.1.tar.bz2 624819 BLAKE2B a8752240b6619c9be83b73c16e1bb4915853b728aeb168d803f569dc38f221d5a02d2d1cbf8eee7ea43dd37f6473de5b6ec30848bf1f502bdc974002edcde681 SHA512 c0d5d3b41a9194390b0d45705a496a37bb55c7dd8821efcbad06e0e37ccfd917c4a54de45be16820c20748df81c1aee47cbec2c27caa1eaa5007802f87848762
23 +DIST xfconf-4.17.2.tar.bz2 625124 BLAKE2B 173f50ab3b0ded6b62bb421006588be662428928174786850591594b7d012ff432945643f514f00195919bc8f5b36e4d2524c27984378e8850580d518a1f4b05 SHA512 2861d58a2007c44745cef7829a6eaf689b72142dcfa25c0a7cebf984ed599e2cb238589ef682da1d7b9fdb99cc0c250a26a68a46553c53e303ac546850f14486
24
25 diff --git a/xfce-base/xfconf/xfconf-4.17.2.ebuild b/xfce-base/xfconf/xfconf-4.17.2.ebuild
26 new file mode 100644
27 index 000000000000..b3a22f37317f
28 --- /dev/null
29 +++ b/xfce-base/xfconf/xfconf-4.17.2.ebuild
30 @@ -0,0 +1,78 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit bash-completion-r1 vala
37 +
38 +DESCRIPTION="A configuration management system for Xfce"
39 +SRC_URI="https://archive.xfce.org/src/xfce/${PN}/${PV%.*}/${P}.tar.bz2"
40 +HOMEPAGE="
41 + https://docs.xfce.org/xfce/xfconf/start
42 + https://gitlab.xfce.org/xfce/xfconf/
43 +"
44 +
45 +LICENSE="GPL-2+"
46 +SLOT="0/3"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-solaris"
48 +IUSE="debug +introspection vala"
49 +REQUIRED_USE="vala? ( introspection )"
50 +
51 +DEPEND="
52 + >=dev-libs/glib-2.50
53 + sys-apps/dbus
54 + >=xfce-base/libxfce4util-4.17.3:=
55 + introspection? ( >=dev-libs/gobject-introspection-1.66:= )
56 +"
57 +RDEPEND="
58 + ${DEPEND}
59 +"
60 +BDEPEND="
61 + dev-util/gdbus-codegen
62 + dev-util/glib-utils
63 + dev-util/intltool
64 + sys-devel/gettext
65 + virtual/pkgconfig
66 + vala? ( $(vala_depend) )
67 +"
68 +
69 +src_configure() {
70 + local myconf=(
71 + $(use_enable introspection)
72 + $(use_enable vala)
73 + $(use_enable debug checks)
74 + --with-bash-completion-dir="$(get_bashcompdir)"
75 + )
76 +
77 + use vala && vala_setup
78 + econf "${myconf[@]}"
79 +}
80 +
81 +src_test() {
82 + local service_dir=${HOME}/.local/share/dbus-1/services
83 + mkdir -p "${service_dir}" || die
84 + cat > "${service_dir}/org.xfce.Xfconf.service" <<-EOF || die
85 + [D-BUS Service]
86 + Name=org.xfce.Xfconf
87 + Exec=${S}/xfconfd/xfconfd
88 + EOF
89 +
90 + (
91 + # start isolated dbus session bus
92 + dbus_data=$(dbus-launch --sh-syntax) || exit
93 + eval "${dbus_data}"
94 +
95 + # -j>1 often hangs
96 + # https://gitlab.xfce.org/xfce/xfconf/-/issues/13
97 + nonfatal emake -j1 check
98 + ret=${?}
99 +
100 + kill "${DBUS_SESSION_BUS_PID}"
101 + exit "${ret}"
102 + ) || die
103 +}
104 +
105 +src_install() {
106 + default
107 + find "${D}" -type f -name '*.la' -delete || die
108 +}