initial import of stuntrally ebuild from gamerlay with some fixes

This commit is contained in:
Sergey Popov 2013-04-22 15:07:19 +04:00
parent fd8a4e6a0d
commit 8a21007ddd
4 changed files with 97 additions and 0 deletions

View File

@ -0,0 +1,4 @@
AUX stuntrally-1.9-sharedir-absolute-path.patch 687 SHA256 97587e8551f9ba61c12a47d967e68bcfc620394b3b53e6685ef54d4b2446dcfa SHA512 80ca9e08afc94a13abea32caec90d3362a26f729eb920debaaa4a54a9eb66baf9b39ffd2b2d112e25efb30c8782e49dd2fb0ed9b38a0d7aee6792e814eac7721 WHIRLPOOL bfbb1dc279d732739f67572b665b71e3448519f528b1ff957007820dba85e5e092bd2e31ec25d0924f6d125d8bf63c1faac191eae19cd56aaa2335cc8e3893de
DIST StuntRally-1.9-sources.tar.xz 394374672 SHA256 dfd036c66ec9b7df4f5e3a7aa664dcc4860ebfaeedfb5c16eb6c999b4fa1715e SHA512 008871538eba089d17c9b10eec485751f180e2c488565887e04455a9fe7a4b6b010b9ea9c30d7183e15192a5cca9ea6b5f44c61857f358c94938678cbaab8245 WHIRLPOOL eef07267d42fdad0f835a1bfd15e96eda6ef0f088218c7b5b0e80df7ac311940ee0f42a8859653b6e68d142c72798fd4313c1e2623e0753d49eb10a1130e63e1
EBUILD stuntrally-1.9.ebuild 1418 SHA256 c443374f1a0e94ec8224a494722363279c4c550bc3df39dfaf2cd89fcf2ecdc9 SHA512 d2e7f3aad7db6ac83218f60c9602c749e46217fd654b0d133180475b4fdefab3b459c1d5bec431693d6646fbc83c5d750397deb0d5bc82be37515a650f108283 WHIRLPOOL a61f6ca3e3c3dd8ca147612544806c8ef86597647cea917c7bab82fdfcc05fb3ef8be7eaa12c6bcc236699df24b5d064879146b73bf0806c6eec4adf7048cd00
MISC metadata.xml 541 SHA256 b3f7a125a9309dabbdfc5c68589f46d7fd842327156a84bd55a5c1c792fe545f SHA512 b90200bde6868573a2e0130c0e2db4294d70cc3ac437bc8809d7109eedf9585689cb46e4d68ce44cbc5ab740c57fa14ccbb27f9b2d3d53961894b8acb7b9be4f WHIRLPOOL cf87e200f2e26f8cc3377476bf10267f5546c85c56c6ded789e64e7fb36ed7e2cc39dc9b60ff211c2d5cbbcae057757ef1410f664f94fc0c3f35ed53a3cac7ac

View File

@ -0,0 +1,16 @@
Draft version of patch, that makes possible to define SHARED_DATA_DIR as
absolute path.
Notes: possibly breaks loading of data from user's home folder
--- source/vdrift/pathmanager.cpp.orig 2013-04-22 14:44:09.626544667 +0400
+++ source/vdrift/pathmanager.cpp 2013-04-22 14:45:01.010546299 +0400
@@ -176,7 +176,7 @@
//dirs.push_back(user_data_dir);
// Adding relative path from installed executable
- dirs.push_back(execname().parent_path().parent_path() / shareDir);
+ dirs.push_back(shareDir);
// Adding relative path for running from sources
dirs.push_back(execname().parent_path().parent_path() / "data");
dirs.push_back(execname().parent_path().parent_path());

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer>
<email>mva@mva.name</email>
<description>
If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet.
</description>
<name>Vadim A. Misbakh-Soloviov</name>
</maintainer>
<longdescription>FIXME</longdescription>
<use>
<flag name="editor">Build and install maps editor</flag>
<flag name="game">Build and install game client itself</flag>
</use>
</pkgmetadata>

View File

@ -0,0 +1,61 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
MY_P="StuntRally-${PV}-sources"
inherit cmake-utils eutils games
DESCRIPTION="Rally game focused on closed rally tracks with possible stunt elements (jumps, loops, pipes)."
HOMEPAGE="http://code.google.com/p/vdrift-ogre/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.xz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dedicated +game editor"
S="${WORKDIR}/${MY_P}"
RDEPEND="game? (
dev-games/ogre[cg,boost,ois,freeimage,opengl,zip]
dev-games/mygui
media-libs/libsdl:0
media-libs/libvorbis
media-libs/libogg
)
dev-libs/boost
net-libs/enet:1.3
virtual/libstdc++"
DEPEND="${RDEPEND}"
REQUIRED_USE="editor? ( game )"
DOCS=( Readme.txt )
PATCHES=( "${FILESDIR}/${P}-sharedir-absolute-path.patch" )
src_configure() {
local mycmakeargs=(
-DSHARE_INSTALL="${GAMES_DATADIR}/${PN}"
$(cmake-utils_use_build dedicated MASTER_SERVER)
$(cmake-utils_use_build game GAME)
$(cmake-utils_use_build editor EDITOR)
)
cmake-utils_src_configure
}
src_compile() {
cmake-utils_src_compile
}
src_install() {
cmake-utils_src_install
use !editor && rm "${ED}/usr/share/applications/sr-editor.desktop" || die "remove of sr-editor.desktop failed"
use !game && rm "${ED}/usr/share/applications/${PN}.desktop" || die "remove of ${PN}.desktop failed"
prepgamesdirs
}