summaryrefslogtreecommitdiff
blob: 447c0d939478ff528b1f2a469ef6d4e5bb5b6e4c (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-emulation/qmamecat/qmamecat-0.44.46.ebuild,v 1.6 2006/02/11 04:29:09 joshuabaergen Exp $

inherit kde

MY_PV="${PV/46/b46}"
DESCRIPTION="QT mame catalog and frontend"
HOMEPAGE="http://www.mameworld.net/mamecat/"
SRC_URI="http://www.mameworld.net/mamecat/snapshots/qmamecat-${MY_PV}.tar.bz2"

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

DEPEND="=x11-libs/qt-3*"

S=${WORKDIR}/${PN}

src_unpack() {
	unpack ${A}
	cd "${S}"
	# bug #89926 - we lub magic numbers
	sed -i \
		-e 's/5000/6000/' \
		-e 's/101/120/' \
		src/include/macros.hxx \
		|| die "sed failed"
}

src_compile() {
	# See bug #41006
	kde_src_compile none

	emake -j1 COPTIM="${CFLAGS}" || die "emake failed"
}

src_install() {
	rm bin/{Makefile,make.cfg}
	dobin bin/*
	doman doc/*.6
	rm doc/{*.6,COPYING}
	dodoc doc/*
}