diff --git a/dev-cpp/units/Manifest b/dev-cpp/units/Manifest new file mode 100644 index 0000000000..10258e3638 --- /dev/null +++ b/dev-cpp/units/Manifest @@ -0,0 +1 @@ +DIST units-2.3.3.tar.gz 1612045 BLAKE2B f81461e28d2cfe331ada2a0d1c0276d6a6c52825f2ec28caf2160e80aaa343ccc947892fe6be6133c5a80f277ac1767df49b66a10ad3ed573b57e6af16acd385 SHA512 40d803e6bb17f4bb46a0136c7753ae25a0d3ce352dbff3843b0c231e94eb8bade1de65d5b988589607fb12b11e4bfa762708a68839f2d7dccb45440672d09031 diff --git a/dev-cpp/units/metadata.xml b/dev-cpp/units/metadata.xml new file mode 100644 index 0000000000..2ce46e4b24 --- /dev/null +++ b/dev-cpp/units/metadata.xml @@ -0,0 +1,11 @@ + + + + + kocelfc@tutanota.com + Kostadin Shishmanov + + + nholthaus/units + + diff --git a/dev-cpp/units/units-2.3.3.ebuild b/dev-cpp/units/units-2.3.3.ebuild new file mode 100644 index 0000000000..b9d408ae35 --- /dev/null +++ b/dev-cpp/units/units-2.3.3.ebuild @@ -0,0 +1,24 @@ +# 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 )" + +src_configure() { + local mycmakeargs+=( + -DBUILD_TESTS="$(usex test ON OFF)" + ) + cmake_src_configure +}