From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Kk5sI-0004Nb-PY for garchives@archives.gentoo.org; Sun, 28 Sep 2008 23:40:27 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6BDB0E0412; Sun, 28 Sep 2008 23:40:26 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 481DAE0412 for ; Sun, 28 Sep 2008 23:40:26 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 1C12264C1F for ; Sun, 28 Sep 2008 23:40:25 +0000 (UTC) Received: from nyhm by stork.gentoo.org with local (Exim 4.69) (envelope-from ) id 1Kk5sG-0002mY-2L for gentoo-commits@lists.gentoo.org; Sun, 28 Sep 2008 23:40:24 +0000 From: "Tristan Heaven (nyhm)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, nyhm@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: games.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: games.eclass X-VCS-Directories: eclass X-VCS-Committer: nyhm X-VCS-Committer-Name: Tristan Heaven Content-Type: text/plain; charset=utf8 Message-Id: Sender: Tristan Heaven Date: Sun, 28 Sep 2008 23:40:24 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: a89f43f7-da58-4d16-a47e-26c07495f75c X-Archives-Hash: 0938a8ddeeceb3fc613142d512543901 nyhm 08/09/28 23:40:24 Modified: games.eclass Log: EAPI 2 support Revision Changes Path 1.128 eclass/games.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclas= s?rev=3D1.128&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclas= s?rev=3D1.128&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclas= s?r1=3D1.127&r2=3D1.128 Index: games.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v retrieving revision 1.127 retrieving revision 1.128 diff -u -r1.127 -r1.128 --- games.eclass 11 Sep 2008 16:57:14 -0000 1.127 +++ games.eclass 28 Sep 2008 23:40:23 -0000 1.128 @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.127 2008/09/1= 1 16:57:14 nyhm Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.128 2008/09/2= 8 23:40:23 nyhm Exp $ =20 # devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@gentoo.org # @@ -10,7 +10,10 @@ =20 inherit multilib eutils =20 -EXPORT_FUNCTIONS pkg_preinst pkg_postinst src_compile pkg_setup +case ${EAPI:-0} in + 0|1) EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst pkg_postinst ;; + 2) EXPORT_FUNCTIONS pkg_setup src_configure src_compile pkg_preinst pkg= _postinst ;; +esac =20 [[ -z ${GAME} ]] && GAME=3D${PN%%-*} =20 @@ -135,8 +138,14 @@ && usermod -s /bin/bash "${GAMES_USER_DED}" } =20 -games_src_compile() { +games_src_configure() { [[ -x ./configure ]] && { egamesconf || die "egamesconf failed"; } +} + +games_src_compile() { + case ${EAPI:-0} in + 0|1) games_src_configure ;; + esac [ -e [Mm]akefile ] && { emake || die "emake failed"; } } =20