diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-02-23 21:29:20 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2005-02-23 21:29:20 +0000 |
commit | f1640b7b9daf3a3da6b5b4f6f658b4e71084c137 (patch) | |
tree | 6f9f12843dcc38831d7b4ffd554f758bc3e12465 /eclass/games-etmod.eclass | |
parent | removed hardmask from dev-db/aqua-data-studio since its no longer in the tree (diff) | |
download | historical-f1640b7b9daf3a3da6b5b4f6f658b4e71084c137.tar.gz historical-f1640b7b9daf3a3da6b5b4f6f658b4e71084c137.tar.bz2 historical-f1640b7b9daf3a3da6b5b4f6f658b4e71084c137.zip |
Updated eclass with proper use of dedicated/opengl USE flags.
Diffstat (limited to 'eclass/games-etmod.eclass')
-rw-r--r-- | eclass/games-etmod.eclass | 49 |
1 files changed, 27 insertions, 22 deletions
diff --git a/eclass/games-etmod.eclass b/eclass/games-etmod.eclass index fe5241cf8bd3..bff4ad722fdf 100644 --- a/eclass/games-etmod.eclass +++ b/eclass/games-etmod.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/games-etmod.eclass,v 1.4 2005/01/20 14:04:31 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/games-etmod.eclass,v 1.5 2005/02/23 21:29:20 wolf31o2 Exp $ inherit games @@ -13,7 +13,7 @@ DESCRIPTION="Enemy Territory - ${MOD_DESC}" SLOT="0" KEYWORDS="-* amd64 x86" -IUSE="opengl dedicated emul-linux-x86" +IUSE="opengl dedicated" DEPEND="app-arch/unzip" RDEPEND="virtual/libc @@ -45,26 +45,30 @@ games-etmod_src_install() { mv ${S}/* ${D}/${mdir}/ fi - games-etmod_make_etded_exec - newgamesbin ${T}/et-${MOD_NAME}-ded.bin et-${MOD_BINS}-ded - games-etmod_make_enemy-territory_exec - newgamesbin ${T}/et-${MOD_NAME}.bin et-${MOD_BINS} + if use dedicated; then + games-etmod_make_etded_exec + newgamesbin ${T}/et-${MOD_NAME}-ded.bin et-${MOD_BINS}-ded + fi + if use opengl; then + games-etmod_make_enemy-territory_exec + newgamesbin ${T}/et-${MOD_NAME}.bin et-${MOD_BINS} + fi - games-etmod_make_init.d - exeinto /etc/init.d - newexe ${T}/et-${MOD_NAME}-ded.init.d et-${MOD_BINS}-ded - games-etmod_make_conf.d - insinto /etc/conf.d - newins ${T}/et-${MOD_NAME}-ded.conf.d et-${MOD_BINS}-ded + if use dedicated; then + games-etmod_make_init.d + newinitd ${T}/et-${MOD_NAME}-ded.init.d et-${MOD_BINS}-ded + games-etmod_make_conf.d + newconfd ${T}/et-${MOD_NAME}-ded.conf.d et-${MOD_BINS}-ded - dodir ${GAMES_SYSCONFDIR}/enemy-territory + dodir ${GAMES_SYSCONFDIR}/enemy-territory - dodir ${bdir}/etwolf-homedir - dosym ${bdir}/etwolf-homedir ${GAMES_PREFIX}/.wolfet - keepdir ${bdir}/etwolf-homedir + dodir ${bdir}/etwolf-homedir + dosym ${bdir}/etwolf-homedir ${GAMES_PREFIX}/.wolfet + keepdir ${bdir}/etwolf-homedir + chmod g+rw ${D}/${mdir} ${D}/${bdir}/etwolf-homedir + chmod -R g+rw ${D}/${GAMES_SYSCONFDIR}/enemy-territory + fi prepgamesdirs - chmod g+rw ${D}/${mdir} ${D}/${bdir}/etwolf-homedir - chmod -R g+rw ${D}/${GAMES_SYSCONFDIR}/enemy-territory } games-etmod_pkg_postinst() { @@ -74,10 +78,11 @@ games-etmod_pkg_postinst() { cp ${samplecfg} ${realcfg} fi - einfo "To play this mod: et-${MOD_BINS}" - einfo "To launch a dedicated server: et-${MOD_BINS}-ded" - use dedicated && \ - einfo "To launch server at startup: /etc/init.d/et-${MOD_NAME}-ded" + use opengl && einfo "To play this mod: et-${MOD_BINS}" + if use dedicated; then + einfo "To launch a dedicated server: et-${MOD_BINS}-ded" + einfo "To launch server at startup: /etc/init.d/et-${MOD_NAME}-ded" + fi games_pkg_postinst } |