summaryrefslogtreecommitdiff
path: root/app-emulation/spectemu/spectemu-0.99.3-r2.ebuild
blob: 4b6cd315e63b9f67d1c4111c3f051cbce5eb90a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="48k ZX Spectrum Emulator"
HOMEPAGE="http://kempelen.iit.bme.hu/~mszeredi/spectemu/spectemu.html"
SRC_URI="http://www.inf.bme.hu/~mszeredi/spectemu/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="readline"

RDEPEND="
	x11-libs/libX11
	x11-libs/libXext
	x11-libs/libXxf86vm
	readline? ( sys-libs/readline:= )
"

DEPEND="
	${RDEPEND}
	x11-base/xorg-proto
"

PATCHES=(
	"${FILESDIR}"/${P}-automagic.patch
	"${FILESDIR}"/${P}-r2-build.patch
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	local myconf=(
		--with-svga=no
		--with-x=yes
		$(use_with readline)
	)

	econf "${myconf[@]}"
}

src_compile() {
	default
	emake tapeout
}

src_install() {
	emake install_root="${ED}" install
	dobin tapeout
}