blob: b55f4652cce265a4bd31c646d320b7ff1cdd64f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit gnome.org readme.gentoo-r1 toolchain-funcs
DESCRIPTION="Integrates xdg-user-dirs into the Gnome desktop and Gtk+ applications"
HOMEPAGE="https://gitlab.gnome.org/GNOME/xdg-user-dirs-gtk"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
RDEPEND="
dev-libs/glib:2
>=x11-libs/gtk+-3.5.1:3
>=x11-misc/xdg-user-dirs-0.14
"
DEPEND="${RDEPEND}"
BDEPEND="
dev-util/intltool
virtual/pkgconfig
"
DOC_CONTENTS="
This package tries to automatically use some sensible default
directories for your documents, music, video and other stuff.
If you want to change those directories to your needs, see
the settings in ~/.config/user-dirs.dirs
"
src_prepare() {
default
sed -i \
-e '/Encoding/d' \
-e 's:OnlyShowIn=GNOME;LXDE;Unity;:NotShowIn=KDE;:' \
user-dirs-update-gtk.desktop.in || die
}
src_configure() {
local -a myeconfargs=(
# Skip configure.ac disabling the cross-compiling pkg-config.
ac_cv_path_PKG_CONFIG="$(tc-getPKG_CONFIG)"
# Skip searching for this program in the CBUILD root.
XDG_USER_DIRS_UPDATE="${EPREFIX}/usr/bin/xdg-user-dirs-update"
)
econf "${myeconfargs[@]}"
}
src_install() {
default
readme.gentoo_create_doc
}
pkg_postinst() {
readme.gentoo_print_elog
}
|