blob: 6a8bf18f4edc4accf187acf96122d4df842285d3 (
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
|
# Copyright 1999-2010 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_p20100322.ebuild,v 1.6 2010/09/03 17:22:09 nyhm Exp $
EAPI=2
inherit eutils qt4-r2 games
DESCRIPTION="An ancient boardgame, very common in Japan, China and Korea"
HOMEPAGE="http://qgo.sourceforge.net/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="media-libs/alsa-lib
x11-libs/qt-core:4
x11-libs/qt-gui:4
x11-libs/qt-test:4"
src_prepare() {
sed -i \
-e "/QGO_INSTALL_PATH/s:/usr/share:${GAMES_DATADIR}:" \
-e "/QGO_INSTALL_BIN_PATH/s:/usr/bin:${GAMES_BINDIR}:" \
-e 's:$(QTDIR)/bin/lrelease:lrelease:' \
src/src.pro || die
sed -i \
-e "/TRANSLATIONS_PATH_PREFIX/s:/usr/share:${GAMES_DATADIR}:" \
src/defines.h || die
epatch "${FILESDIR}"/${P}-gcc45.patch
}
src_configure() {
eqmake4 qgo2.pro
}
src_install() {
qt4-r2_src_install
dodoc AUTHORS
insinto "${GAMES_DATADIR}"/qgo/languages
doins src/translations/*.qm || die
prepgamesdirs
}
|