blob: f392f160d20c60fbebba47c73b54ddbb0f5a9d00 (
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
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/qgo/qgo-1.5.4_p3.ebuild,v 1.6 2009/08/29 18:07:09 nixnut Exp $
EAPI=2
inherit eutils qt3 games
DESCRIPTION="A Qt Go client and SGF editor"
HOMEPAGE="http://qgo.sourceforge.net/"
SRC_URI="mirror://sourceforge/qgo/${P/_p/-r}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
DEPEND=">=x11-libs/qt-3.3:3"
S=${WORKDIR}/${P/_p*/}
src_prepare() {
epatch \
"${FILESDIR}"/${P}-parallel.patch \
"${FILESDIR}"/${P}-gcc43.patch
sed -i 's:$(datadir):/usr/share:' \
templates/Makefile.in \
|| die "sed Makefile.in failed"
sed -i "s:/usr/share:${GAMES_DATADIR}:" \
templates/*.desktop \
|| die "sed .desktop failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc AUTHORS ChangeLog NEWS README TODO
prepgamesdirs
}
pkg_postinst() {
games_pkg_postinst
elog "No go engines are emerged by default! If you want to play against"
elog "the computer, you can emerge gnugo and configure ${PN} to use it."
}
|