mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
x11-misc/slop: fix build w/ cmake 4
Closes: https://bugs.gentoo.org/955893 Signed-off-by: Johannes Huber <johu@gmx.de> Part-of: https://github.com/gentoo/gentoo/pull/42215 Closes: https://github.com/gentoo/gentoo/pull/42215 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
committed by
Andreas Sturmlechner
parent
abf99ee82a
commit
a8405ca967
10
x11-misc/slop/files/slop-7.6-cmake4.patch
Normal file
10
x11-misc/slop/files/slop-7.6-cmake4.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 44657ec..e400508 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.1.3)
|
||||
+cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
project(slop VERSION 7.6 LANGUAGES CXX)
|
||||
|
||||
53
x11-misc/slop/slop-7.6-r2.ebuild
Normal file
53
x11-misc/slop/slop-7.6-r2.ebuild
Normal file
@@ -0,0 +1,53 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake
|
||||
|
||||
DESCRIPTION="Application that queries the user for a selection for printing"
|
||||
HOMEPAGE="https://github.com/naelstrof/slop"
|
||||
SRC_URI="https://github.com/naelstrof/slop/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="icu opengl"
|
||||
|
||||
RDEPEND="
|
||||
x11-libs/libX11
|
||||
x11-libs/libXext
|
||||
icu? ( dev-libs/icu:= )
|
||||
opengl? (
|
||||
media-libs/glew:0=
|
||||
media-libs/libglvnd
|
||||
virtual/opengl
|
||||
x11-libs/libXrender:=
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
${RDEPEND}
|
||||
x11-base/xorg-proto
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
media-libs/glm
|
||||
"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}"-7.5-missing-header.patch
|
||||
"${FILESDIR}/${P}"-cmake4.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
use icu && eapply "${FILESDIR}/"icu-75.1-cxx17.patch
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DSLOP_OPENGL=$(usex opengl)
|
||||
-DSLOP_UNICODE=$(usex icu)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user