summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'games-simulation/vegastrike-data/vegastrike-data-9999.ebuild')
-rw-r--r--games-simulation/vegastrike-data/vegastrike-data-9999.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/games-simulation/vegastrike-data/vegastrike-data-9999.ebuild b/games-simulation/vegastrike-data/vegastrike-data-9999.ebuild
index 8c1c5f8..5584443 100644
--- a/games-simulation/vegastrike-data/vegastrike-data-9999.ebuild
+++ b/games-simulation/vegastrike-data/vegastrike-data-9999.ebuild
@@ -52,6 +52,12 @@ src_unpack() {
-e "s!/usr/local/lib/man!/usr/share/man!" \
"${S}/data/documentation/vegastrike.1" \
|| die "sed data/documentation/vegastrike.1 failed"
+
+ # Adding DATADIR to config
+ sed -i \
+ -e "s!<section name=\"data\">!<section name=\"data\"><var name=\"datadir\" value=\"${GAMES_DATADIR}/${PN}/data\" />!" \
+ "${S}/data/vegastrike.config" \
+ || die "sed data/vegastrike.config failed"
}
src_compile() {