blob: 7feb0c6c5e44aa2707cbcf2db56b31c656a268d3 (
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
58
59
60
61
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
XORG_DOC=doc
XORG_MULTILIB=yes
inherit xorg-3
DESCRIPTION="X.Org Session Management library"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
IUSE="ipv6 +uuid"
RDEPEND="x11-base/xorg-proto
>=x11-libs/libICE-1.0.8-r1[${MULTILIB_USEDEP}]
x11-libs/xtrans
uuid? (
elibc_Darwin? ( sys-libs/native-uuid )
!elibc_FreeBSD? ( !elibc_SunOS? ( !elibc_Darwin? (
>=sys-apps/util-linux-2.24.1-r3[${MULTILIB_USEDEP}]
) ) )
)"
DEPEND="${RDEPEND}"
src_configure() {
local withuuid=$(use_with uuid libuuid)
# do not use uuid even if available in libc (like on FreeBSD)
use uuid || export ac_cv_func_uuid_create=no
if use uuid ; then
case ${CHOST} in
*-solaris*|*-darwin*)
if [[ ! -d ${EROOT}/usr/include/uuid ]] &&
[[ -d ${ROOT}/usr/include/uuid ]]
then
# Solaris and Darwin have uuid provided by the host
# system. Since util-linux's version is based on this
# version, and on Darwin actually breaks host headers when
# installed, we can "pretend" for libSM we have libuuid
# installed, while in fact we don't
withuuid="--without-libuuid"
export HAVE_LIBUUID=yes
export LIBUUID_CFLAGS="-I${ROOT}/usr/include/uuid"
# Darwin has uuid in libSystem
[[ ${CHOST} == *-solaris* ]] && export LIBUUID_LIBS="-luuid"
fi
;;
esac
fi
local XORG_CONFIGURE_OPTIONS=(
$(use_enable ipv6)
$(use_enable doc docs)
$(use_with doc xmlto)
${withuuid}
--without-fop
)
xorg-3_src_configure
}
|