diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-libs/date | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-libs/date')
| -rw-r--r-- | dev-libs/date/Manifest | 1 | ||||
| -rw-r--r-- | dev-libs/date/date-3.0.3.ebuild | 33 | ||||
| -rw-r--r-- | dev-libs/date/files/date-3.0.3_remove-failing-tests.patch | 34 | ||||
| -rw-r--r-- | dev-libs/date/metadata.xml | 24 |
4 files changed, 92 insertions, 0 deletions
diff --git a/dev-libs/date/Manifest b/dev-libs/date/Manifest new file mode 100644 index 000000000000..8744a2d89f68 --- /dev/null +++ b/dev-libs/date/Manifest @@ -0,0 +1 @@ +DIST date-3.0.3.gh.tar.gz 829597 BLAKE2B edbc4f7e4ca6debd6ec494b816affb6934a28a7fda1bb89e39f5dfc3a30c3c2e019cd803f1570bd26d32b07200c33cb231a0eacad22e2fc290f9eb565b0206dc SHA512 e11d7f230ecc431d94c4b58fe7394dd57a9ec0baa9de52496578479b51bbf885566d6666882916d84d388060fa36065b3fa8dd3a8bc14f720b38d1c943f06700 diff --git a/dev-libs/date/date-3.0.3.ebuild b/dev-libs/date/date-3.0.3.ebuild new file mode 100644 index 000000000000..be41482e09c4 --- /dev/null +++ b/dev-libs/date/date-3.0.3.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +DESCRIPTION="Date and time library based on the C++11/14/17 <chrono> header" +HOMEPAGE="https://github.com/HowardHinnant/date" +SRC_URI="https://github.com/HowardHinnant/date/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="amd64 ~arm64" +IUSE="only-c-locale test" +RESTRICT="!test? ( test )" + +PATCHES=( "${FILESDIR}"/${PN}-3.0.3_remove-failing-tests.patch ) + +src_configure() { + local mycmakeargs=( + -DBUILD_TZ_LIB=ON + -DUSE_SYSTEM_TZ_DB=ON + -DENABLE_DATE_TESTING=$(usex test) + -DCOMPILE_WITH_C_LOCALE=$(usex only-c-locale) + ) + cmake_src_configure +} + +src_test() { + cd test/ || die + CC="$(tc-getCC)" CXX="$(tc-getCXX)" ./testit || die +} diff --git a/dev-libs/date/files/date-3.0.3_remove-failing-tests.patch b/dev-libs/date/files/date-3.0.3_remove-failing-tests.patch new file mode 100644 index 000000000000..158b28258526 --- /dev/null +++ b/dev-libs/date/files/date-3.0.3_remove-failing-tests.patch @@ -0,0 +1,34 @@ +From: Filip Kobierski <fkobi@pm.me> + +Upstream states that " There are known failures on all platforms"[1]. +This patch removes the tests that fail for Gentoo. +They both test if the library can parse PM dates in a 12 hour format. + +Here are the failiure messages: +test_Ip(): Assertion `tp == sys_days{2016_y/12/11} + hours{13}' failed. +test_p(): Assertion `tp == sys_days{2016_y/12/11} + hours{23}' failed. + +[1]: https://github.com/HowardHinnant/date?tab=readme-ov-file#build--test +--- + test/date_test/parse.pass.cpp | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/test/date_test/parse.pass.cpp b/test/date_test/parse.pass.cpp +index 13ca909..cdeea71 100644 +--- a/test/date_test/parse.pass.cpp ++++ b/test/date_test/parse.pass.cpp +@@ -906,11 +906,9 @@ main() + test_D(); + test_F(); + test_H(); +- test_Ip(); + test_j(); + test_m(); + test_M(); +- test_p(); + test_r(); + test_R(); + test_S(); +-- +2.45.2 + diff --git a/dev-libs/date/metadata.xml b/dev-libs/date/metadata.xml new file mode 100644 index 000000000000..ca99df4da3a4 --- /dev/null +++ b/dev-libs/date/metadata.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>gentoo@jonas-toth.eu</email> + <name>Jonas Toth</name> + </maintainer> + <maintainer type="person" proxied="yes"> + <email>fkobi@pm.me</email> + <name>Filip Kobierski</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <use> + <flag name="only-c-locale">Build only the C locale</flag> + </use> + <upstream> + <bugs-to>https://github.com/HowardHinnant/date/issues</bugs-to> + <changelog>https://github.com/HowardHinnant/date/releases</changelog> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
