diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-24 06:59:02 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2025-05-24 06:59:02 +0000 |
| commit | c5796cbc01277ea57f7a7201ef41e373960f3c7a (patch) | |
| tree | 235fddc7090dd5baccb964b81a2c7b8631df428a /dev-cpp | |
| parent | 09cb45b21c7d590ec2e5955b98678951ada09ff7 (diff) | |
| download | baldeagleos-repo-c5796cbc01277ea57f7a7201ef41e373960f3c7a.tar.gz baldeagleos-repo-c5796cbc01277ea57f7a7201ef41e373960f3c7a.tar.xz baldeagleos-repo-c5796cbc01277ea57f7a7201ef41e373960f3c7a.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp')
| -rw-r--r-- | dev-cpp/cctz/cctz-2.4-r1.ebuild | 34 | ||||
| -rw-r--r-- | dev-cpp/cctz/files/cctz-2.4-cmake4.patch | 66 | ||||
| -rw-r--r-- | dev-cpp/valijson/valijson-1.0.5.ebuild | 3 |
3 files changed, 103 insertions, 0 deletions
diff --git a/dev-cpp/cctz/cctz-2.4-r1.ebuild b/dev-cpp/cctz/cctz-2.4-r1.ebuild new file mode 100644 index 000000000000..67e9edecfc88 --- /dev/null +++ b/dev-cpp/cctz/cctz-2.4-r1.ebuild @@ -0,0 +1,34 @@ +# Copyright 2023-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="C++ library for dealing with time zones and time conversion" +HOMEPAGE="https://github.com/google/cctz" +SRC_URI="https://github.com/google/cctz/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + dev-cpp/gtest + ) +" + +PATCHES=( + "${FILESDIR}/${PN}-2.4-cmake4.patch" +) + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test) + -DBUILD_BENCHMARK=OFF + ) + cmake_src_configure +} diff --git a/dev-cpp/cctz/files/cctz-2.4-cmake4.patch b/dev-cpp/cctz/files/cctz-2.4-cmake4.patch new file mode 100644 index 000000000000..4c6ba8de6cc0 --- /dev/null +++ b/dev-cpp/cctz/files/cctz-2.4-cmake4.patch @@ -0,0 +1,66 @@ +https://bugs.gentoo.org/951679 +https://github.com/google/cctz/commit/f62d7b7 + +From f62d7b778289959fa117c13ce190387690400611 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christoph=20Gr=C3=BCninger?= <foss@grueninger.de> +Date: Mon, 8 Jul 2024 16:07:59 +0200 +Subject: [PATCH] [cmake] Require CMake 3.16 (#292) + +Follow Google's OSS policy. +Remove other code specific for CMake < 3.16 +--- + CMakeLists.txt | 28 +++++++--------------------- + 1 file changed, 7 insertions(+), 21 deletions(-) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index c0f2c58..0bf696b 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,8 +1,6 @@ +-cmake_minimum_required(VERSION 2.8.12) +- +-if (POLICY CMP0025) +- cmake_policy(SET CMP0025 NEW) +-endif() ++# https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md ++# As of 2024-07-01, CMake 3.16 is the minimum supported version. ++cmake_minimum_required(VERSION 3.16) + + project(cctz) + +@@ -51,20 +49,12 @@ if (BUILD_TESTING) + ) + endif() + +-# Starting from CMake >= 3.1, if a specific standard is required, ++# If a specific standard is required, + # it can be set from the command line with: +-# cmake -DCMAKE_CXX_STANDARD=[11|14|17] ++# cmake -DCMAKE_CXX_STANDARD=[11|14|17|20|23] + function(cctz_target_set_cxx_standard target) + set(cxx_standard 11) +- if (CMAKE_VERSION VERSION_LESS "3.1") +- if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") +- target_compile_options(${target} PRIVATE -std=c++${cxx_standard}) +- endif() +- elseif (CMAKE_VERSION VERSION_LESS "3.8") +- set_property(TARGET ${target} PROPERTY CXX_STANDARD ${cxx_standard}) +- else() +- target_compile_features(${target} PUBLIC cxx_std_${cxx_standard}) +- endif() ++ target_compile_features(${target} PUBLIC cxx_std_${cxx_standard}) + endfunction() + + if(APPLE) +@@ -191,10 +181,6 @@ install(FILES cmake/${PROJECT_NAME}-config.cmake + DESTINATION ${CMAKE_INSTALL_CONFIGDIR} + ) + +-if (CMAKE_VERSION VERSION_LESS "3.8") +- set(quiet_on_empty "") +-else() +- set(quiet_on_empty QUIET_ON_EMPTY) +-endif() ++set(quiet_on_empty QUIET_ON_EMPTY) + + feature_summary(WHAT ALL FATAL_ON_MISSING_REQUIRED_PACKAGES ${quiet_on_empty}) diff --git a/dev-cpp/valijson/valijson-1.0.5.ebuild b/dev-cpp/valijson/valijson-1.0.5.ebuild index 10e6d497669f..7afb50af88bb 100644 --- a/dev-cpp/valijson/valijson-1.0.5.ebuild +++ b/dev-cpp/valijson/valijson-1.0.5.ebuild @@ -12,6 +12,9 @@ SRC_URI="https://github.com/tristanpenman/valijson/archive/v${PV}.tar.gz -> ${P} LICENSE="BSD-2 Boost-1.0" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" +# Bundled test dependencies are included as submodules, so not in github +# autogenerated tarballs. The dependencies are largely packaged, but +# needs patching to use those. RESTRICT="test" src_install() { |
