summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-action/minetest/minetest-0.4_pre20120408.ebuild')
-rw-r--r--games-action/minetest/minetest-0.4_pre20120408.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/games-action/minetest/minetest-0.4_pre20120408.ebuild b/games-action/minetest/minetest-0.4_pre20120408.ebuild
new file mode 100644
index 000000000..fad046caf
--- /dev/null
+++ b/games-action/minetest/minetest-0.4_pre20120408.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit eutils cmake-utils git-2 games
+
+DESCRIPTION="Building single/multiplayer game (engine)"
+HOMEPAGE="http://c55.me/minetest/"
+EGIT_REPO_URI="git://github.com/celeron55/${PN}.git"
+EGIT_COMMIT="${PV%_pre*}.dev-${PV#*_pre}"
+
+LICENSE="GPL-2 CCPL-Attribution-ShareAlike-3.0"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+IUSE="+client nls +server"
+
+RDEPEND="app-arch/bzip2
+ dev-db/sqlite:3
+ dev-lang/lua
+ >=dev-libs/jthread-1.2
+ media-libs/libpng:0
+ media-libs/libvorbis
+ sys-libs/zlib
+ x11-libs/libX11
+ x11-libs/libXxf86vm
+ virtual/jpeg
+ virtual/opengl
+ nls? ( virtual/libintl )
+ "
+DEPEND="${RDEPEND}
+ >=dev-games/irrlicht-1.7
+ nls? ( sys-devel/gettext )
+ "
+
+src_unpack() {
+ git-2_src_unpack
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-{cmake,jthread,lua,sharepath}.patch
+ rm -r src/{jthread,lua,sqlite} || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DRUN_IN_PLACE=0
+ -DSHAREDIR="${GAMES_DATADIR}/${PN}"
+ -DBINDIR="${GAMES_BINDIR}"
+ $(cmake-utils_use_build client CLIENT)
+ $(cmake-utils_use_build server SERVER)
+ $(cmake-utils_use_enable nls GETTEXT)
+ )
+
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ prepgamesdirs
+}