commit:     d9230d9d0cf5abc36270cda514c6f3a69994b863
Author:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 10 16:00:04 2025 +0000
Commit:     Matt Turner <mattst88 <AT> gentoo <DOT> org>
CommitDate: Mon Mar 10 16:18:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9230d9d

x11-libs/libSM: Version bump to 1.2.6

Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>

 x11-libs/libSM/Manifest           |  1 +
 x11-libs/libSM/libSM-1.2.6.ebuild | 61 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/x11-libs/libSM/Manifest b/x11-libs/libSM/Manifest
index 75c57c2c5242..82e26b852f87 100644
--- a/x11-libs/libSM/Manifest
+++ b/x11-libs/libSM/Manifest
@@ -1 +1,2 @@
 DIST libSM-1.2.5.tar.xz 312708 BLAKE2B 
9babbc5409037d1292c85c0b23ff21975f614e9cfe53c6878761e67489815862a98ef84a2249161279fd5d7af7ff886cfbafb63b82832ee142e513e3d359e6cd
 SHA512 
f2e58503a7cd144a610621104b4727878dd5ba0cdf8220e72f27a3474c9b49c01dc514c60cbdfb35a9318f307b27a601580725cef0f6b5091d4c4ea57cef8c91
+DIST libSM-1.2.6.tar.xz 314040 BLAKE2B 
9511d1bb8ec49e9cb55e473d777c75a535ec4e82924653c2ef47bb17dbec75df5a2a20453f72dc158a52666b7edbc67af289eab3cfabe49b6aaf803e13225e42
 SHA512 
e544a1dc49a03390f76af35837bfd01f749b806d88d3ee806f20311c47ff53d0aeea4744feb875958031b17d50b57a89dcc41d81241c09333c88b268c44653a7

diff --git a/x11-libs/libSM/libSM-1.2.6.ebuild 
b/x11-libs/libSM/libSM-1.2.6.ebuild
new file mode 100644
index 000000000000..c1b7f732af16
--- /dev/null
+++ b/x11-libs/libSM/libSM-1.2.6.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+XORG_DOC=doc
+XORG_MULTILIB=yes
+inherit xorg-3
+
+DESCRIPTION="X.Org Session Management library"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x64-solaris"
+IUSE="+uuid"
+
+RDEPEND="
+       >=x11-libs/libICE-1.1.0[${MULTILIB_USEDEP}]
+       uuid? (
+               elibc_Darwin? ( sys-libs/native-uuid )
+               !elibc_SunOS? ( !elibc_Darwin? (
+                       >=sys-apps/util-linux-2.24.1-r3[${MULTILIB_USEDEP}]
+               ) )
+       )"
+DEPEND="${RDEPEND}
+       x11-base/xorg-proto
+       x11-libs/xtrans"
+
+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=(
+               --enable-ipv6
+               $(use_enable doc docs)
+               $(use_with doc xmlto)
+               ${withuuid}
+               --without-fop
+       )
+       xorg-3_src_configure
+}

Reply via email to