Skip to content

Commit

Permalink
sys-apps/spu-tools: Fix building with GCC-5.
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.3.1
  • Loading branch information
Jeroen Roovers committed Oct 10, 2016
1 parent c02c636 commit 2c987ea
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions sys-apps/spu-tools/spu-tools-2.3.0.136.ebuild
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Copyright 1999-2015 Gentoo Foundation
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit eutils toolchain-funcs
inherit eutils flag-o-matic toolchain-funcs

MY_P=${P/_p/-}

Expand All @@ -15,11 +15,14 @@ SRC_URI="mirror://sourceforge/libspe/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="ppc ppc64"
IUSE=""

RDEPEND="sys-libs/ncurses:0="
DEPEND="${RDEPEND}
sys-apps/help2man"
RDEPEND="
sys-libs/ncurses:0=
"
DEPEND="
${RDEPEND}
sys-apps/help2man
"

S="${WORKDIR}/${PN}/src"

Expand All @@ -28,6 +31,7 @@ src_prepare() {
"${FILESDIR}"/${P}-buildsystem.patch \
"${FILESDIR}"/${P}-format-security.patch
tc-export CC
append-cppflags -std=gnu89
export CFLAGS="${CFLAGS}"
export LDFLAGS="${LDFLAGS}"
export LIBS="$($(tc-getPKG_CONFIG) --libs ncurses)"
Expand Down

0 comments on commit 2c987ea

Please sign in to comment.