diff options
Diffstat (limited to 'sys-libs/libcxxrt/libcxxrt-0.0_p20170515.ebuild')
-rw-r--r-- | sys-libs/libcxxrt/libcxxrt-0.0_p20170515.ebuild | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/sys-libs/libcxxrt/libcxxrt-0.0_p20170515.ebuild b/sys-libs/libcxxrt/libcxxrt-0.0_p20170515.ebuild index 8d68b661f0c3..b64983f176ee 100644 --- a/sys-libs/libcxxrt/libcxxrt-0.0_p20170515.ebuild +++ b/sys-libs/libcxxrt/libcxxrt-0.0_p20170515.ebuild @@ -21,11 +21,11 @@ fi LICENSE="BSD-2" SLOT="0" if [ "${PV%9999}" = "${PV}" ] ; then - KEYWORDS="~amd64 ~arm64 ~mips ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" + KEYWORDS="~amd64 ~arm64 ~mips x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux" else - KEYWORDS="" + KEYWORDS="x86" fi -IUSE="+libunwind +static-libs" +IUSE="+libunwind +static-libs test" RDEPEND="libunwind? ( || ( >=sys-libs/libunwind-1.0.1-r1[static-libs?,${MULTILIB_USEDEP}] sys-libs/llvm-libunwind[static-libs?,${MULTILIB_USEDEP}] ) )" @@ -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 |