gentoo/dev-libs/libtsm/libtsm-4.0.2_p20231223.ebuild
Sam James 50f9055016
dev-libs/libtsm: add missing libxkbcommon DEPEND
A header from it is needed (though it does have a bundled copy
it can use, it doesn't seem to do that for tests anyway).

Closes: https://bugs.gentoo.org/956686
Signed-off-by: Sam James <sam@gentoo.org>
2025-05-27 08:23:43 +01:00

36 lines
735 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
COMMIT="69922bde02c7af83b4d48a414cc6036af7388626"
DESCRIPTION="Terminal Emulator State Machine"
HOMEPAGE="https://github.com/Aetf/libtsm"
SRC_URI="https://github.com/Aetf/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S=${WORKDIR}/${PN}-${COMMIT}
LICENSE="LGPL-2.1 MIT"
SLOT="0/4"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
# Needed for xkbcommon-keysyms.h
DEPEND="x11-libs/libxkbcommon"
PATCHES=(
"${FILESDIR}/${PN}-cmake.patch"
"${FILESDIR}/${PN}-clang16-static_assert-fix.patch"
)
src_configure() {
local mycmakeargs=(
-DBUILD_TESTING=$(usex test)
)
cmake_src_configure
}