-# 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-emulation/pcsx2/pcsx2-0.6.ebuild,v 1.7 2006/02/11 19:55:21 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/pcsx2/pcsx2-0.6.ebuild,v 1.8 2007/04/06 18:53:44 nyhm Exp $
inherit eutils games
dogamesbin "${FILESDIR}/pcsx2" || die "dogamesbin failed"
sed -i \
-e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \
- -e "s:GAMES_LIBDIR:${GAMES_LIBDIR}:" \
+ -e "s:GAMES_LIBDIR:$(games_get_libdir):" \
"${D}/${GAMES_BINDIR}/pcsx2" \
|| die "sed failed"
- dodir "${GAMES_LIBDIR}/ps2emu/Langs"
- cp -r Intl/Langs/* "${D}/${GAMES_LIBDIR}/ps2emu/Langs/" || die "cp failed"
+ dodir "$(games_get_libdir)/ps2emu/Langs"
+ cp -r Intl/Langs/* "${D}/$(games_get_libdir)/ps2emu/Langs/" || die "cp failed"
dodoc Docs/*.txt
prepgamesdirs
}
-# 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-emulation/pcsx2/pcsx2-0.8.1.ebuild,v 1.7 2006/05/02 21:53:46 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/pcsx2/pcsx2-0.8.1.ebuild,v 1.8 2007/04/06 18:53:44 nyhm Exp $
inherit eutils toolchain-funcs games
dogamesbin "${FILESDIR}/pcsx2" || die "dogamesbin failed"
sed -i \
-e "s:GAMES_BINDIR:${GAMES_BINDIR}:" \
- -e "s:GAMES_LIBDIR:${GAMES_LIBDIR}:" \
+ -e "s:GAMES_LIBDIR:$(games_get_libdir):" \
"${D}/${GAMES_BINDIR}/pcsx2" \
|| die "sed failed"
dodoc Docs/*.txt
-# Copyright 1999-2004 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/ps2emu-cddvdlinuz/ps2emu-cddvdlinuz-0.3-r1.ebuild,v 1.6 2004/11/03 00:16:55 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/ps2emu-cddvdlinuz/ps2emu-cddvdlinuz-0.3-r1.ebuild,v 1.7 2007/04/06 18:56:48 nyhm Exp $
inherit games
DEPEND="${RDEPEND}
app-arch/unzip"
-S="${WORKDIR}/CDVDlinuz"
+S=${WORKDIR}/CDVDlinuz
src_unpack() {
unpack ${A}
+ cd "${S}"
sed -i \
- -e 's:-O2 -fomit-frame-pointer:$(OPTFLAGS):' ${S}/Src/Makefile \
+ -e 's:-O2 -fomit-frame-pointer:$(OPTFLAGS):' Src/Makefile \
|| die "sed failed"
}
src_install() {
dodoc ReadMe.txt
- exeinto ${GAMES_LIBDIR}/ps2emu/plugins
- newexe Src/libCDVDlinuz.so libCDVDlinuz-${PV}.so
+ exeinto "$(games_get_libdir)"/ps2emu/plugins
+ newexe Src/libCDVDlinuz.so libCDVDlinuz-${PV}.so || die "newexe failed"
prepgamesdirs
}