1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils cmake-utils git-2 games
9 DESCRIPTION="Building single/multiplayer game (engine)"
10 HOMEPAGE="http://c55.me/minetest/"
13 EGIT_REPO_URI="git://github.com/celeron55/${PN}.git"
14 EGIT_COMMIT="${PV%_pre*}.dev-${PV#*_pre}"
16 LICENSE="GPL-2 CC-BY-SA-3.0"
19 KEYWORDS="~amd64 ~x86"
20 IUSE="+client nls +server"
22 RDEPEND="app-arch/bzip2
25 >=dev-libs/jthread-1.2
33 nls? ( virtual/libintl )
36 >=dev-games/irrlicht-1.7
37 nls? ( sys-devel/gettext )
45 epatch "${FILESDIR}"/${P}-{cmake,jthread,lua,sharepath}.patch
46 rm -r src/{jthread,lua,sqlite} || die
52 -DSHAREDIR="${GAMES_DATADIR}/${PN}"
53 -DBINDIR="${GAMES_BINDIR}"
54 $(cmake-utils_use_build client CLIENT)
55 $(cmake-utils_use_build server SERVER)
56 $(cmake-utils_use_enable nls GETTEXT)
59 cmake-utils_src_configure
63 cmake-utils_src_install