From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 799FC138359 for ; Tue, 8 Sep 2020 19:25:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C6F6E086D; Tue, 8 Sep 2020 19:25:12 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5549CE086D for ; Tue, 8 Sep 2020 19:25:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4D071340F07 for ; Tue, 8 Sep 2020 19:25:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EB14830F for ; Tue, 8 Sep 2020 19:25:08 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1599593098.f512e6cf33c5858b9b5891871c1be566232e784b.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/libSM/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-libs/libSM/libSM-1.2.3-r1.ebuild X-VCS-Directories: x11-libs/libSM/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: f512e6cf33c5858b9b5891871c1be566232e784b X-VCS-Branch: master Date: Tue, 8 Sep 2020 19:25:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7bd9ae89-c090-4ba1-a4c3-50c9dfcaaa6f X-Archives-Hash: 6a9a9973f7baa64c241c7c120d9ddb05 commit: f512e6cf33c5858b9b5891871c1be566232e784b Author: David Michael gmail com> AuthorDate: Fri Sep 4 23:08:57 2020 +0000 Commit: Matt Turner gentoo org> CommitDate: Tue Sep 8 19:24:58 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f512e6cf x11-libs/libSM: EAPI 7 Package-Manager: Portage-3.0.4, Repoman-2.3.23 Signed-off-by: David Michael gmail.com> Closes: https://github.com/gentoo/gentoo/pull/17420 Signed-off-by: Matt Turner gentoo.org> x11-libs/libSM/libSM-1.2.3-r1.ebuild | 58 ++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/x11-libs/libSM/libSM-1.2.3-r1.ebuild b/x11-libs/libSM/libSM-1.2.3-r1.ebuild new file mode 100644 index 00000000000..557451f174c --- /dev/null +++ b/x11-libs/libSM/libSM-1.2.3-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2020 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 ~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" +IUSE="ipv6 +uuid" + +RDEPEND="x11-base/xorg-proto + >=x11-libs/libICE-1.0.8-r1[${MULTILIB_USEDEP}] + x11-libs/xtrans + !elibc_FreeBSD? ( !elibc_SunOS? ( !elibc_Darwin? ( + uuid? ( >=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 +}