summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2015-08-19 10:26:24 +0200
committerBernard Cafarelli <voyageur@gentoo.org>2015-08-19 10:26:24 +0200
commit16557b3d7c3d4a485b1dc4607470a32bf2298538 (patch)
tree2885df8306dabefb268a1b8d34bbae682d6fc9ee /net-ftp/filezilla
parentdev-python/numexpr: add patch merged upstream to fix test failures (diff)
downloadgentoo-16557b3d7c3d4a485b1dc4607470a32bf2298538.tar.gz
gentoo-16557b3d7c3d4a485b1dc4607470a32bf2298538.tar.bz2
gentoo-16557b3d7c3d4a485b1dc4607470a32bf2298538.zip
Add check for C++14 (required since 3.13.0-rc1), fixes bug #558118
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'net-ftp/filezilla')
-rw-r--r--net-ftp/filezilla/filezilla-3.13.0.ebuild14
1 files changed, 14 insertions, 0 deletions
diff --git a/net-ftp/filezilla/filezilla-3.13.0.ebuild b/net-ftp/filezilla/filezilla-3.13.0.ebuild
index 51f25926c61b..3f0e7a090ea6 100644
--- a/net-ftp/filezilla/filezilla-3.13.0.ebuild
+++ b/net-ftp/filezilla/filezilla-3.13.0.ebuild
@@ -36,6 +36,20 @@ DEPEND="${RDEPEND}
S="${WORKDIR}"/${PN}-${MY_PV}
+pkg_pretend() {
+if [[ ${MERGE_TYPE} != binary ]]; then
+ echo 'int main() {return 0;}' > "${T}"/test.cxx || die
+ ebegin "Trying to build a C++14 test program"
+ if ! $(tc-getCXX) -std=c++14 -o /dev/null "${T}"/test.cxx; then
+ eerror "${P} requires C++14-capable C++ compiler. Your current compiler"
+ eerror "does not seem to support -std=c++14 option. Please upgrade your compiler"
+ eerror "to gcc-4.9 or an equivalent version supporting C++14."
+ die "Currently active compiler does not support -std=c++14"
+ fi
+ eend ${?}
+ fi
+}
+
src_prepare() {
# Missing in tarball
cp -a "${FILESDIR}"/${P}-fzputtygen_interface.h \