dev-libs/rinutils: add 0.10.3

Closes: https://bugs.gentoo.org/964580
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
Andreas Sturmlechner
2025-10-18 22:46:23 +02:00
parent 27eefd90b5
commit ced12e3b4a
3 changed files with 81 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST rinutils-0.10.2.tar.xz 19452 BLAKE2B 45345ab9cdefaa789856d312a1fb3e595e2be9701d0dc33ddc8f49b5b45caf4b1e1de6463a20245a841902b82bdeb6f0c7dcd8c89071159f1e85938537f41d0b SHA512 e2bc6304e84235947aa9aeb09fae0a27c10892ce547d59ab82569e2f03219a783a20c3bf7bd8a471464c2c07fe465eb8f2985e31d1f0e060da7d7bd832a67b67
DIST rinutils-0.10.3.tar.xz 19192 BLAKE2B 32875b3b8afcdbe66fb0f68b5b6d67599b55577b80d2e6d90c04e670592b253964be8dcf7db0521d96b05d52feccd5379a26e20f965a2867f6c290057cbb05f4 SHA512 fe9e774c597012bb0d86b867bb05d27d00234edcca89a61f715f96464e06d5985286328b2cb8960f1582ea25fb5b04eb37b6384b3d178b8dca959f4e3d86a0ff

View File

@@ -0,0 +1,35 @@
Source: https://github.com/shlomif/rinutils/pull/7
From e872b44309ef2df02055c2da2f438ed1d5afede6 Mon Sep 17 00:00:00 2001
From: Andreas Sturmlechner <asturm@gentoo.org>
Date: Sat, 18 Oct 2025 22:41:36 +0200
Subject: [PATCH] Raise CMake minimum version to 3.10..3.31 range
CMake 3.10 was released in 2017. Fixes warning since CMake-3.31:
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fd6ea92..6910899 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-CMAKE_MINIMUM_REQUIRED(VERSION 3.5)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.10..3.31)
PROJECT(rinutils)
INCLUDE ("${CMAKE_SOURCE_DIR}/cmake/shlomif_common_bootstrap.cmake")
--
2.51.1

View File

@@ -0,0 +1,45 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="Set of C headers containing macros and static functions"
HOMEPAGE="https://www.shlomifish.org/open-source/projects/ https://github.com/shlomif/rinutils"
SRC_URI="https://github.com/shlomif/${PN}/releases/download/${PV}/${P}.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc64 ~riscv ~sparc ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="
test? (
dev-perl/Env-Path
dev-perl/Path-Tiny
dev-perl/Inline
dev-perl/Inline-C
dev-perl/Test-TrailingSpace
dev-perl/Test-Differences
dev-perl/IO-All
dev-perl/Perl-Critic
dev-perl/Perl-Tidy
dev-perl/Test-Pod
dev-perl/Test-Pod-Coverage
dev-perl/Test-Trap
dev-util/cmocka
)
"
PATCHES=( "${FILESDIR}/${P}-cmake-minreqver-3.10.patch" ) # bug #964580
src_configure() {
local mycmakeargs=(
-DDISABLE_APPLYING_RPATH=OFF
-DWITH_TEST_SUITE=$(usex test ON OFF)
)
cmake_src_configure
}