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 78f8b90 commit 517228d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions games-arcade/cdogs-sdl/cdogs-sdl-0.4-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=4
EAPI=5
inherit eutils games

CDOGS_DATA="cdogs-data-2007-07-06"
Expand All @@ -11,31 +11,30 @@ HOMEPAGE="http://lumaki.com/code/cdogs"
SRC_URI="http://icculus.org/cdogs-sdl/files/src/${P}.tar.bz2
http://icculus.org/cdogs-sdl/files/data/${CDOGS_DATA}.tar.bz2"

LICENSE="GPL-2"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""

DEPEND="media-libs/libsdl
DEPEND="media-libs/libsdl[video]
media-libs/sdl-mixer"
RDPEND=${DEPEND}

S=${WORKDIR}/${P}/src

src_unpack() {
unpack ${A}
mv ${CDOGS_DATA} ${P}/data || die "Failed moving data around"
mv ${CDOGS_DATA} ${P}/data || die
}

src_prepare() {
sed -i \
-e "/^CF_OPT/d" \
-e "/^CC/d" \
Makefile \
|| die "sed failed"
Makefile || die
sed -i \
-e "/\bopen(/s/)/, 0666)/" \
files.c \
|| die "sed failed"
files.c || die
epatch "${FILESDIR}"/${P}-64bit.patch
}

Expand Down

0 comments on commit 517228d

Please sign in to comment.