diff options
author | Michael Sterrett <mr_bones_@gentoo.org> | 2003-11-26 09:05:39 +0000 |
---|---|---|
committer | Michael Sterrett <mr_bones_@gentoo.org> | 2003-11-26 09:05:39 +0000 |
commit | 1b68ffdffce5b907747000ec35c87a6843e12811 (patch) | |
tree | 8a15ea5997ac09313e42206656df43d22e62205c /games-simulation | |
parent | initial commit; ebuild supplied by Keith Constable via bug 34068 (diff) | |
download | gentoo-2-1b68ffdffce5b907747000ec35c87a6843e12811.tar.gz gentoo-2-1b68ffdffce5b907747000ec35c87a6843e12811.tar.bz2 gentoo-2-1b68ffdffce5b907747000ec35c87a6843e12811.zip |
fix save directory permissions so saving games is allowed (bug 33573); more error checking/messages; use sed-4
Diffstat (limited to 'games-simulation')
-rw-r--r-- | games-simulation/simutrans/ChangeLog | 8 | ||||
-rw-r--r-- | games-simulation/simutrans/Manifest | 4 | ||||
-rw-r--r-- | games-simulation/simutrans/simutrans-0.82.10.ebuild | 20 |
3 files changed, 21 insertions, 11 deletions
diff --git a/games-simulation/simutrans/ChangeLog b/games-simulation/simutrans/ChangeLog index 90d90dbc6022..8a454b928e4c 100644 --- a/games-simulation/simutrans/ChangeLog +++ b/games-simulation/simutrans/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-simulation/simutrans # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/simutrans/ChangeLog,v 1.4 2003/09/18 19:20:18 msterret Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-simulation/simutrans/ChangeLog,v 1.5 2003/11/26 09:05:37 mr_bones_ Exp $ + + 26 Nov 2003; Michael Sterrett <mr_bones_@gentoo.org> + simutrans-0.82.10.ebuild: + fix save directory permissions so saving games is allowed (bug 33573) + more error checking/messages + use sed-4 18 Sep 2003; Michael Sterrett <msterret@gentoo.org> simutrans-0.81.0.ebuild, simutrans-0.82.10.ebuild, simutrans-0.82.3.ebuild, simutrans-0.82.5.ebuild: diff --git a/games-simulation/simutrans/Manifest b/games-simulation/simutrans/Manifest index 06d34bc445e7..e578212d562d 100644 --- a/games-simulation/simutrans/Manifest +++ b/games-simulation/simutrans/Manifest @@ -1,5 +1,5 @@ -MD5 9565194cd4086019f700817ecba60910 ChangeLog 1154 -MD5 2fb87a82e37a045a272083f1645191d2 simutrans-0.82.10.ebuild 879 +MD5 3f19f66d9dfd54fc50430518c12157bd ChangeLog 1354 +MD5 f64dc9f80444e1c484eef7233f5f0e38 simutrans-0.82.10.ebuild 1145 MD5 a30c9d4ce8f9629d6d7323eaab258343 metadata.xml 241 MD5 795020606265cd2b7c8fc6f33b919a2c files/digest-simutrans-0.82.10 140 MD5 9449a5568bb4e525cca3b46bcfa1b152 files/simutrans 46 diff --git a/games-simulation/simutrans/simutrans-0.82.10.ebuild b/games-simulation/simutrans/simutrans-0.82.10.ebuild index ee1ee80d8db8..8203559b91cc 100644 --- a/games-simulation/simutrans/simutrans-0.82.10.ebuild +++ b/games-simulation/simutrans/simutrans-0.82.10.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/games-simulation/simutrans/simutrans-0.82.10.ebuild,v 1.2 2003/09/18 19:20:18 msterret Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-simulation/simutrans/simutrans-0.82.10.ebuild,v 1.3 2003/11/26 09:05:37 mr_bones_ Exp $ inherit games @@ -15,19 +15,23 @@ LICENSE="as-is" SLOT="0" KEYWORDS="-* x86" -DEPEND="app-arch/unzip" +DEPEND="app-arch/unzip + >=sys-apps/sed-4" RDEPEND="media-libs/libsdl" S=${WORKDIR}/${PN} src_install() { - local dir=${GAMES_PREFIX_OPT}/${PN} - dodir ${dir} + local dir="${GAMES_PREFIX_OPT}/${PN}" - mv * ${D}/${dir}/ - - dogamesbin ${FILESDIR}/simutrans - dosed "s:GENTOO_DIR:${dir}:" ${GAMES_BINDIR}/simutrans + dogamesbin "${FILESDIR}/simutrans" || die "dogamesbin failed" + dodir "${dir}" || die "dodir failed" + cp -R * "${D}/${dir}/" || die "cp failed" + sed -i \ + -e "s:GENTOO_DIR:${dir}:" "${D}${GAMES_BINDIR}/simutrans" || \ + die "sed simutrans failed" prepgamesdirs + keepdir "${GAMES_PREFIX_OPT}/${PN}/save" + fperms 2775 "${GAMES_PREFIX_OPT}/${PN}/save" } |