summaryrefslogtreecommitdiff
blob: 3d79b002329ea731af86146827a7b87ba02f02dc (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/glukalka/glukalka-0.90.1.ebuild,v 1.2 2004/06/24 22:32:18 agriffis Exp $

DESCRIPTION="Emulator of ZX Spectrum 48K/128K and clones"
HOMEPAGE="http://glukalka.sourceforge.net"

# set MY_P to glukalka-0.90-1 instead of original glukalka-0.90.1
MY_P=${PN}-${PV%.*}-${PV##*.}

SRC_URI="mirror://sourceforge/glukalka/${MY_P}.tar.bz2"
RESTRICT="nomirror"
LICENSE="GPL-2"
KEYWORDS="~x86 ~ppc"
SLOT="0"
IUSE=""

RDEPEND="x11-libs/openmotif
	virtual/x11
	virtual/glibc"

DEPEND="${RDEPEND}
	>=sys-apps/sed-4
	sys-devel/gcc"

S="${WORKDIR}/${PN}"

src_unpack() {
	unpack ${A}
	cd ${S}

	sed -i \
		-e "s:-O20:${CFLAGS}:" \
		-e "s:-O2:${CFLAGS}:" configure || \
			die "sed configure failed"

	sed -i \
		-e "s:\"resources/:\"/usr/share/${PN}/resources/:" \
		-e "s:\"icons/:\"/usr/share/${PN}/icons/:" modifed.c || \
			die "sed modifed.c failed"
}

src_install() {
	dobin glukalka
	dodir /usr/share/glukalka
	cp -R resources ${D}/usr/share/glukalka
	cp -R icons ${D}/usr/share/glukalka

	dodoc doc/{changelog,todo,copying}
}