dev-cpp/units: add 2.3.4

Signed-off-by: Kostadin Shishmanov <kostadinshishmanov@protonmail.com>
This commit is contained in:
Kostadin Shishmanov
2025-05-28 19:11:13 +03:00
parent 1357e4bc5f
commit ba877f4bb2
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A compile-time, header-only, dimensional analysis and unit conversion library"
HOMEPAGE="https://github.com/nholthaus/units"
SRC_URI="https://github.com/nholthaus/units/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}/${PN}-2.3.3-disable-failing-tests.patch"
)
src_configure() {
local mycmakeargs+=(
-DBUILD_TESTS="$(usex test ON OFF)"
)
cmake_src_configure
}