Skip to content

Commit

Permalink
games-simulation/simutrans: Fixed broken rm call in src_prepare.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.6, Repoman-2.3.2
  • Loading branch information
Lars Wendler committed Jul 5, 2017
1 parent 49f8120 commit ece5f6c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions games-simulation/simutrans/simutrans-0.120.2.2.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
Expand Down Expand Up @@ -50,17 +50,15 @@ src_prepare() {
default

strip-flags # bug #293927
echo "BACKEND=mixer_sdl
COLOUR_DEPTH=16
OSTYPE=linux
VERBOSE=1" > config.default || die
printf "BACKEND=mixer_sdl\nCOLOUR_DEPTH=16\nOSTYPE=linux\nVERBOSE=1" \
> config.default || die

# make it look in the install location for the data
sed -i \
-e "s:argv\[0\]:\"/usr/share/${PN}/\":" \
simmain.cc || die

rm -v simutrans/{simutrans,*.txt} || die
rm simutrans/*.txt || die
}

src_install() {
Expand Down

0 comments on commit ece5f6c

Please sign in to comment.