diff options
author | Vadim A. Misbakh-Soloviov <git@mva.name> | 2018-09-04 15:00:19 +0700 |
---|---|---|
committer | Vadim A. Misbakh-Soloviov <git@mva.name> | 2018-09-04 15:00:19 +0700 |
commit | 12d12d57d10be5b483a048d12114cb3ad5c487d9 (patch) | |
tree | c790407c3320f6d192aa453631ded0853dd6c4be /eclass | |
parent | kbang: bye-bye (qt4, gcode, svn) (diff) | |
download | gamerlay-12d12d57d10be5b483a048d12114cb3ad5c487d9.tar.gz gamerlay-12d12d57d10be5b483a048d12114cb3ad5c487d9.tar.bz2 gamerlay-12d12d57d10be5b483a048d12114cb3ad5c487d9.zip |
some QA fixes. TODO: rewrite that ebuilds.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/d-games.eclass | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/eclass/d-games.eclass b/eclass/d-games.eclass index 98f2706..5e9cbe3 100644 --- a/eclass/d-games.eclass +++ b/eclass/d-games.eclass @@ -11,27 +11,20 @@ # in D programming language. # base added for PATCHES=( ${FILESDIR}/patch ) support -inherit eutils base games - # @ECLASS-VARIABLE: EAPI # @DESCRIPTION: # By default we want EAPI 2 which might be redefinable to newer versions later. case ${EAPI:-0} in - 2) : ;; - *) DEPEND="EAPI-TOO-OLD" ;; + [2-7]) : ;; + *) die "d-games.eclass doesn't support your EAPI" ;; esac EXPORT_FUNCTIONS src_prepare d-games_src_prepare() { # not eapi-handled due to danger of change for sys package in future. - if ! built_with_use sys-devel/gcc d; then - ewarn "sys-devel/gcc must be built with d useflag" - die "recompile gcc with USE=\"d\"" + if ! has_version sys-devel/gcc[d]; then + ewarn "sys-devel/gcc must be built with d useflag (although, some new versions have no this flag anymore)" + die "recompile gcc with USE=\"d\" (or install the version that have this flag at all, and select this version to be used for this package" fi - - # TODO: add check for correct gcc version selected in profile. - - base_src_prepare - games_src_prepare } |