public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/date/, dev-libs/date/files/
@ 2024-12-17 11:51 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2024-12-17 11:51 UTC (permalink / raw
  To: gentoo-commits

commit:     3b722c5ac54a409a9e5920703d079c2b1c95f8c3
Author:     Filip Kobierski <fkobi <AT> pm <DOT> me>
AuthorDate: Tue Nov 26 09:48:49 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Dec 17 11:50:43 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b722c5a

dev-libs/date: add 3.0.3

Bug: https://bugs.gentoo.org/846485
Signed-off-by: Filip Kobierski <fkobi <AT> pm.me>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/date/Manifest                             |  1 +
 dev-libs/date/date-3.0.3.ebuild                    | 39 ++++++++++++++++++++++
 .../files/date-3.0.3_remove-failing-tests.patch    | 28 ++++++++++++++++
 3 files changed, 68 insertions(+)

diff --git a/dev-libs/date/Manifest b/dev-libs/date/Manifest
index 1fa5abe76055..6c8ee9c59fee 100644
--- a/dev-libs/date/Manifest
+++ b/dev-libs/date/Manifest
@@ -1,2 +1,3 @@
 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

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..9162eabfbfed
--- /dev/null
+++ b/dev-libs/date/date-3.0.3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+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 )"
+
+BDEPEND="test? ( sys-devel/clang )" # tests call clang++
+
+PATCHES=( "$FILESDIR"/${PN}-3.0.3_remove-failing-tests.patch )
+
+src_prepare() {
+	cmake_src_prepare
+}
+
+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 "${SRC_DIR}"test/ || die
+	./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..e0863ecf3a26
--- /dev/null
+++ b/dev-libs/date/files/date-3.0.3_remove-failing-tests.patch
@@ -0,0 +1,28 @@
+From: Filip Kobierski <fkobi@pm.me>
+
+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.
+---
+ 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
+


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-17 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-17 11:51 [gentoo-commits] repo/gentoo:master commit in: dev-libs/date/, dev-libs/date/files/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox