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 | |
parent | x11-wm/i3-gaps: drop old (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')
-rw-r--r-- | dev-cpp/range-v3/Manifest | 1 | ||||
-rw-r--r-- | dev-cpp/range-v3/range-v3-0.11.0.ebuild | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/dev-cpp/range-v3/Manifest b/dev-cpp/range-v3/Manifest index f090fc7442ea..6fafedbb109f 100644 --- a/dev-cpp/range-v3/Manifest +++ b/dev-cpp/range-v3/Manifest @@ -1 +1,2 @@ DIST range-v3-0.10.0.tar.gz 525765 BLAKE2B 7dd3aed9b35920e058fe43bccd364831a52ad8d50179d1057ab7a37cdef82df021bb09a9913018ae78982fe136c855ba4101e31d35cfc21747af994d0103b95e SHA512 4db089dcbf638eb30fa20dcf6785dd460c5a074a8912984a484592753cfee9f5b9a0e2c56b5bc5921d1b6120877aa2c83ac0a6fe428088ef2854033a635e9723 +DIST range-v3-0.11.0.tar.gz 533136 BLAKE2B d325b14a9d812cb7a600a947126bcecf9384bec987edbad42eec38560415d075815ab92e3f92dad291029fc3e1b1afa1ceaf54443b4a536078047fd32d344394 SHA512 9d6cdcbc1e50104206ba731c3bdc9aab3acfcf69cd83f0e0b4de18b88df2a9e73d64e55638421768d4433c542b6619f6e5af6b17cccd3090cf8b4d4efe9863e4 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 +} |