summaryrefslogtreecommitdiff
path: root/dev-libs/date
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-09-24 01:25:20 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-09-24 01:25:20 +0100
commitd80b870c42fbe218389ffaf86f0f2a39404deca1 (patch)
tree3be15ebcfb876f660fe2f2b0d02f8bca68e41622 /dev-libs/date
parentde59eb4554f5fe0d506a66bb96630a35f99c09f7 (diff)
gentoo auto-resync : 24:09:2024 - 01:25:19HEADmaster
Diffstat (limited to 'dev-libs/date')
-rw-r--r--dev-libs/date/Manifest3
-rw-r--r--dev-libs/date/date-3.0.1_p20240913.ebuild45
-rw-r--r--dev-libs/date/files/date-3.0.1_p20240913_remove-failing-tests.patch35
3 files changed, 83 insertions, 0 deletions
diff --git a/dev-libs/date/Manifest b/dev-libs/date/Manifest
index 990b11d02add..5def050f1e62 100644
--- a/dev-libs/date/Manifest
+++ b/dev-libs/date/Manifest
@@ -1,5 +1,8 @@
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
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
EBUILD date-3.0.0.ebuild 1605 BLAKE2B f8b424053884c5a1c0bc26204282861b4c4d73e46cc760b8a6f91f8d5f2fc715322cbbf413c374b0d75cdf7062f83ffeff3061e4d0ccc5c0d7bf2139e32b640d SHA512 b5d4e61641e9f63d1dff9355afe200879c00e2ce22041779938b1519d617b6d1298ae15dbb7d5a1e24dac18b5b046262e3c4fb1865447549957e47e7d4ca1ccf
+EBUILD date-3.0.1_p20240913.ebuild 1028 BLAKE2B 962bafb1eed4656d434a2096eae44cd03a37501f5c1c30a52743ddaa8bf340125af15b14e022b6c0d047592d20911791e06f98536bad3e292eb5429ab72176a5 SHA512 6b2bd514b7bb13dae23804ad14e9c18df901ac337cd8c42885447242998a8bce8c43b2af53490fd8f3f2950324f670d2b8d6762d9b6255473c1db2eb02f894b6
MISC metadata.xml 690 BLAKE2B 2c65b22d80311df0ad87c7eed1bbbf03c8ef57519e72e986a30984c5b447c080aec6f8b543de7e6a1f728012efc6472db1052c31fb23d029932183adc035d9eb SHA512 d9ac1ff19d63a61390c602587ef5dd9e4bbd66bde72695d8a2a552bf6210c0afa68eb4d64e1f1e6c50b5b1282b81df13b8570295e2da68503a9866436a023043
diff --git a/dev-libs/date/date-3.0.1_p20240913.ebuild b/dev-libs/date/date-3.0.1_p20240913.ebuild
new file mode 100644
index 000000000000..716577c52456
--- /dev/null
+++ b/dev-libs/date/date-3.0.1_p20240913.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+# maintainer recommends to "live at head" so we ship snapshots
+COMMIT="155c6b9e76e462e1d47ea528ca87f366adccdea3"
+
+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/${COMMIT}.tar.gz -> ${P}.gh.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}"
+
+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.1_p20240913_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.1_p20240913_remove-failing-tests.patch b/dev-libs/date/files/date-3.0.1_p20240913_remove-failing-tests.patch
new file mode 100644
index 000000000000..91e2de2566c0
--- /dev/null
+++ b/dev-libs/date/files/date-3.0.1_p20240913_remove-failing-tests.patch
@@ -0,0 +1,35 @@
+From: Filip Kobierski <fkobi@pm.me>
+
+Here are the failiure messages:
+test_c(): Assertion `!in.fail()' failed.
+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 | 3 ---
+ 1 file changed, 3 deletions(-)
+
+diff --git a/test/date_test/parse.pass.cpp b/test/date_test/parse.pass.cpp
+index a7fecfd..bd1cef4 100644
+--- a/test/date_test/parse.pass.cpp
++++ b/test/date_test/parse.pass.cpp
+@@ -891,17 +891,14 @@ main()
+ {
+ test_a();
+ test_b();
+- test_c();
+ test_C();
+ test_d();
+ test_D();
+ test_F();
+ test_H();
+- test_Ip();
+ test_j();
+ test_m();
+ test_M();
+- test_p();
+ test_r();
+ test_R();
+ test_S();
+--
+2.44.2
+