Skip to content

Commit

Permalink
EAPI=5; minor tidying
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.24
  • Loading branch information
Michael Sterrett committed Dec 18, 2015
1 parent db024ad commit 3c0498e
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions games-action/koth/koth-0.8.0.ebuild
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4

EAPI=5
inherit eutils games

DESCRIPTION="Multiplayer, networked game of little tanks with really big weapons"
Expand All @@ -17,20 +18,16 @@ DEPEND="media-libs/libggi"
RDEPEND="${DEPEND}"

src_prepare() {
sed -i 's:-g -O2::' configure \
|| die "sed configure failed"
sed -i 's:-g -O2::' configure || die
cd src
epatch "${FILESDIR}"/${P}-gcc-3.4.patch
sed -i "s:/etc/koth:${GAMES_SYSCONFDIR}:" cfgfile.h \
|| die "sed cfgfile.h failed"
sed -i 's:(uint16):(uint16_t):' gfx.c gfx.h \
|| die "sed gfx.c gfx.h failed"
sed -i "s:/etc/koth:${GAMES_SYSCONFDIR}:" cfgfile.h || die
sed -i 's:(uint16):(uint16_t):' gfx.c gfx.h || die
}

DOCS="AUTHORS ChangeLog NEWS README doc/*.txt"

src_install() {
default
DOCS="AUTHORS ChangeLog NEWS README doc/*.txt" \
default
insinto "${GAMES_SYSCONFDIR}"
doins src/koth.cfg
prepgamesdirs
Expand Down

0 comments on commit 3c0498e

Please sign in to comment.