Skip to content

Commit

Permalink
dev-qt/qt-creator: update build requirements for 9999
Browse files Browse the repository at this point in the history
  • Loading branch information
Pesa committed Jul 9, 2016
1 parent 7e6473d commit 8bb57e3
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions dev-qt/qt-creator/qt-creator-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
EAPI=6
PLOCALES="cs de fr ja pl ru sl uk zh_CN zh_TW"

inherit eutils l10n qmake-utils virtualx
inherit eutils l10n qmake-utils toolchain-funcs virtualx

DESCRIPTION="Lightweight IDE for C++/QML development centering around Qt"
HOMEPAGE="http://doc.qt.io/qtcreator/"
Expand Down Expand Up @@ -39,7 +39,7 @@ IUSE="doc systemd test webengine webkit ${QTC_PLUGINS[@]%:*}"
REQUIRED_USE="?? ( webengine webkit )"

# minimum Qt version required
QT_PV="5.5.0:5"
QT_PV="5.6.0:5"

RDEPEND="
=dev-libs/botan-1.10*[-bindist,threads]
Expand All @@ -60,9 +60,9 @@ RDEPEND="
>=dev-qt/qtxml-${QT_PV}
>=sys-devel/gdb-7.5[client,python]
clangcodemodel? ( >=sys-devel/clang-3.6.2:= )
qbs? ( >=dev-util/qbs-1.5.1 )
qbs? ( >=dev-util/qbs-1.5.2 )
systemd? ( sys-apps/systemd:= )
webengine? ( >=dev-qt/qtwebengine-5.6.0:5 )
webengine? ( >=dev-qt/qtwebengine-${QT_PV} )
webkit? ( >=dev-qt/qtwebkit-${QT_PV} )
"
DEPEND="${RDEPEND}
Expand All @@ -71,8 +71,8 @@ DEPEND="${RDEPEND}
doc? ( >=dev-qt/qdoc-${QT_PV} )
test? ( >=dev-qt/qttest-${QT_PV} )
"
# qt translations must be installed for qt-creator translations to work
for x in ${PLOCALES}; do
# qt translations must be installed for qt-creator translations to work
RDEPEND+=" linguas_${x}? ( >=dev-qt/qttranslations-${QT_PV} )"
done
unset x
Expand All @@ -90,9 +90,12 @@ PDEPEND="
"

src_unpack() {
if [[ $(gcc-major-version) -lt 4 ]] || [[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 7 ]]; then
eerror "GCC version 4.7 or later is required to build Qt Creator ${PV}"
die "GCC >= 4.7 required"
if tc-is-gcc; then
if [[ $(gcc-major-version) -lt 4 ]] || \
[[ $(gcc-major-version) -eq 4 && $(gcc-minor-version) -lt 8 ]]; then
eerror "GCC version 4.8 or later is required to build Qt Creator ${PV}"
die "GCC >= 4.8 required"
fi
fi

if [[ ${PV} == *9999 ]]; then
Expand Down

0 comments on commit 8bb57e3

Please sign in to comment.