summaryrefslogtreecommitdiff
path: root/dev-libs/date
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/date')
-rw-r--r--dev-libs/date/Manifest5
-rw-r--r--dev-libs/date/date-3.0.3.ebuild33
-rw-r--r--dev-libs/date/files/date-3.0.3_remove-failing-tests.patch34
-rw-r--r--dev-libs/date/metadata.xml4
4 files changed, 75 insertions, 1 deletions
diff --git a/dev-libs/date/Manifest b/dev-libs/date/Manifest
index 3bb8a0046103..373702511e22 100644
--- a/dev-libs/date/Manifest
+++ b/dev-libs/date/Manifest
@@ -1,8 +1,11 @@
AUX date-3.0.0-c-locale-export.patch 3628 BLAKE2B 25fcd214430334a2c9f95dbff685957c563bd881ad6669bd7ee7ec7dcf619256cf096b65d76c8968c43192e2dd48b9739225f97e2088a12925d8b3d878ae5f53 SHA512 31f36be9fd6bc3eb8622ea6856b2c5b3bfbfa5a7dae748613839e5432051fe32e0ebe4c6b2c31dba4a0dc4787c85e671cdf321059f26a222b6a16436c3f624ea
AUX date-3.0.0-version.patch 312 BLAKE2B 6cbfd659c271d39b3441ce980579efb8fa2b002e482710dfafde89ab1978742fb178ed3336d284febfb143f1a81ca23276e04bca3b1a00e218db26f403283acd SHA512 c1165064c48793572ffc02a07728b0fb815f4b8610764f08e9ca53b9fc7fbce83168d39b38191db2ccac69f283b637ac12cc8c1516c99d8e1cdffe9773cd0dfd
AUX date-3.0.1_p20240913_remove-failing-tests.patch 792 BLAKE2B 816a8aaec9d87a0c29888264c5f8602d95b790ca84840a34a202c53442f000c30c7506414e70cabc990cf59c168a1361bc642426c38c58ca621a4d2aeb26c2f0 SHA512 8762731203be2a04d1d947103c6679d77f553b71453576e32c55c79f089c9b96abb286b9ee3332bdef2e232ea235210574063cd80a70b9dcc69b73f944c9cfc8
+AUX date-3.0.3_remove-failing-tests.patch 938 BLAKE2B 988dab6988c1257353d8b9dd1c38f77144fddd15661e664b82a7b5fc00358c90438f5748d93bcbbb30cac08700dbaec08ed79fca8c09a4faaa6d4c1ffa9cb6a9 SHA512 e5a453239592d4852d05b50f1f428f6cbc3b0415a247d1e3e9aea4cef42a02d3e9f65233bb717629e2670667e73e700af72eba5374faa6f96f5e952f630d45e1
DIST date-3.0.0.tar.gz 822623 BLAKE2B 438a7a5c153c7c2d695fefc95bbd474ef507af2cd8182d1e7d54d482b0128c3f9c57582ed5b40ef46d8f6f5539228d20322c684b1e1b418e5ade3b4871bf4ec1 SHA512 03ba0faef68e053aba888591b9350af1a043ef543825c80b1ca3f0dc0448697f56286e561f1a2a59e684680d7fc1e51fd24955c4cc222fe28db64f56037dc1aa
DIST date-3.0.1_p20240913.gh.tar.gz 828871 BLAKE2B bd036c0f12e54bc2d4de538fa32edbee9420c6579a267cd069575698692c2080e77ac0f803ab12607c5fce591603861e0f9de63ed7db2d1cd17e78f486978d96 SHA512 92d570658777d1cff09e78f15ae47a3d832bbc571f7cd6df309948b004641ec8b705f4fe4bace0cd19f8d7922cac52d7a7e0ee71cd2b5ff6a03550deee806267
+DIST date-3.0.3.gh.tar.gz 829597 BLAKE2B edbc4f7e4ca6debd6ec494b816affb6934a28a7fda1bb89e39f5dfc3a30c3c2e019cd803f1570bd26d32b07200c33cb231a0eacad22e2fc290f9eb565b0206dc SHA512 e11d7f230ecc431d94c4b58fe7394dd57a9ec0baa9de52496578479b51bbf885566d6666882916d84d388060fa36065b3fa8dd3a8bc14f720b38d1c943f06700
EBUILD date-3.0.0.ebuild 1605 BLAKE2B f8b424053884c5a1c0bc26204282861b4c4d73e46cc760b8a6f91f8d5f2fc715322cbbf413c374b0d75cdf7062f83ffeff3061e4d0ccc5c0d7bf2139e32b640d SHA512 b5d4e61641e9f63d1dff9355afe200879c00e2ce22041779938b1519d617b6d1298ae15dbb7d5a1e24dac18b5b046262e3c4fb1865447549957e47e7d4ca1ccf
EBUILD date-3.0.1_p20240913.ebuild 1028 BLAKE2B 084f75fcc20ac83cd2dd071ad95ee548435da4246a31bebf401be3fb601bb3ed1cf4075c9e3f59ce60ddd897c293c0a7bc5a0ca7fc5a691eb4b041a2dc681135 SHA512 0b65211ddf70209dbd44c41f7e53ab88c8b0f0d4be8414456f042d08742f61edbe9f76d9193504e5f2c4bf4612779c611089a0e3b89691d0f938db143729195a
-MISC metadata.xml 690 BLAKE2B 2c65b22d80311df0ad87c7eed1bbbf03c8ef57519e72e986a30984c5b447c080aec6f8b543de7e6a1f728012efc6472db1052c31fb23d029932183adc035d9eb SHA512 d9ac1ff19d63a61390c602587ef5dd9e4bbd66bde72695d8a2a552bf6210c0afa68eb4d64e1f1e6c50b5b1282b81df13b8570295e2da68503a9866436a023043
+EBUILD date-3.0.3.ebuild 825 BLAKE2B 8740bca35afbd6ed855708a071284ac9e02cf12d51c8fb72376b3db30ae4342ea8a44ee9ddc802326781e5346f1606b568cb1e777449c1cb7e83e48407d105ca SHA512 de5b9a23013088d2b8fbf5892c69e6d33162af2f2d142707bce02c40f077ffd00597b466e13a0ace8c6d138cbec254c2d603f6925e94e18c1d5348497e23a8ea
+MISC metadata.xml 807 BLAKE2B 2545d3c2eadec81b94f6cd57eeb44593864f7f932f93a8987a069f81236b9540ad4e3edf17f66bc381c6fd173ae066156361e1b19ec2e999988ba882fb29bd35 SHA512 989265b037956b508cbb8a43069f391606ebf35868ae093d29250a7ccd02dfcbbe5d8a6f086ee964c6094ff92ce40f3585f8036da5e28af04917da1ec00cac43
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..70364c33a9f8
--- /dev/null
+++ b/dev-libs/date/date-3.0.3.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake toolchain-funcs
+
+DESCRIPTION="A 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
index 9cd6469e422f..80e83adfadca 100644
--- a/dev-libs/date/metadata.xml
+++ b/dev-libs/date/metadata.xml
@@ -5,6 +5,10 @@
<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>