|
From: Yoda-JM <yo...@us...> - 2009-11-17 14:26:51
|
Module: performous
Branch: master
Commit: f570a1f77f22177f84709769a14f2ed024060b7d
Author: Vincent Le Ligeour <yo...@us...>
Date: Tue Nov 17 15:26:37 2009 +0100
Fixed shared data dir installation path
---
game/fs.cc | 3 ++-
.../games-arcade/performous/performous-9999.ebuild | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/game/fs.cc b/game/fs.cc
index 090e47e..0bd60b0 100644
--- a/game/fs.cc
+++ b/game/fs.cc
@@ -1,5 +1,6 @@
#include "fs.hh"
+#include "config.hh"
#include "configuration.hh"
#include <plugin++/execname.hpp>
#include <cstdlib>
@@ -72,7 +73,7 @@ std::string getPath(fs::path const& filename) {
if (!initialized) {
initialized = true;
fs::path shortDir = "performous";
- fs::path shareDir = "share/games" / shortDir;
+ fs::path shareDir = SHARED_DATA_DIR;
#ifdef _WIN32
// Add APPLIC~1 (user-specific application data) FIXME: Not tested
{
diff --git a/portage-overlay/games-arcade/performous/performous-9999.ebuild b/portage-overlay/games-arcade/performous/performous-9999.ebuild
index 8e0fcb7..c791a29 100644
--- a/portage-overlay/games-arcade/performous/performous-9999.ebuild
+++ b/portage-overlay/games-arcade/performous/performous-9999.ebuild
@@ -69,7 +69,7 @@ src_configure() {
$(cmake-utils_use_enable tools TOOLS)
$(cmake-utils_use_enable editor EDITOR)
-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}
- -DSHARE_INSTALL=share/
+ -DSHARE_INSTALL=share/performous
-DLIBDA_AUTODETECT_PLUGINS=false
-DLIBDA_PLUGIN_TESTING=false
-DCMAKE_BUILD_TYPE=Release"
|