summaryrefslogtreecommitdiff
blob: fa8cca440e9a8d9aa4daae9090d842064283c7ea (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
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit eutils qmake-utils

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="
	dev-qt/qtcore:4
	dev-qt/qtgui:4
	dev-qt/qttest:4
	media-libs/alsa-lib"
RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}"/${P}-gcc45.patch
	"${FILESDIR}"/${P}-qt47.patch
	"${FILESDIR}"/${P}-buffer.patch
)

src_prepare() {
	default
	sed -i \
		-e 's:$(QTDIR)/bin/lrelease:lrelease:' \
		src/src.pro || die
}

src_configure() {
	eqmake4 qgo2.pro
}

src_install() {
	emake install INSTALL_ROOT="${D}"

	dodoc AUTHORS

	insinto /usr/share/${PN}/languages
	doins src/translations/*.qm
}