-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/aaquake2/aaquake2-0.1.ebuild,v 1.9 2006/05/05 20:09:32 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/aaquake2/aaquake2-0.1.ebuild,v 1.10 2007/04/09 17:50:11 nyhm Exp $
inherit eutils games
src_unpack() {
unpack ${A}
- cd "${WORKDIR}/quake2-3.21"
- epatch "${FILESDIR}"/${PV}-gentoo.patch \
- "${FILESDIR}/${P}"-gcc41.patch
+ cd "${WORKDIR}"/quake2-3.21
+ epatch \
+ "${FILESDIR}"/${PV}-gentoo.patch \
+ "${FILESDIR}"/${P}-gcc41.patch
cd linux
sed -i \
- -e "s:GENTOO_DIR:${GAMES_LIBDIR}/${PN}:" sys_linux.c
+ -e "s:GENTOO_DIR:$(games_get_libdir)/${PN}:" sys_linux.c \
+ || die "sed failed"
sed -i \
- -e "s:/etc/quake2.conf:${GAMES_SYSCONFDIR}/${PN}.conf:" sys_linux.c vid_so.c
+ -e "s:/etc/quake2.conf:${GAMES_SYSCONFDIR}/${PN}.conf:" \
+ sys_linux.c vid_so.c \
+ || die "sed failed"
}
src_compile() {
src_install() {
cd release*
- exeinto ${GAMES_LIBDIR}/${PN}
- doexe gamei386.so ref_softaa.so || die
- dosym ref_softaa.so ${GAMES_LIBDIR}/${PN}/ref_softx.so
- dosym ref_softaa.so ${GAMES_LIBDIR}/${PN}/ref_soft.so
- exeinto ${GAMES_LIBDIR}/${PN}/ctf
- doexe ctf/gamei386.so || die
+ exeinto "$(games_get_libdir)"/${PN}
+ doexe gamei386.so ref_softaa.so || die "doexe failed"
+ dosym ref_softaa.so "$(games_get_libdir)"/${PN}/ref_softx.so
+ dosym ref_softaa.so "$(games_get_libdir)"/${PN}/ref_soft.so
+ exeinto "$(games_get_libdir)"/${PN}/ctf
+ doexe ctf/gamei386.so || die "doexe failed"
- newgamesbin quake2 aaquake2 || die
+ newgamesbin quake2 aaquake2 || die "newgamesbin failed"
- dodir ${GAMES_DATADIR}/quake2
-
- insinto ${GAMES_SYSCONFDIR}
- echo ${GAMES_LIBDIR}/${PN} > ${PN}.conf
- doins ${PN}.conf
+ insinto "${GAMES_SYSCONFDIR}"
+ echo "$(games_get_libdir)"/${PN} > ${PN}.conf
+ doins ${PN}.conf || die "doins failed"
prepgamesdirs
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/doomsday/doomsday-1.9.0_beta5.ebuild,v 1.2 2007/03/13 01:29:19 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/doomsday/doomsday-1.9.0_beta5.ebuild,v 1.3 2007/04/09 17:52:06 nyhm Exp $
inherit toolchain-funcs games
-DCMAKE_INSTALL_PREFIX=/usr \
-Ddatadir="${GAMES_DATADIR}"/${PN} \
-Dbindir="${GAMES_BINDIR}" \
- -Dlibdir="${GAMES_LIBDIR}" \
+ -Dlibdir="$(games_get_libdir)" \
$(use openal && echo -DBUILDOPENAL=1) \
../ || die "cmake failed"
emake || die "emake failed"
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/nprquake-sdl/nprquake-sdl-1-r1.ebuild,v 1.11 2007/03/12 14:44:51 genone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/nprquake-sdl/nprquake-sdl-1-r1.ebuild,v 1.12 2007/04/09 17:54:20 nyhm Exp $
inherit eutils games
src_compile() {
make \
- GENTOO_LIBDIR="${GAMES_LIBDIR}/${PN}" \
+ GENTOO_LIBDIR="$(games_get_libdir)/${PN}" \
GENTOO_DATADIR="${GAMES_DATADIR}/quake1" \
OPTFLAGS="${CFLAGS}" \
release \
dodoc README CHANGELOG
newgamesbin NPRQuakeSrc/release*/bin/* nprquake-sdl \
|| die "newgamesbin failed"
- dodir "${GAMES_LIBDIR}/${PN}"
- cp -r build/* "${D}/${GAMES_LIBDIR}/${PN}/" || die "cp failed"
- cd "${D}/${GAMES_LIBDIR}/${PN}"
+ dodir "$(games_get_libdir)/${PN}"
+ cp -r build/* "${D}/$(games_get_libdir)/${PN}/" || die "cp failed"
+ cd "${D}/$(games_get_libdir)/${PN}"
mv dr_default.so default.so
ln -s sketch.so dr_default.so
prepgamesdirs
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-icculus/quake2-icculus-0.16.1-r1.ebuild,v 1.5 2007/03/13 01:30:25 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-icculus/quake2-icculus-0.16.1-r1.ebuild,v 1.6 2007/04/09 17:57:36 nyhm Exp $
inherit eutils toolchain-funcs games
BUILD_ALSA=$(yesno alsa) \
SDLDIR=/usr/lib \
DEFAULT_BASEDIR="${GAMES_DATADIR}/quake2" \
- DEFAULT_LIBDIR="${GAMES_LIBDIR}/${PN}${libsuffix}" \
+ DEFAULT_LIBDIR="$(games_get_libdir)/${PN}${libsuffix}" \
OPT_CFLAGS="${CFLAGS}" \
CC="$(tc-getCC)" \
|| die "make failed"
}
src_install() {
- local q2dir=${GAMES_LIBDIR}/${PN}
- local q2maxdir=${GAMES_LIBDIR}/${PN}-qmax
+ local q2dir=$(games_get_libdir)/${PN}
+ local q2maxdir=$(games_get_libdir)/${PN}-qmax
dodoc readme.txt README TODO "${FILESDIR}"/README-postinstall
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-icculus/quake2-icculus-0.16.1.ebuild,v 1.18 2007/03/13 01:30:25 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-fps/quake2-icculus/quake2-icculus-0.16.1.ebuild,v 1.19 2007/04/09 17:57:36 nyhm Exp $
inherit eutils toolchain-funcs games
BUILD_ALSA=$(yesno alsa) \
SDLDIR=/usr/lib \
DEFAULT_BASEDIR="${GAMES_DATADIR}/quake2" \
- DEFAULT_LIBDIR="${GAMES_LIBDIR}/${PN}${libsuffix}" \
+ DEFAULT_LIBDIR="$(games_get_libdir)/${PN}${libsuffix}" \
OPT_CFLAGS="${CFLAGS}" \
CC="$(tc-getCC)" \
|| die "make failed"
}
src_install() {
- local q2dir=${GAMES_LIBDIR}/${PN}
- local q2maxdir=${GAMES_LIBDIR}/${PN}-qmax
+ local q2dir=$(games_get_libdir)/${PN}
+ local q2maxdir=$(games_get_libdir)/${PN}-qmax
dodoc readme.txt README TODO "${FILESDIR}"/README-postinstall