summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Ospald <hasufell@gentoo.org>2013-01-08 19:43:00 +0000
committerJulian Ospald <hasufell@gentoo.org>2013-01-08 19:43:00 +0000
commit1ddc0141b16f8b8e8e84c9b15a8d6c562c35df2d (patch)
tree85d9d95955bf66ba031fc990dcadf1c1532f1bd0 /games-misc/gnurobots
parentFix keepdir of /var/run wrt bug #450838. (diff)
downloadgentoo-2-1ddc0141b16f8b8e8e84c9b15a8d6c562c35df2d.tar.gz
gentoo-2-1ddc0141b16f8b8e8e84c9b15a8d6c562c35df2d.tar.bz2
gentoo-2-1ddc0141b16f8b8e8e84c9b15a8d6c562c35df2d.zip
respect CFLAGS wrt #450828
(Portage version: 2.2.0_alpha149/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'games-misc/gnurobots')
-rw-r--r--games-misc/gnurobots/ChangeLog8
-rw-r--r--games-misc/gnurobots/files/gnurobots-1.2.0-cflags.patch34
-rw-r--r--games-misc/gnurobots/gnurobots-1.2.0.ebuild10
3 files changed, 43 insertions, 9 deletions
diff --git a/games-misc/gnurobots/ChangeLog b/games-misc/gnurobots/ChangeLog
index 89fd289c9b10..935b0ae83846 100644
--- a/games-misc/gnurobots/ChangeLog
+++ b/games-misc/gnurobots/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for games-misc/gnurobots
-# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/gnurobots/ChangeLog,v 1.24 2012/12/15 18:47:21 dolsen Exp $
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/games-misc/gnurobots/ChangeLog,v 1.25 2013/01/08 19:43:00 hasufell Exp $
+
+ 08 Jan 2013; Julian Ospald <hasufell@gentoo.org> gnurobots-1.2.0.ebuild,
+ +files/gnurobots-1.2.0-cflags.patch:
+ respect CFLAGS wrt #450828
15 Dec 2012; Brian Dolbec <dolsen@gentoo.org> gnurobots-1.2.0.ebuild:
Update HOMEPAGE link, as reported by sobhan
diff --git a/games-misc/gnurobots/files/gnurobots-1.2.0-cflags.patch b/games-misc/gnurobots/files/gnurobots-1.2.0-cflags.patch
new file mode 100644
index 000000000000..3f13e23075f8
--- /dev/null
+++ b/games-misc/gnurobots/files/gnurobots-1.2.0-cflags.patch
@@ -0,0 +1,34 @@
+From: Julian Ospald <hasufell@gentoo.org>
+Date: Tue Jan 8 16:31:27 UTC 2013
+Subject: build system
+
+ respect CFLAGS
+ provide werror switch
+
+--- gnurobots-1.2.0/configure.ac
++++ gnurobots-1.2.0/configure.ac
+@@ -21,7 +21,7 @@
+ AC_PREREQ([2.59])
+ AM_CONFIG_HEADER([config.h])
+ AC_CONFIG_SRCDIR([include/api.h])
+-AM_INIT_AUTOMAKE
++AM_INIT_AUTOMAKE([-Wall])
+
+ dnl Checks for programs.
+ AC_PROG_CC
+@@ -91,7 +91,13 @@
+ dnl Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
+
+-CFLAGS="-pedantic-errors -Werror -Wall -g"
++AC_ARG_ENABLE([werror],
++ [AS_HELP_STRING([--enable-werror],
++ [enable -Werror flag (default: disabled)])],
++ [enable_werror=$enableval],
++ [enable_werror="no"])
++AS_IF([test "x$enable_werror" = "xyes"],
++ [CFLAGS="$CFLAGS -pedantic-errors -Werror"])
+
+ dnl Done.
+ AC_CONFIG_FILES([Makefile
+
diff --git a/games-misc/gnurobots/gnurobots-1.2.0.ebuild b/games-misc/gnurobots/gnurobots-1.2.0.ebuild
index 4514969a3205..9946224907a0 100644
--- a/games-misc/gnurobots/gnurobots-1.2.0.ebuild
+++ b/games-misc/gnurobots/gnurobots-1.2.0.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-misc/gnurobots/gnurobots-1.2.0.ebuild,v 1.11 2012/12/15 18:47:21 dolsen Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-misc/gnurobots/gnurobots-1.2.0.ebuild,v 1.12 2013/01/08 19:43:00 hasufell Exp $
EAPI=2
inherit eutils autotools games
@@ -20,11 +20,7 @@ DEPEND="x11-libs/vte:0
dev-scheme/guile[deprecated]"
src_prepare() {
- epatch "${FILESDIR}"/${P}-ldflags.patch
- sed -i \
- -e 's/-pedantic-errors -Werror//' \
- configure.ac \
- || die "sed failed"
+ epatch "${FILESDIR}"/${P}-{ldflags,cflags}.patch
eautoreconf
}