x11-libs/wxGTK: Allow for compiling with GCC 6
authorDavid Seifert <soap@gentoo.org>
Sun, 2 Oct 2016 11:21:57 +0000 (13:21 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 2 Oct 2016 11:23:11 +0000 (13:23 +0200)
Gentoo-bug: 592436

Acked-by: Ryan Hill <rhill@gentoo.org>
Package-Manager: portage-2.3.1

x11-libs/wxGTK/wxGTK-3.0.2.0-r301.ebuild

index 49645e758df7986dc7dd681bef78d9dfc36c39c4..a9c599e3ccb524ac415ad7efcb59887b250122e1 100644 (file)
@@ -69,13 +69,15 @@ LICENSE="wxWinLL-3
                doc?    ( wxWinFDL-3 )"
 
 S="${WORKDIR}/wxPython-src-${PV}"
+PATCHES=(
+       "${FILESDIR}"/${P}-webview-fixes.patch
+       "${FILESDIR}"/${P}-gcc6.patch
+)
 
 src_prepare() {
-       PATCHES=( "${FILESDIR}"/${P}-webview-fixes.patch )
-
-       eapply "${PATCHES[@]}"
-       eapply_user
+       default
 
+       local f
        for f in $(find "${S}" -name configure.in); do
                mv "${f}" "${f/in/ac}" || die
        done