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: Sun, 08 Apr 2018 08:29:36
Message-Id: 1523176164.1f030dd00b1ba8e3f7de62075058614f5ed61276.mgorny@gentoo
1 commit: 1f030dd00b1ba8e3f7de62075058614f5ed61276
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Apr 8 07:37:30 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Apr 8 08:29:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f030dd0
7
8 xfce-base/xfconf: Bump 4.12.1 to EAPI=6
9
10 xfce-base/xfconf/xfconf-4.12.1-r1.ebuild | 84 ++++++++++++++++++++++++++++++++
11 1 file changed, 84 insertions(+)
12
13 diff --git a/xfce-base/xfconf/xfconf-4.12.1-r1.ebuild b/xfce-base/xfconf/xfconf-4.12.1-r1.ebuild
14 new file mode 100644
15 index 00000000000..d95b921ef80
16 --- /dev/null
17 +++ b/xfce-base/xfconf/xfconf-4.12.1-r1.ebuild
18 @@ -0,0 +1,84 @@
19 +# Copyright 1999-2018 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +
22 +EAPI=6
23 +
24 +inherit virtualx xdg-utils
25 +
26 +DESCRIPTION="A configuration management system for Xfce"
27 +HOMEPAGE="https://www.xfce.org/projects/"
28 +SRC_URI="mirror://xfce/src/xfce/${PN}/${PV%.*}/${P}.tar.bz2"
29 +
30 +LICENSE="GPL-2"
31 +SLOT="0"
32 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris"
33 +IUSE="debug perl"
34 +
35 +RDEPEND=">=dev-libs/dbus-glib-0.98
36 + >=dev-libs/glib-2.30
37 + >=xfce-base/libxfce4util-4.10
38 + perl? (
39 + dev-lang/perl:=[-build(-)]
40 + dev-perl/glib-perl
41 + )"
42 +DEPEND="${RDEPEND}
43 + dev-util/intltool
44 + virtual/pkgconfig
45 + sys-devel/gettext
46 + perl? (
47 + dev-perl/ExtUtils-Depends
48 + dev-perl/ExtUtils-PkgConfig
49 + )"
50 +
51 +src_configure() {
52 + local myconf=(
53 + $(use_enable perl perl-bindings)
54 + $(use_enable debug checks)
55 + --with-perl-options=INSTALLDIRS=vendor
56 + )
57 + [[ ${CHOST} == *-darwin* ]] && myconf+=( --disable-visibility ) #366857
58 +
59 + xdg_environment_reset
60 + econf "${myconf[@]}"
61 +}
62 +
63 +src_prepare() {
64 + # https://bugzilla.xfce.org/show_bug.cgi?id=9556
65 + cat <<-EOF >> po/POTFILES.skip
66 + xfconf-perl/xs/Xfconf.c
67 + xfconf-perl/xs/XfconfBinding.c
68 + xfconf-perl/xs/XfconfChannel.c
69 + EOF
70 +
71 + default
72 +}
73 +
74 +src_compile() {
75 + emake OTHERLDFLAGS="${LDFLAGS}"
76 +}
77 +
78 +my_test() {
79 + local out=$(./xfconfd/xfconfd --daemon) || return 1
80 + eval "${out}"
81 +
82 + local ret=0
83 + # https://bugzilla.xfce.org/show_bug.cgi?id=13840
84 + nonfatal emake -j1 check || ret=1
85 +
86 + kill "${XFCONFD_PID}" || ewarn "Unable to kill xfconfd"
87 + return "${ret}"
88 +}
89 +
90 +src_test() {
91 + virtx my_test
92 +}
93 +
94 +src_install() {
95 + default
96 + find "${D}" -type f -name '*.la' -delete || die
97 +
98 + if use perl; then
99 + find "${ED}" -type f -name perllocal.pod -delete || die
100 + find "${ED}" -depth -mindepth 1 -type d -empty -delete || die
101 + fi
102 +}