# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-emulation/atari++/atari++-1.58.ebuild,v 1.6 2010/01/05 19:41:15 josejx Exp $ EAPI=2 inherit games MY_P=${P} MY_PN=${PN} MY_PV=${PV} DESCRIPTION="Atari 800/XL/XE emulator" HOMEPAGE="http://www.xl-project.com/" SRC_URI="http://www.xl-project.com/download/${MY_PN}_${MY_PV}.tar.gz mirror://sourceforge/atari800/xf25.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha ~amd64 ppc sparc ~x86" IUSE="readline sdl" RDEPEND="sdl? ( >=media-libs/libsdl-1.2.0 ) !sdl? ( x11-libs/libX11 ) media-libs/libpng readline? ( sys-libs/readline )" DEPEND="${RDEPEND} !sdl? ( x11-libs/libXt x11-libs/libX11 x11-proto/xextproto x11-proto/xproto ) app-arch/unzip" S=${WORKDIR}/${MY_PN} src_unpack() { unpack ${A} cd "${S%}" epatch "${FILESDIR}/${MY_PN}-stdint.patch" } src_compile() { egamesconf || die "egamesconf failed" emake || die "emake failed" } src_install () { dogamesbin atari++ || die "dogamesbin failed" newman atari++.man atari++.6 manual/* dodoc README* ARCHITECTURE COPYRIGHT CREDITS manual/* insinto "${GAMES_DATADIR}/${PN}" doins "${WORKDIR}/"*.ROM || die "doins failed (ROM)" insinto "${GAMES_SYSCONFDIR}" doins "${FILESDIR}"/atari++.conf || die "doins failed (cfg)" prepgamesdirs } pkg_postinst() { games_pkg_postinst elog "An example config has been installed to "${GAMES_SYSCONFDIR}". Please" elog " read the atari++ man page for further instructions." elog "" einfo "If you're interested in using *real* (physical) Atari disk drives, please" einfo " visit http://www.horus.com/~hias/atari/ for the use of the AtariSIO module." einfo " You have to re-emerge atari++ when AtariSIO has been installed." einfo "" }