1 |
commit: 4fefa42e5cf3283a1eb79880cb33c9245aaefad0 |
2 |
Author: David Michael <fedora.dm0 <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Dec 26 03:01:31 2020 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 28 17:35:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fefa42e |
7 |
|
8 |
x11-misc/xdg-user-dirs-gtk: EAPI 7, support cross-compiling |
9 |
|
10 |
The build system prevented the CHOST pkg-config from being found, |
11 |
so this specifies it as the cache variable to work around it. |
12 |
|
13 |
It also wants to know the path of a runtime dependency, so that is |
14 |
specified with EPREFIX so it isn't required at build time. |
15 |
|
16 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
17 |
Signed-off-by: David Michael <fedora.dm0 <AT> gmail.com> |
18 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
19 |
|
20 |
.../xdg-user-dirs-gtk-0.10-r1.ebuild | 24 +++++++++++++++------- |
21 |
1 file changed, 17 insertions(+), 7 deletions(-) |
22 |
|
23 |
diff --git a/x11-misc/xdg-user-dirs-gtk/xdg-user-dirs-gtk-0.10-r1.ebuild b/x11-misc/xdg-user-dirs-gtk/xdg-user-dirs-gtk-0.10-r1.ebuild |
24 |
index d433d5e80ce..2d9acf66e61 100644 |
25 |
--- a/x11-misc/xdg-user-dirs-gtk/xdg-user-dirs-gtk-0.10-r1.ebuild |
26 |
+++ b/x11-misc/xdg-user-dirs-gtk/xdg-user-dirs-gtk-0.10-r1.ebuild |
27 |
@@ -1,8 +1,8 @@ |
28 |
# Copyright 1999-2020 Gentoo Authors |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
|
31 |
-EAPI=6 |
32 |
-inherit gnome.org readme.gentoo-r1 |
33 |
+EAPI=7 |
34 |
+inherit gnome.org readme.gentoo-r1 toolchain-funcs |
35 |
|
36 |
DESCRIPTION="Integrates xdg-user-dirs into the Gnome desktop and Gtk+ applications" |
37 |
HOMEPAGE="https://www.freedesktop.org/wiki/Software/xdg-user-dirs" |
38 |
@@ -10,14 +10,14 @@ HOMEPAGE="https://www.freedesktop.org/wiki/Software/xdg-user-dirs" |
39 |
LICENSE="GPL-2" |
40 |
SLOT="0" |
41 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-solaris" |
42 |
-IUSE="" |
43 |
|
44 |
RDEPEND=" |
45 |
dev-libs/glib |
46 |
- >=x11-misc/xdg-user-dirs-0.14 |
47 |
>=x11-libs/gtk+-3.5.1:3 |
48 |
+ >=x11-misc/xdg-user-dirs-0.14 |
49 |
" |
50 |
-DEPEND="${RDEPEND} |
51 |
+DEPEND="${RDEPEND}" |
52 |
+BDEPEND=" |
53 |
dev-util/intltool |
54 |
virtual/pkgconfig |
55 |
" |
56 |
@@ -30,15 +30,25 @@ DOC_CONTENTS=" |
57 |
" |
58 |
|
59 |
src_prepare() { |
60 |
- default_src_prepare |
61 |
+ default |
62 |
sed -i \ |
63 |
-e '/Encoding/d' \ |
64 |
-e 's:OnlyShowIn=GNOME;LXDE;Unity;:NotShowIn=KDE;:' \ |
65 |
user-dirs-update-gtk.desktop.in || die |
66 |
} |
67 |
|
68 |
+src_configure() { |
69 |
+ local -a myeconfargs=( |
70 |
+ # Skip configure.ac disabling the cross-compiling pkg-config. |
71 |
+ ac_cv_path_PKG_CONFIG="$(tc-getPKG_CONFIG)" |
72 |
+ # Skip searching for this program in the CBUILD root. |
73 |
+ XDG_USER_DIRS_UPDATE="${EPREFIX}/usr/bin/xdg-user-dirs-update" |
74 |
+ ) |
75 |
+ econf "${myeconfargs[@]}" |
76 |
+} |
77 |
+ |
78 |
src_install() { |
79 |
- default_src_install |
80 |
+ default |
81 |
readme.gentoo_create_doc |
82 |
} |