commit:     518afe3c3a29496c364bbad08361908a52739716
Author:     Brahmajit Das <brahmajit.xyz <AT> gmail <DOT> com>
AuthorDate: Thu Nov  2 17:45:10 2023 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Thu May  9 14:21:41 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=518afe3c

dev-libs/libtsm: Fix call to undeclared function static_assert

and update EAPI 7 -> 8

Closes: https://bugs.gentoo.org/895052
Signed-off-by: Brahmajit Das <brahmajit.xyz <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33651
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 .../files/libtsm-clang16-static_assert-fix.patch     | 10 ++++++++++
 dev-libs/libtsm/libtsm-4.0.2-r1.ebuild               | 20 ++++++++++++++++++++
 2 files changed, 30 insertions(+)

diff --git a/dev-libs/libtsm/files/libtsm-clang16-static_assert-fix.patch 
b/dev-libs/libtsm/files/libtsm-clang16-static_assert-fix.patch
new file mode 100644
index 000000000000..702ae5faaa4d
--- /dev/null
+++ b/dev-libs/libtsm/files/libtsm-clang16-static_assert-fix.patch
@@ -0,0 +1,10 @@
+Bug: https://bugs.gentoo.org/895052
+--- a/cmake/CompileOptions.cmake
++++ b/cmake/CompileOptions.cmake
+@@ -1,5 +1,5 @@
+ # Set compiler flags
+-set(CMAKE_C_STANDARD 99)
++set(CMAKE_C_STANDARD 11)
+ set(CMAKE_C_STANDARD_REQUIRED ON)
+ 
+ # analogous to AC_USE_SYSTEM_EXTENSIONS in configure.ac

diff --git a/dev-libs/libtsm/libtsm-4.0.2-r1.ebuild 
b/dev-libs/libtsm/libtsm-4.0.2-r1.ebuild
new file mode 100644
index 000000000000..fd0f595a431e
--- /dev/null
+++ b/dev-libs/libtsm/libtsm-4.0.2-r1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Terminal Emulator State Machine"
+HOMEPAGE="https://github.com/Aetf/libtsm";
+SRC_URI="https://github.com/Aetf/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1 MIT"
+SLOT="0/4"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+PATCHES=(
+       "${FILESDIR}/${PN}-cmake.patch"
+       "${FILESDIR}/${PN}-clang16-static_assert-fix.patch"
+)

Reply via email to