diff options
Diffstat (limited to 'eclass/games.eclass')
-rw-r--r-- | eclass/games.eclass | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/games.eclass b/eclass/games.eclass index 7d231e186cc9..2aa64617b2c5 100644 --- a/eclass/games.eclass +++ b/eclass/games.eclass @@ -24,7 +24,7 @@ if [[ -z ${_GAMES_ECLASS} ]]; then _GAMES_ECLASS=1 -inherit base multilib toolchain-funcs eutils user +inherit multilib toolchain-funcs eutils user case ${EAPI:-0} in 0|1) EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst pkg_postinst ;; @@ -302,12 +302,14 @@ games_src_configure() { # @FUNCTION: games_src_compile # @DESCRIPTION: -# Runs base_src_make(). This function is exported as src_compile(). +# This function is exported as src_compile(). games_src_compile() { case ${EAPI:-0} in 0|1) games_src_configure ;; esac - base_src_make + if [[ -f Makefile || -f GNUmakefile || -f makefile ]]; then + emake "$@" || die "died running emake, $FUNCNAME" + fi } # @FUNCTION: games_pkg_preinst |