commit: 44d0d1953c2eb003d3599efeb557539f9ac27904 Author: Johannes Huber <johu <AT> gmx <DOT> de> AuthorDate: Mon Jun 2 19:01:36 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Mon Jun 2 19:50:29 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44d0d195
app-arch/zopfli: fix build w/ cmake 4 Closes: https://bugs.gentoo.org/951806 Signed-off-by: Johannes Huber <johu <AT> gmx.de> Part-of: https://github.com/gentoo/gentoo/pull/42405 Closes: https://github.com/gentoo/gentoo/pull/42405 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> app-arch/zopfli/files/zopfli-1.0.3-cmake4.patch | 17 +++++++++++++++++ app-arch/zopfli/zopfli-1.0.3-r1.ebuild | 19 +++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/app-arch/zopfli/files/zopfli-1.0.3-cmake4.patch b/app-arch/zopfli/files/zopfli-1.0.3-cmake4.patch new file mode 100644 index 000000000000..6cbd261a3ce5 --- /dev/null +++ b/app-arch/zopfli/files/zopfli-1.0.3-cmake4.patch @@ -0,0 +1,17 @@ +https://github.com/google/zopfli/pull/207 +commit 15464520156b4bfceb417f86d86e5a00d7e11c15 +Author: Johannes Huber <[email protected]> +Date: Mon Jun 2 20:27:25 2025 +0200 + + fix build w/ cmake4 + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e56fd2f..bee4355 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8.11) ++cmake_minimum_required(VERSION 3.10) + + project(Zopfli) + diff --git a/app-arch/zopfli/zopfli-1.0.3-r1.ebuild b/app-arch/zopfli/zopfli-1.0.3-r1.ebuild new file mode 100644 index 000000000000..e8cbf9f67500 --- /dev/null +++ b/app-arch/zopfli/zopfli-1.0.3-r1.ebuild @@ -0,0 +1,19 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Very good, but slow, deflate or zlib compression" +HOMEPAGE="https://github.com/google/zopfli/" +SRC_URI="https://github.com/google/zopfli/archive/${P}.tar.gz" +S="${WORKDIR}/${PN}-${P}" + +LICENSE="Apache-2.0" +SLOT="0/1" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +DOCS=( CONTRIBUTORS README README.zopflipng ) + +PATCHES=( "${FILESDIR}"/${P}-cmake4.patch )
