summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2014-08-07 21:01:19 +0000
committerJulian Ospald <hasufell@gentoo.org>2014-08-07 21:01:19 +0000
commit7819dcb9530ffc9e38f7cbe1497cf83b90a05093 (patch)
tree2ae170fcbbdd2035ae6999c14d0a81e537ca91e7 /games-engines/solarus
parentStable on armd64, arm and x86 (diff)
downloadgentoo-2-7819dcb9530ffc9e38f7cbe1497cf83b90a05093.tar.gz
gentoo-2-7819dcb9530ffc9e38f7cbe1497cf83b90a05093.tar.bz2
gentoo-2-7819dcb9530ffc9e38f7cbe1497cf83b90a05093.zip
version bump
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
Diffstat (limited to 'games-engines/solarus')
-rw-r--r--games-engines/solarus/ChangeLog8
-rw-r--r--games-engines/solarus/files/solarus-1.2.1-paths.patch15
-rw-r--r--games-engines/solarus/solarus-1.2.1.ebuild52
3 files changed, 74 insertions, 1 deletions
diff --git a/games-engines/solarus/ChangeLog b/games-engines/solarus/ChangeLog
index e951ad23fc3f..d7e486a6b307 100644
--- a/games-engines/solarus/ChangeLog
+++ b/games-engines/solarus/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-engines/solarus
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-engines/solarus/ChangeLog,v 1.2 2014/05/22 17:10:02 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-engines/solarus/ChangeLog,v 1.3 2014/08/07 21:01:19 hasufell Exp $
+
+*solarus-1.2.1 (07 Aug 2014)
+
+ 07 Aug 2014; Julian Ospald <hasufell@gentoo.org>
+ +files/solarus-1.2.1-paths.patch, +solarus-1.2.1.ebuild:
+ version bump
*solarus-1.2.0 (22 May 2014)
diff --git a/games-engines/solarus/files/solarus-1.2.1-paths.patch b/games-engines/solarus/files/solarus-1.2.1-paths.patch
new file mode 100644
index 000000000000..23b7635a1d0c
--- /dev/null
+++ b/games-engines/solarus/files/solarus-1.2.1-paths.patch
@@ -0,0 +1,15 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Wed Jan 29 02:31:24 UTC 2014
+Subject: make paths modifiable
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -6,7 +6,7 @@
+ endif()
+
+ set(CMAKE_MODULE_PATH "${SOLARUS_ENGINE_SOURCE_DIR}/cmake/modules/")
+-set(SOLARUS_INSTALL_DESTINATION "bin")
++set(SOLARUS_INSTALL_DESTINATION "bin" CACHE PATH "binary install destination")
+
+ option(SOLARUS_USE_LUAJIT "Use LuaJIT instead of default Lua (recommended)" ON)
+
diff --git a/games-engines/solarus/solarus-1.2.1.ebuild b/games-engines/solarus/solarus-1.2.1.ebuild
new file mode 100644
index 000000000000..77c68d9ab643
--- /dev/null
+++ b/games-engines/solarus/solarus-1.2.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-engines/solarus/solarus-1.2.1.ebuild,v 1.1 2014/08/07 21:01:19 hasufell Exp $
+
+EAPI=5
+
+inherit cmake-utils games
+
+DESCRIPTION="An open-source Zelda-like 2D game engine"
+HOMEPAGE="http://www.solarus-games.org/"
+SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}-src.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="luajit"
+
+RDEPEND="
+ dev-games/physfs
+ media-libs/libmodplug
+ >=media-libs/libsdl2-2.0.1[X,joystick,video]
+ media-libs/libvorbis
+ media-libs/openal
+ media-libs/sdl2-image[png]
+ >=media-libs/sdl2-ttf-2.0.12
+ luajit? ( dev-lang/luajit:2 )
+ !luajit? ( dev-lang/lua )"
+DEPEND="${RDEPEND}"
+
+DOCS=( ChangeLog readme.txt )
+PATCHES=( "${FILESDIR}"/${P}-paths.patch )
+
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DSOLARUS_INSTALL_DESTINATION="${GAMES_BINDIR}"
+ $(cmake-utils_use luajit SOLARUS_USE_LUAJIT)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ prepgamesdirs
+}