media-gfx/gnuclad: Disable -Werror, bug 664130
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 7 Dec 2018 22:27:13 +0000 (23:27 +0100)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Fri, 7 Dec 2018 22:27:30 +0000 (23:27 +0100)
Closes: https://bugs.gentoo.org/664130
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
media-gfx/gnuclad/files/gnuclad-0.2.4-werror.patch [new file with mode: 0644]
media-gfx/gnuclad/gnuclad-0.2.4.ebuild

diff --git a/media-gfx/gnuclad/files/gnuclad-0.2.4-werror.patch b/media-gfx/gnuclad/files/gnuclad-0.2.4-werror.patch
new file mode 100644 (file)
index 0000000..b8545d1
--- /dev/null
@@ -0,0 +1,9 @@
+diff -ruN gnuclad-0.2.4.orig/src/Makefile.am gnuclad-0.2.4/src/Makefile.am
+--- gnuclad-0.2.4.orig/src/Makefile.am 2011-01-07 19:28:05.000000000 +0100
++++ gnuclad-0.2.4/src/Makefile.am      2018-12-07 23:23:49.878123376 +0100
+@@ -18,4 +18,4 @@
+ 
+ CFLAGS =
+ AM_CXXFLAGS =
+-gnuclad_CPPFLAGS = -Wall -Wextra -Werror -pedantic-errors -ansi -O2
++gnuclad_CPPFLAGS = -Wall -Wextra -pedantic-errors -ansi
index 77b5f29236f923136e771681a1d9a7152a2cc6b2..9d9826b28d99318323cd0c9d571c36f9d32217bf 100644 (file)
@@ -1,8 +1,10 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
+inherit autotools
+
 DESCRIPTION="Cladogram tree generator mainly used by the GNU/Linux distro timeline project"
 HOMEPAGE="https://launchpad.net/gnuclad/"
 SRC_URI="http://launchpad.net/gnuclad/trunk/0.2/+download/${P}.tar.gz"
@@ -15,6 +17,15 @@ IUSE="examples"
 DEPEND=""
 RDEPEND=""
 
+PATCHES=(
+       "${FILESDIR}/${P}"-werror.patch
+)
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
 src_install() {
        default