Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sat, 11 May 2019 11:45:39
Message-Id: 1557575122.1eb8e53d64f2ebaf8145e65eaefc9bd625d01c4b.zlogene@gentoo
1 commit: 1eb8e53d64f2ebaf8145e65eaefc9bd625d01c4b
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 11 11:45:22 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sat May 11 11:45:22 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1eb8e53d
7
8 eclass: kill xfconf.eclass
9
10 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
11
12 eclass/xfconf.eclass | 161 ---------------------------------------------------
13 1 file changed, 161 deletions(-)
14
15 diff --git a/eclass/xfconf.eclass b/eclass/xfconf.eclass
16 deleted file mode 100644
17 index 57bb96db229..00000000000
18 --- a/eclass/xfconf.eclass
19 +++ /dev/null
20 @@ -1,161 +0,0 @@
21 -# Copyright 1999-2012 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -# @DEAD
25 -# Removal on 2019-06-02.
26 -
27 -# @ECLASS: xfconf.eclass
28 -# @MAINTAINER:
29 -# XFCE maintainers <xfce@g.o>
30 -# @SUPPORTED_EAPIS: 5
31 -# @BLURB: Default XFCE ebuild layout
32 -# @DESCRIPTION:
33 -# Default XFCE ebuild layout
34 -
35 -# @ECLASS-VARIABLE: EAUTORECONF
36 -# @DESCRIPTION:
37 -# Run eautoreconf instead of elibtoolize if the variable is set
38 -
39 -if [[ -n ${EAUTORECONF} ]] ; then
40 - AUTOTOOLS_AUTO_DEPEND=yes
41 -else
42 - : ${AUTOTOOLS_AUTO_DEPEND:=no}
43 -fi
44 -
45 -# @ECLASS-VARIABLE: XFCONF
46 -# @DESCRIPTION:
47 -# This should be an array defining arguments for econf
48 -
49 -unset _xfconf_live
50 -[[ $PV == *9999* ]] && _xfconf_live=git-2
51 -
52 -inherit ${_xfconf_live} autotools eutils gnome2-utils libtool xdg-utils
53 -
54 -EGIT_BOOTSTRAP=autogen.sh
55 -EGIT_REPO_URI="git://git.xfce.org/xfce/${MY_PN:-${PN}}"
56 -
57 -_xfconf_deps=""
58 -_xfconf_m4=">=dev-util/xfce4-dev-tools-4.10"
59 -
60 -[[ -n $_xfconf_live ]] && _xfconf_deps+=" dev-util/gtk-doc ${_xfconf_m4}"
61 -[[ -n $EAUTORECONF ]] && _xfconf_deps+=" ${_xfconf_m4}"
62 -
63 -RDEPEND=""
64 -DEPEND="${_xfconf_deps}"
65 -
66 -unset _xfconf_deps
67 -unset _xfconf_m4
68 -
69 -case ${EAPI:-0} in
70 - 5) ;;
71 - *) die "Unknown EAPI." ;;
72 -esac
73 -
74 -[[ -n $_xfconf_live ]] && _xfconf_live=src_unpack
75 -
76 -EXPORT_FUNCTIONS ${_xfconf_live} src_prepare src_configure src_install pkg_preinst pkg_postinst pkg_postrm
77 -
78 -# @FUNCTION: xfconf_use_debug
79 -# @DESCRIPTION:
80 -# If IUSE has debug, return --enable-debug=minimum.
81 -# If USE debug is enabled, return --enable-debug which is the same as --enable-debug=yes.
82 -# If USE debug is enabled and the XFCONF_FULL_DEBUG variable is set, return --enable-debug=full.
83 -xfconf_use_debug() {
84 - if has debug ${IUSE}; then
85 - if use debug; then
86 - if [[ -n $XFCONF_FULL_DEBUG ]]; then
87 - echo "--enable-debug=full"
88 - else
89 - echo "--enable-debug"
90 - fi
91 - else
92 - echo "--enable-debug=minimum"
93 - fi
94 - else
95 - ewarn "${FUNCNAME} called without debug in IUSE"
96 - fi
97 -}
98 -
99 -# @FUNCTION: xfconf_src_unpack
100 -# @DESCRIPTION:
101 -# Run git-2_src_unpack if required
102 -xfconf_src_unpack() {
103 - NOCONFIGURE=1 git-2_src_unpack
104 -}
105 -
106 -# @FUNCTION: xfconf_src_prepare
107 -# @DESCRIPTION:
108 -# Process PATCHES with epatch and run epatch_user followed by run of
109 -# elibtoolize, or eautoreconf if EAUTORECONF is set.
110 -xfconf_src_prepare() {
111 - debug-print-function ${FUNCNAME} "$@"
112 -
113 - [[ ${PATCHES[@]} ]] && epatch "${PATCHES[@]}"
114 - epatch_user
115 -
116 - if [[ -n $EAUTORECONF ]]; then
117 - AT_M4DIR=${EPREFIX}/usr/share/xfce4/dev-tools/m4macros eautoreconf
118 - else
119 - elibtoolize
120 - fi
121 -}
122 -
123 -# @FUNCTION: xfconf_src_configure
124 -# @DESCRIPTION:
125 -# Run econf with opts from the XFCONF array
126 -xfconf_src_configure() {
127 - debug-print-function ${FUNCNAME} "$@"
128 - [[ -n $_xfconf_live ]] && XFCONF+=( --enable-maintainer-mode )
129 - econf "${XFCONF[@]}"
130 -}
131 -
132 -# @FUNCTION: xfconf_src_install
133 -# @DESCRIPTION:
134 -# Run emake install to DESTDIR, einstalldocs to process DOCS and
135 -# prune_libtool_files --all to always remove libtool files (.la)
136 -xfconf_src_install() {
137 - debug-print-function ${FUNCNAME} "$@"
138 -
139 - # FIXME
140 - if [[ -n $_xfconf_live ]] && ! [[ -e ChangeLog ]]; then
141 - touch ChangeLog
142 - fi
143 -
144 - emake DESTDIR="${D}" "$@" install
145 -
146 - einstalldocs
147 -
148 - prune_libtool_files --all
149 -}
150 -
151 -# @FUNCTION: xfconf_pkg_preinst
152 -# @DESCRIPTION:
153 -# Run gnome2_icon_savelist
154 -xfconf_pkg_preinst() {
155 - debug-print-function ${FUNCNAME} "$@"
156 - gnome2_icon_savelist
157 -}
158 -
159 -# @FUNCTION: xfconf_pkg_postinst
160 -# @DESCRIPTION:
161 -# Run xdg_{desktop,mimeinfo}_database_update and gnome2_icon_cache_update
162 -xfconf_pkg_postinst() {
163 - debug-print-function ${FUNCNAME} "$@"
164 - xdg_desktop_database_update
165 - xdg_mimeinfo_database_update
166 - if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then
167 - gnome2_icon_cache_update
168 - fi
169 -}
170 -
171 -# @FUNCTION: xfconf_pkg_postrm
172 -# @DESCRIPTION:
173 -# Run xdg_{desktop,mimeinfo}_database_update and gnome2_icon_cache_update
174 -xfconf_pkg_postrm() {
175 - debug-print-function ${FUNCNAME} "$@"
176 - xdg_desktop_database_update
177 - xdg_mimeinfo_database_update
178 - if [[ -n ${GNOME2_ECLASS_ICONS} ]]; then
179 - gnome2_icon_cache_update
180 - fi
181 -}