diff options
| author | Alexey Sokolov <alexey+gentoo@asokolov.org> | 2022-07-11 01:03:00 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2022-07-12 03:46:21 +0100 |
| commit | 9d536043e793f5d49230620422cec37094a1871e (patch) | |
| tree | 4af796ee604389a5dba7647a92e234478aceb7a4 /dev-cpp/range-v3/range-v3-0.12.0.ebuild | |
| parent | c2eb9483cac80e3863c3d7f4a01872257f60edec (diff) | |
| download | gentoo-9d536043e793f5d49230620422cec37094a1871e.tar.gz gentoo-9d536043e793f5d49230620422cec37094a1871e.tar.bz2 gentoo-9d536043e793f5d49230620422cec37094a1871e.zip | |
dev-cpp/range-v3: version 0.12.0
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/26337
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-cpp/range-v3/range-v3-0.12.0.ebuild')
| -rw-r--r-- | dev-cpp/range-v3/range-v3-0.12.0.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-cpp/range-v3/range-v3-0.12.0.ebuild b/dev-cpp/range-v3/range-v3-0.12.0.ebuild new file mode 100644 index 000000000000..e3e0a4cc2eea --- /dev/null +++ b/dev-cpp/range-v3/range-v3-0.12.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Range library for C++14/17/20, basis for C++20's std::ranges" +HOMEPAGE="https://github.com/ericniebler/range-v3" +SRC_URI="https://github.com/ericniebler/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Boost-1.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +PATCHES=( + "${FILESDIR}/0.12.0-fix-any-1.patch" + "${FILESDIR}/0.12.0-fix-any-2.patch" +) + +src_prepare() { + # header-only libraries go to arch-independent dirs + sed -i -e 's@CMAKE_INSTALL_LIBDIR@CMAKE_INSTALL_DATADIR@g' CMakeLists.txt || die + rm include/module.modulemap || die # https://bugs.gentoo.org/755740 + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DRANGES_BUILD_CALENDAR_EXAMPLE=OFF + -DRANGES_NATIVE=OFF + -DRANGES_DEBUG_INFO=OFF + -DRANGES_NATIVE=OFF + -DRANGES_ENABLE_WERROR=OFF + -DRANGES_VERBOSE_BUILD=ON + -DRANGE_V3_EXAMPLES=OFF + -DRANGE_V3_PERF=OFF + -DRANGE_V3_DOCS=OFF + -DRANGE_V3_HEADER_CHECKS="$(usex test ON OFF)" + -DRANGE_V3_TESTS=$(usex test ON OFF) + #TODO: clang support + -DRANGES_MODULES=yes + ) + cmake_src_configure +} |
