diff options
author | Michał Górny <mgorny@gentoo.org> | 2017-12-08 15:40:10 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2017-12-08 15:50:43 +0100 |
commit | 1f49d9e2269c9c81fa1e0dac5589b5e6ad15fefa (patch) | |
tree | 740388720d5b44c40a3f57320257d64415f09146 /sys-libs/libcxxrt/libcxxrt-9999.ebuild | |
parent | sci-chemistry/vmd: Version bump (diff) | |
download | gentoo-1f49d9e2269c9c81fa1e0dac5589b5e6ad15fefa.tar.gz gentoo-1f49d9e2269c9c81fa1e0dac5589b5e6ad15fefa.tar.bz2 gentoo-1f49d9e2269c9c81fa1e0dac5589b5e6ad15fefa.zip |
sys-libs/libcxxrt: Required gcc-6+ for tests
Closes: https://bugs.gentoo.org/635528
Diffstat (limited to 'sys-libs/libcxxrt/libcxxrt-9999.ebuild')
-rw-r--r-- | sys-libs/libcxxrt/libcxxrt-9999.ebuild | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sys-libs/libcxxrt/libcxxrt-9999.ebuild b/sys-libs/libcxxrt/libcxxrt-9999.ebuild index 8d68b661f0c3..1b4a9c67f1f4 100644 --- a/sys-libs/libcxxrt/libcxxrt-9999.ebuild +++ b/sys-libs/libcxxrt/libcxxrt-9999.ebuild @@ -34,6 +34,22 @@ DEPEND="${RDEPEND} DOCS=( AUTHORS COPYRIGHT README ) +gcc_check() { + if tc-is-gcc && [[ $(gcc-major-version) -lt 6 ]] && use test; then + eerror "At least gcc-6 is required to run tests. Please switch to a newer" + eerror "compiler before proceeding." + die "gcc-6 required for tests" + fi +} + +pkg_pretend() { + gcc_check +} + +pkg_setup() { + gcc_check +} + src_prepare() { cp "${FILESDIR}/Makefile" src/ || die cp "${FILESDIR}/Makefile.test" test/Makefile || die |