Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/libSM/
Date: Tue, 08 Sep 2020 19:25:13
Message-Id: 1599593098.f512e6cf33c5858b9b5891871c1be566232e784b.mattst88@gentoo
1 commit: f512e6cf33c5858b9b5891871c1be566232e784b
2 Author: David Michael <fedora.dm0 <AT> gmail <DOT> com>
3 AuthorDate: Fri Sep 4 23:08:57 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 8 19:24:58 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f512e6cf
7
8 x11-libs/libSM: EAPI 7
9
10 Package-Manager: Portage-3.0.4, Repoman-2.3.23
11 Signed-off-by: David Michael <fedora.dm0 <AT> gmail.com>
12 Closes: https://github.com/gentoo/gentoo/pull/17420
13 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
14
15 x11-libs/libSM/libSM-1.2.3-r1.ebuild | 58 ++++++++++++++++++++++++++++++++++++
16 1 file changed, 58 insertions(+)
17
18 diff --git a/x11-libs/libSM/libSM-1.2.3-r1.ebuild b/x11-libs/libSM/libSM-1.2.3-r1.ebuild
19 new file mode 100644
20 index 00000000000..557451f174c
21 --- /dev/null
22 +++ b/x11-libs/libSM/libSM-1.2.3-r1.ebuild
23 @@ -0,0 +1,58 @@
24 +# Copyright 1999-2020 Gentoo Authors
25 +# Distributed under the terms of the GNU General Public License v2
26 +
27 +EAPI=7
28 +
29 +XORG_DOC=doc
30 +XORG_MULTILIB=yes
31 +inherit xorg-3
32 +
33 +DESCRIPTION="X.Org Session Management library"
34 +
35 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
36 +IUSE="ipv6 +uuid"
37 +
38 +RDEPEND="x11-base/xorg-proto
39 + >=x11-libs/libICE-1.0.8-r1[${MULTILIB_USEDEP}]
40 + x11-libs/xtrans
41 + !elibc_FreeBSD? ( !elibc_SunOS? ( !elibc_Darwin? (
42 + uuid? ( >=sys-apps/util-linux-2.24.1-r3[${MULTILIB_USEDEP}] )
43 + ) ) )"
44 +DEPEND="${RDEPEND}"
45 +
46 +src_configure() {
47 + local withuuid=$(use_with uuid libuuid)
48 +
49 + # do not use uuid even if available in libc (like on FreeBSD)
50 + use uuid || export ac_cv_func_uuid_create=no
51 +
52 + if use uuid ; then
53 + case ${CHOST} in
54 + *-solaris*|*-darwin*)
55 + if [[ ! -d ${EROOT}/usr/include/uuid ]] &&
56 + [[ -d ${ROOT}/usr/include/uuid ]]
57 + then
58 + # Solaris and Darwin have uuid provided by the host
59 + # system. Since util-linux's version is based on this
60 + # version, and on Darwin actually breaks host headers when
61 + # installed, we can "pretend" for libSM we have libuuid
62 + # installed, while in fact we don't
63 + withuuid="--without-libuuid"
64 + export HAVE_LIBUUID=yes
65 + export LIBUUID_CFLAGS="-I${ROOT}/usr/include/uuid"
66 + # Darwin has uuid in libSystem
67 + [[ ${CHOST} == *-solaris* ]] && export LIBUUID_LIBS="-luuid"
68 + fi
69 + ;;
70 + esac
71 + fi
72 +
73 + local XORG_CONFIGURE_OPTIONS=(
74 + $(use_enable ipv6)
75 + $(use_enable doc docs)
76 + $(use_with doc xmlto)
77 + ${withuuid}
78 + --without-fop
79 + )
80 + xorg-3_src_configure
81 +}