diff options
| author | Alexey Sokolov <sokolov@google.com> | 2020-11-21 22:37:46 +0000 |
|---|---|---|
| committer | Georgy Yakovlev <gyakovlev@gentoo.org> | 2020-11-23 23:06:22 -0800 |
| commit | 02a8d503a0561d992bc7a3b6d4c99ee782e358f6 (patch) | |
| tree | 54b560ab7f0446eecd3b43743be2d5a9a02c16e4 /dev-cpp/range-v3/range-v3-0.11.0.ebuild | |
| parent | ff7d44ac0a3a6ed19ff2e67a7dd2d659bc9f7dbb (diff) | |
| download | gentoo-02a8d503a0561d992bc7a3b6d4c99ee782e358f6.tar.gz gentoo-02a8d503a0561d992bc7a3b6d4c99ee782e358f6.tar.bz2 gentoo-02a8d503a0561d992bc7a3b6d4c99ee782e358f6.zip | |
dev-cpp/range-v3: v0.11.0, enable tests
Closes: https://bugs.gentoo.org/755740
Package-Manager: Portage-3.0.8, Repoman-3.0.2
Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org>
Closes: https://github.com/gentoo/gentoo/pull/18353
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-cpp/range-v3/range-v3-0.11.0.ebuild')
| -rw-r--r-- | dev-cpp/range-v3/range-v3-0.11.0.ebuild | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-cpp/range-v3/range-v3-0.11.0.ebuild b/dev-cpp/range-v3/range-v3-0.11.0.ebuild new file mode 100644 index 000000000000..036a95353633 --- /dev/null +++ b/dev-cpp/range-v3/range-v3-0.11.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~ppc64" +IUSE="test" +RESTRICT="!test? ( test )" + +src_prepare() { + sed -i -e '/Werror/d' -e '/Wextra/d' -e '/Wall/d' cmake/ranges_flags.cmake || die + sed -i -e "s@lib/cmake@"$(get_libdir)"/cmake@g" CMakeLists.txt || die + rm include/module.modulemap || die # https://bugs.gentoo.org/755740 + cmake_src_prepare +} + +src_configure() { + mycmakeargs=( + -DRANGE_V3_EXAMPLES=OFF + -DRANGE_V3_HEADER_CHECKS=OFF + -DRANGE_V3_PERF=OFF + -DRANGE_V3_TESTS=$(usex test) + -DRANGES_BUILD_CALENDAR_EXAMPLE=OFF + -DRANGES_NATIVE=OFF + #TODO: clang support + -DRANGES_MODULES=yes + ) + cmake_src_configure +} |
