diff options
Diffstat (limited to 'games-emulation/raine/raine-0.42.0.ebuild')
-rw-r--r-- | games-emulation/raine/raine-0.42.0.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/games-emulation/raine/raine-0.42.0.ebuild b/games-emulation/raine/raine-0.42.0.ebuild new file mode 100644 index 000000000000..32d4b67353b0 --- /dev/null +++ b/games-emulation/raine/raine-0.42.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-emulation/raine/raine-0.42.0.ebuild,v 1.1 2004/11/29 20:00:39 mr_bones_ Exp $ + +inherit games + +DESCRIPTION="R A I N E M680x0 Arcade Emulation" +HOMEPAGE="http://www.rainemu.com/" +SRC_URI="http://www.rainemu.com/html/archive/raines-${PV}.tar.bz2 + http://www.rainemu.com/html/archive/rainedocs.zip + http://www.rainemu.com/html/archive/icons.zip" + +LICENSE="Artistic" +SLOT="0" +KEYWORDS="~x86" +IUSE="static debug nls kde" + +RDEPEND="virtual/libc + media-libs/allegro + sys-libs/zlib + media-libs/svgalib" +DEPEND="${RDEPEND} + app-arch/unzip" + +src_unpack() { + unpack ${A} + cd "${S}" + echo > detect-cpu + echo > cpuinfo +} + +src_compile() { + local myopts= + use static \ + && myopts="${myopts} STATIC=1" \ + || myopts="${myopts} STATIC=" + use debug \ + && myopts="${myopts} RAINE_DEBUG=1" \ + || myopts="${myopts} RAINE_DEBUG=" + emake \ + _MARCH="${CFLAGS}" \ + OSTYPE=linux \ + RAINE_LINUX=1 \ + ${myopts} || die +} + +src_install() { + make prefix="${D}" install || die "make install failed" + dogamesbin "${D}/usr/games/raine" + rm "${D}/usr/games/raine" + + use nls || rm -rf "${D}/usr/share/raine/languages" + + dodoc "${WORKDIR}/raine.txt" + + insinto /usr/share/icons + doins "${WORKDIR}/"*.png + if use kde ; then + insinto /usr/share/applnk/Games + doins "${FILESDIR}/Raine.desktop" + fi + prepgamesdirs +} |