summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2014-05-22 17:10:58 +0000
committerJulian Ospald <hasufell@gentoo.org>2014-05-22 17:10:58 +0000
commit39c768e8da4642a047acb357dbf9924a654a982d (patch)
tree1af7dd3264883c5833fa5f2fd2cbf3e0af6696f6 /games-rpg
parentversion bump (diff)
downloadgentoo-2-39c768e8da4642a047acb357dbf9924a654a982d.tar.gz
gentoo-2-39c768e8da4642a047acb357dbf9924a654a982d.tar.bz2
gentoo-2-39c768e8da4642a047acb357dbf9924a654a982d.zip
version bump
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
Diffstat (limited to 'games-rpg')
-rw-r--r--games-rpg/zsdx/ChangeLog8
-rw-r--r--games-rpg/zsdx/files/zsdx-1.8.0-paths.patch40
-rw-r--r--games-rpg/zsdx/zsdx-1.8.0.ebuild66
3 files changed, 113 insertions, 1 deletions
diff --git a/games-rpg/zsdx/ChangeLog b/games-rpg/zsdx/ChangeLog
index 0cf5703d4a40..45f748511552 100644
--- a/games-rpg/zsdx/ChangeLog
+++ b/games-rpg/zsdx/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-rpg/zsdx
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-rpg/zsdx/ChangeLog,v 1.3 2014/04/13 20:26:48 hasufell Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/zsdx/ChangeLog,v 1.4 2014/05/22 17:10:58 hasufell Exp $
+
+*zsdx-1.8.0 (22 May 2014)
+
+ 22 May 2014; Julian Ospald <hasufell@gentoo.org>
+ +files/zsdx-1.8.0-paths.patch, +zsdx-1.8.0.ebuild:
+ version bump
13 Apr 2014; Julian Ospald <hasufell@gentoo.org> zsdx-1.7.1.ebuild:
update license info wrt #507412
diff --git a/games-rpg/zsdx/files/zsdx-1.8.0-paths.patch b/games-rpg/zsdx/files/zsdx-1.8.0-paths.patch
new file mode 100644
index 000000000000..2b3a0554d89c
--- /dev/null
+++ b/games-rpg/zsdx/files/zsdx-1.8.0-paths.patch
@@ -0,0 +1,40 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Wed Jan 29 02:35:52 UTC 2014
+Subject: make paths modifiable
+
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -3,6 +3,10 @@
+
+ set(quest_name "zsdx")
+
++set(DATAROOTDIR "share" CACHE PATH "dataroot dir")
++set(DATADIR "${DATAROOTDIR}/solarus" CACHE PATH "data dir")
++set(BINDIR "bin" CACHE PATH "bin dir")
++
+ # data files list
+ file(GLOB_RECURSE data_files
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}/data
+@@ -47,7 +51,7 @@
+ add_custom_command(
+ OUTPUT ${quest_name}
+ COMMAND echo '\#!/bin/sh' > ${quest_name}
+- COMMAND echo 'solarus ${CMAKE_INSTALL_PREFIX}/share/solarus/${quest_name} $*' >> ${quest_name}
++ COMMAND echo 'solarus ${DATADIR}/${quest_name} $*' >> ${quest_name}
+ )
+ add_custom_target(${quest_name}_command
+ ALL
+@@ -56,11 +60,11 @@
+
+ # install the data archive
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/data.solarus
+- DESTINATION share/solarus/${quest_name}
++ DESTINATION ${DATADIR}/${quest_name}
+ )
+
+ # install the script
+ install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${quest_name}
+- DESTINATION bin
++ DESTINATION ${BINDIR}
+ )
+
diff --git a/games-rpg/zsdx/zsdx-1.8.0.ebuild b/games-rpg/zsdx/zsdx-1.8.0.ebuild
new file mode 100644
index 000000000000..ee7b3c29f40f
--- /dev/null
+++ b/games-rpg/zsdx/zsdx-1.8.0.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-rpg/zsdx/zsdx-1.8.0.ebuild,v 1.1 2014/05/22 17:10:58 hasufell Exp $
+
+EAPI=5
+
+inherit cmake-utils gnome2-utils games
+
+DESCRIPTION="A free 2D Zelda fangame"
+HOMEPAGE="http://www.solarus-games.org/"
+SRC_URI="http://www.zelda-solarus.com/downloads/${PN}/${P}.tar.gz"
+
+LICENSE="all-rights-reserved CC-BY-SA-3.0 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+RESTRICT="mirror"
+
+RDEPEND="games-engines/solarus"
+DEPEND="app-arch/zip"
+
+DOCS=( ChangeLog readme.txt )
+PATCHES=( "${FILESDIR}"/${P}-paths.patch )
+
+src_prepare() {
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DDATADIR="${GAMES_DATADIR}/solarus"
+ -DBINDIR="${GAMES_BINDIR}"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+ newicon -s 48 build/icons/${PN}_icon_48.png ${PN}.png
+ newicon -s 256 build/icons/${PN}_icon_256.png ${PN}.png
+
+ # install proper wrapper script
+ rm -f "${ED%/}${GAMES_BINDIR}"/${PN}
+ games_make_wrapper ${PN} "solarus \"${GAMES_DATADIR}/solarus/${PN}\""
+
+ make_desktop_entry "${PN}" "Zelda: Mystery of Solarus DX"
+ prepgamesdirs
+}
+
+pkg_preinst() {
+ games_pkg_preinst
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ gnome2_icon_cache_update
+}