All pastes #2097961 Raw Edit

psemu-peopsspu-1.0.9.ebuild

public shellscript v1 · immutable
#2097961 ·published 2012-01-01 13:35 UTC
rendered paste body
# Copyright 1999-2008 Gentoo Foundation# Distributed under the terms of the GNU General Public License v2# $Header: $EAPI=3inherit autotools eutils gamesDESCRIPTION="P.E.Op.S Sound Emulation (SPU) PSEmu Plugin"HOMEPAGE="http://sourceforge.net/projects/peops/"SRC_URI="mirror://sourceforge/peops/PeopsSpu${PV//./}.tar.gz"LICENSE="GPL-2"SLOT="0"KEYWORDS="amd64 x86"IUSE="alsa oss"DEPEND="alsa? ( media-libs/alsa-lib )		x11-libs/gtk+:1"S="${WORKDIR}"/srcpkg_setup() {	if use !alsa && use !oss ; then		die "must select oss or alsa"	fi}src_unpack() {	default	cd src/linuxcfg	unpack ./spucfg.tar.gz}src_prepare() {	epatch "${FILESDIR}"/makefile.patch	cd linuxcfg	emake maintainer-clean || die	rm {,src/}Makefile.in aclocal.m4 configure || die	edos2unix $(find -name '*.[ch]') *.in	eautoreconf}src_configure() {	cd linuxcfg	econf	epatch "${FILESDIR}"/callbacks.patch}src_compile() {	if use oss ; then		emake USEALSA=FALSE || die "oss build failed"	fi	if use alsa ; then		# clean doesn't remove oss-build		emake clean || die		emake USEALSA=TRUE || die "alsa build failed"	fi	cd linuxcfg	emake || die "linuxcfg failed"}src_install() {	exeinto "$(games_get_libdir)"/psemu/plugins	if use alsa ; then		doexe libspuPeopsALSA* || die	fi	if use oss ; then		doexe libspuPeopsOSS* || die	fi	exeinto "$(games_get_libdir)"/psemu/cfg	newexe linuxcfg/src/spucfg cfgPeopsOSS || die	insinto "$(games_get_libdir)"/psemu/cfg	doins "${WORKDIR}"/spuPeopsOSS.cfg || die	dodoc "${WORKDIR}"/*.txt || die	prepgamesdirs}