-# Copyright 1999-2019 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
GNOME2_LA_PUNT="yes"
-inherit gnome2
+inherit gnome2 toolchain-funcs
DESCRIPTION="A graphical, full featured, twin-panel file manager"
HOMEPAGE="https://gcmd.github.io/"
${RDEPEND}
dev-util/gtk-doc-am
sys-devel/gettext
- >=sys-devel/gcc-8.2.0
virtual/pkgconfig
test? ( >=dev-cpp/gtest-1.7.0 )
"
$(use_with unique)
}
+pkg_pretend() {
+ if tc-is-gcc && [[ $(gcc-major-version) -lt 8 ]]; then
+ eerror "Compilation with gcc older than version 8 is not supported"
+ die "GCC to old, please use gcc-8 or above"
+ fi
+}
+
pkg_postinst() {
gnome2_pkg_postinst
has_version dev-util/meld || elog "You need dev-util/meld to synchronize files and directories."