| 1 |
# Copyright 1999-2009 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/spectemu/spectemu-0.99.3.ebuild,v 1.12 2008/12/30 19:17:56 angelos Exp $
|
| 4 |
|
| 5 |
### Several versions of specemu exist, xspect & vgaspect, utilising X11
|
| 6 |
### and/or svgalib. libreadline provides optional runtime features.
|
| 7 |
### The ./configure script automagically figures out which binaries to build
|
| 8 |
### so the run/compiletime dependancies here are use dependant
|
| 9 |
|
| 10 |
inherit eutils
|
| 11 |
|
| 12 |
DESCRIPTION="48k ZX Spectrum Emulator"
|
| 13 |
HOMEPAGE="http://kempelen.iit.bme.hu/~mszeredi/spectemu/spectemu.html"
|
| 14 |
SRC_URI="http://www.inf.bme.hu/~mszeredi/spectemu/${P}.tar.gz"
|
| 15 |
|
| 16 |
LICENSE="GPL-2"
|
| 17 |
SLOT="0"
|
| 18 |
KEYWORDS="amd64 ppc x86"
|
| 19 |
IUSE="X readline svga"
|
| 20 |
|
| 21 |
DEPEND="X? ( >=x11-proto/xf86vidmodeproto-2.2.2
|
| 22 |
>=x11-proto/xextproto-7.0.2
|
| 23 |
>=x11-proto/xproto-7.0.4
|
| 24 |
>=x11-libs/libX11-1.0.0
|
| 25 |
>=x11-libs/libXext-1.0.0
|
| 26 |
>=x11-libs/libXxf86vm-1.0.0 )
|
| 27 |
readline? ( sys-libs/readline )"
|
| 28 |
RDEPEND="svga? ( media-libs/svgalib )"
|
| 29 |
|
| 30 |
src_unpack() {
|
| 31 |
unpack ${A}
|
| 32 |
cd "${S}"
|
| 33 |
epatch "${FILESDIR}"/${P}-qa.patch
|
| 34 |
}
|
| 35 |
|
| 36 |
src_compile() {
|
| 37 |
econf \
|
| 38 |
$(use_with readline) \
|
| 39 |
$(use_with X x)
|
| 40 |
emake CC="$(tc-getCC)" \
|
| 41 |
CPP="$(tc-getCPP)" \
|
| 42 |
|| die "emake failed"
|
| 43 |
}
|
| 44 |
|
| 45 |
src_install() {
|
| 46 |
# Parallel install bug #255777
|
| 47 |
emake -j1 install_root="${D}" install || die "emake install failed"
|
| 48 |
}
|