summaryrefslogtreecommitdiff
blob: 2b8440260a7da7cc5c9ab2c589e518ff75d4602b (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/kcheckers/kcheckers-0.6.ebuild,v 1.1 2005/07/09 21:26:27 greg_g Exp $

inherit qt3 games

DESCRIPTION="Qt version of the classic boardgame checkers."
HOMEPAGE="http://kcheckers.org/"
SRC_URI="http://kcheckers.org/${P}.tar.gz"
LICENSE="GPL-2"

SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE=""

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

pkg_setup() {
	qt3_pkg_setup
	games_pkg_setup
}

src_compile() {
	sed -i -e 's,/usr/local,/usr,' config.h kcheckers.pro

	${QTDIR}/bin/qmake || die "qmake failed"
	emake || die "emake failed"
}

src_install() {
	dogamesbin kcheckers || die "dogamesbin failed"
	dodoc AUTHORS ChangeLog README TODO

	insinto /usr/share/kcheckers
	doins i18n/kcheckers_de.qm i18n/kcheckers_ru.qm kcheckers.pdn

	prepgamesdirs
}