dev-util/diffball: add -std=gnu89 to CFLAGS to restore pre-GCC5 semantics
authorDavid Seifert <soap@gentoo.org>
Sat, 2 Apr 2016 21:48:10 +0000 (23:48 +0200)
committerDavid Seifert <soap@gentoo.org>
Sat, 2 Apr 2016 21:49:01 +0000 (23:49 +0200)
Gentoo-Bug: 548316
* EAPI=6

Package-Manager: portage-2.2.28

dev-util/diffball/diffball-1.0.1.ebuild

index ba9d483721f4916f5ad9cb7588718edafc204f0d..52393215d0aa0b56f9a8e15419cf5dad0be0f6c2 100644 (file)
@@ -1,7 +1,11 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
+EAPI=6
+
+inherit flag-o-matic
+
 DESCRIPTION="Delta compression suite for using/generating binary patches"
 HOMEPAGE="https://diffball.googlecode.com/"
 SRC_URI="https://diffball.googlecode.com/files/${P}.tar.bz2"
@@ -20,12 +24,12 @@ DEPEND="${RDEPEND}
 # Invalid RESTRICT for source package. Investigate.
 RESTRICT="strip"
 
-src_compile() {
-       econf $(use_enable debug asserts)
-       emake || die "emake failed"
+src_prepare() {
+       # fix bug 548316 by restoring pre-GCC5 inline semantics
+       append-cflags -std=gnu89
+       default
 }
 
-src_install() {
-       emake DESTDIR="${D}" install || die
-       dodoc AUTHORS ChangeLog README TODO
+src_configure() {
+       econf $(use_enable debug asserts)
 }