x11-misc/xnots: Fix building with sys-devel/gcc-5* (bug #575376).
authorJeroen Roovers <jer@gentoo.org>
Mon, 22 Aug 2016 19:00:43 +0000 (21:00 +0200)
committerJeroen Roovers <jer@gentoo.org>
Mon, 22 Aug 2016 19:01:03 +0000 (21:01 +0200)
Package-Manager: portage-2.3.0

x11-misc/xnots/xnots-0.2.1-r1.ebuild
x11-misc/xnots/xnots-9999.ebuild

index ee11e5f09c33873574dc98b5bb9939f62f951187..92153b83810a47abd8387ffa0cd3d8c39407f662 100644 (file)
@@ -1,9 +1,9 @@
-# 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 toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="A desktop sticky note program for the unix geek"
 HOMEPAGE="http://xnots.sourceforge.net https://github.com/thePalindrome/xnots"
@@ -14,20 +14,26 @@ SLOT="0"
 KEYWORDS="amd64 x86"
 IUSE="vim-syntax"
 
-RDEPEND="x11-libs/libX11
+RDEPEND="
+       x11-libs/libX11
        x11-libs/libXext
-       x11-libs/libXrender
        x11-libs/libXrandr
-       x11-libs/pango[X]"
+       x11-libs/libXrender
+       x11-libs/pango[X]
+"
 
-DEPEND="${RDEPEND}
+DEPEND="
+       ${RDEPEND}
        virtual/pkgconfig
-       x11-proto/xextproto
+       x11-proto/randrproto
        x11-proto/renderproto
-       x11-proto/randrproto"
+       x11-proto/xextproto
+"
 
 src_prepare() {
        sed -i -e 's|LICENCE||g' Makefile || die
+
+       append-cflags -std=gnu89
 }
 
 src_compile() {
index d30b43eb9dc226c0424d165e04a6f67e795a3c2e..4615827f4fb669972b6729042516f5eeefd3f94b 100644 (file)
@@ -1,9 +1,9 @@
-# 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 git-r3 toolchain-funcs
+inherit flag-o-matic git-r3 toolchain-funcs
 
 DESCRIPTION="A desktop sticky note program for the unix geek"
 HOMEPAGE="http://xnots.sourceforge.net https://github.com/thePalindrome/xnots"
@@ -13,20 +13,26 @@ LICENSE="GPL-2"
 SLOT="0"
 IUSE="vim-syntax"
 
-RDEPEND="x11-libs/libX11
+RDEPEND="
+       x11-libs/libX11
        x11-libs/libXext
-       x11-libs/libXrender
        x11-libs/libXrandr
-       x11-libs/pango[X]"
+       x11-libs/libXrender
+       x11-libs/pango[X]
+"
 
-DEPEND="${RDEPEND}
+DEPEND="
+       ${RDEPEND}
        virtual/pkgconfig
-       x11-proto/xextproto
+       x11-proto/randrproto
        x11-proto/renderproto
-       x11-proto/randrproto"
+       x11-proto/xextproto
+"
 
 src_prepare() {
        sed -i -e 's|LICENCE||g' Makefile || die
+
+       append-cflags -std=gnu89
 }
 
 src_compile() {