mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
dev-libs/date: drop 3.0.0, 3.0.1_p20240913, EAPI=7--
Closes: https://bugs.gentoo.org/950893 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
parent
11f3dd5dc4
commit
40481b7235
@ -1,3 +1 @@
|
||||
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
|
||||
|
||||
@ -1,55 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit cmake
|
||||
|
||||
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/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="amd64 ~arm64"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0/3.0.0"
|
||||
IUSE="only-c-locale test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}"/${P}-c-locale-export.patch
|
||||
"${FILESDIR}"/${P}-version.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# The test cases are implicitly generated with CMake code, that parses
|
||||
# the file names for ".cpp" and ".fail.cpp". Renaming the source files
|
||||
# disables the test.
|
||||
|
||||
# This test case fails due to a stdlibc++ bug.
|
||||
# Upstream bug: https://github.com/HowardHinnant/date/issues/388
|
||||
mv "test/date_test/parse.pass.cpp" "test/date_test/parse.disabled" || ewarn "Can not deactivate test case, test failure expected"
|
||||
|
||||
# This test case fails only when the CMAKE_BUILD_TYPE=Gentoo.
|
||||
# The behaviour seems very strange, but does not appear with a
|
||||
# "valid" build type.
|
||||
# Upstream bug: https://github.com/HowardHinnant/date/issues/604
|
||||
mv "test/clock_cast_test/local_t.pass.cpp" "test/clock_cast_test/local_t.disabled" || ewarn "Can not deactivate test case, test failure expected"
|
||||
|
||||
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 "${BUILD_DIR}" || die
|
||||
ninja testit
|
||||
}
|
||||
@ -1,45 +0,0 @@
|
||||
# Copyright 1999-2025 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="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? ( llvm-core/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
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user