blob: 5522849846fd35231857882582236496f9e1254f (
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
50
51
52
53
54
55
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-board/mahjongg3d/mahjongg3d-0.96.ebuild,v 1.13 2009/02/04 19:20:27 mr_bones_ Exp $
EAPI=2
inherit eutils qt3 kde games
DESCRIPTION="An implementation of the classical chinese game Mah Jongg with 3D OpenGL graphics"
HOMEPAGE="http://www.reto-schoelly.de/mahjongg3d/"
SRC_URI="http://www.reto-schoelly.de/${PN}/${P}.tar.bz2
http://www.reto-schoelly.de/mahjongg3d/${P}-patch2.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND="x11-libs/qt:3[opengl]
virtual/opengl"
S=${WORKDIR}/${PN}.release
src_unpack() {
unpack ${P}.tar.bz2
cd "${S}"
unpack ${P}-patch2.tar.bz2
}
src_prepare() {
sed -i \
-e "/GAMEDATA_BASE_PATH/ s:\.:${GAMES_DATADIR}/${PN}:" \
src/gamedata_path.h \
|| die "sed failed"
#bug #135885
sed -i \
-e 's/openglwidget.h/OpenGLWidget.h/' src/MainDialogBase.ui \
|| die "sed failed"
}
src_configure() {
eqmake3 mahjongg3d.pro
}
src_compile() {
kde_src_compile none
emake || die "emake failed"
}
src_install () {
dogamesbin bin/mahjongg3d || die "dogamesbin failed"
dodir "${GAMES_DATADIR}/${PN}"
cp -r bin/{[a-l]*,t*} "${D}${GAMES_DATADIR}/${PN}" || die "cp failed"
dodoc README Changelog
prepgamesdirs
}
|