summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Sterrett <mr_bones_@gentoo.org>2003-11-22 01:29:44 +0000
committerMichael Sterrett <mr_bones_@gentoo.org>2003-11-22 01:29:44 +0000
commit798e8dbf5c4070139b744debf06d4e02edb7a3d3 (patch)
treea493cac7ecbb95eb0cb6e98255cf945bba3926ff /games-emulation/psemu-cdr/psemu-cdr-1.8.ebuild
parentNew version, closes 34020. (diff)
downloadhistorical-798e8dbf5c4070139b744debf06d4e02edb7a3d3.tar.gz
historical-798e8dbf5c4070139b744debf06d4e02edb7a3d3.tar.bz2
historical-798e8dbf5c4070139b744debf06d4e02edb7a3d3.zip
fix the gtk2 support per Spider; more error messages/checking
Diffstat (limited to 'games-emulation/psemu-cdr/psemu-cdr-1.8.ebuild')
-rw-r--r--games-emulation/psemu-cdr/psemu-cdr-1.8.ebuild28
1 files changed, 11 insertions, 17 deletions
diff --git a/games-emulation/psemu-cdr/psemu-cdr-1.8.ebuild b/games-emulation/psemu-cdr/psemu-cdr-1.8.ebuild
index 4c338bb53c51..919832edeb56 100644
--- a/games-emulation/psemu-cdr/psemu-cdr-1.8.ebuild
+++ b/games-emulation/psemu-cdr/psemu-cdr-1.8.ebuild
@@ -1,9 +1,10 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-emulation/psemu-cdr/psemu-cdr-1.8.ebuild,v 1.1 2003/09/09 16:26:50 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-emulation/psemu-cdr/psemu-cdr-1.8.ebuild,v 1.2 2003/11/22 01:29:42 mr_bones_ Exp $
inherit games eutils
+S=${WORKDIR}
DESCRIPTION="PSEmu plugin to read from CD-ROM"
HOMEPAGE="http://www.pcsx.net/"
SRC_URI="http://linuzappz.pcsx.net/downloads/cdr-${PV}.tar.gz"
@@ -11,17 +12,12 @@ SRC_URI="http://linuzappz.pcsx.net/downloads/cdr-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
-IUSE="gtk gtk2"
+IUSE="gtk2"
-DEPEND="|| (
- gtk2? ( =x11-libs/gtk+-2* )
- gtk? ( =x11-libs/gtk+-1* )
- =x11-libs/gtk+-2*
- )
+DEPEND="gtk2? ( =x11-libs/gtk+-2* )
+ !gtk2? ( =x11-libs/gtk+-1* )
dev-util/pkgconfig"
-S=${WORKDIR}
-
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/${PV}-makefile-cflags.patch
@@ -31,22 +27,20 @@ src_compile() {
local gtk
if [ `use gtk2` ] ; then
gtk=gtk+2
- elif [ `use gtk` ] ; then
- gtk=gtk
else
- gtk=gtk+2
+ gtk=gtk
fi
cd src
- emake OPTFLAGS="${CFLAGS}" GUI="${gtk}" || die
+ emake OPTFLAGS="${CFLAGS}" GUI="${gtk}" || die "emake failed"
}
src_install() {
exeinto ${GAMES_LIBDIR}/psemu/plugins
- doexe src/libcdr-*
+ doexe src/libcdr-* || die "doexe failed (1)"
exeinto ${GAMES_LIBDIR}/psemu/cfg
- doexe src/cfg-gtk*/cfgCdr
+ doexe src/cfg-gtk*/cfgCdr || die "doexe failed(2)"
insinto ${GAMES_LIBDIR}/psemu/cfg
- doins cdr.cfg
- dodoc ReadMe.txt
+ doins cdr.cfg || die "doins failed"
+ dodoc ReadMe.txt || die "dodoc failed"
prepgamesdirs
}