commit:     a4272f2fc7d7698c08a21d0ef08636535a3a481c
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Mar  6 16:33:22 2021 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Mon Mar  8 21:14:00 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4272f2f

dev-libs/libtsm: EAPI-7 bump, switch to cmake.eclass

Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-libs/libtsm/files/libtsm-4.0.1-cmake.patch | 15 +++++++++++++++
 dev-libs/libtsm/libtsm-4.0.1.ebuild            |  9 +++++----
 2 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/dev-libs/libtsm/files/libtsm-4.0.1-cmake.patch 
b/dev-libs/libtsm/files/libtsm-4.0.1-cmake.patch
new file mode 100644
index 00000000000..eae34cf1aca
--- /dev/null
+++ b/dev-libs/libtsm/files/libtsm-4.0.1-cmake.patch
@@ -0,0 +1,15 @@
+--- a/CMakeLists.txt   2018-10-09 19:40:23.000000000 +0200
++++ b/CMakeLists.txt   2021-03-06 17:37:02.596380373 +0100
+@@ -24,12 +24,6 @@
+ # For feature_summary
+ include(FeatureSummary)
+ 
+-# Extra build types
+-if(NOT CMAKE_BUILD_TYPE)
+-    set(CMAKE_BUILD_TYPE "Debug")
+-endif()
+-include(cmake/BuildTypes.cmake)
+-
+ 
#---------------------------------------------------------------------------------------
+ # Options
+ 
#---------------------------------------------------------------------------------------

diff --git a/dev-libs/libtsm/libtsm-4.0.1.ebuild 
b/dev-libs/libtsm/libtsm-4.0.1.ebuild
index f8bc7744f35..29e150fe9c6 100644
--- a/dev-libs/libtsm/libtsm-4.0.1.ebuild
+++ b/dev-libs/libtsm/libtsm-4.0.1.ebuild
@@ -1,10 +1,9 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
-CMAKE_BUILD_TYPE=Release
-inherit cmake-utils
+inherit cmake
 
 DESCRIPTION="Terminal Emulator State Machine"
 HOMEPAGE="https://github.com/Aetf/libtsm";
@@ -14,3 +13,5 @@ LICENSE="LGPL-2.1 MIT"
 SLOT="0/4"
 KEYWORDS="~amd64 ~x86"
 IUSE=""
+
+PATCHES=( "${FILESDIR}/${P}-cmake.patch" )

Reply via email to