apply upstream patch for --addbook option to fix bug #563864
authorMichael Sterrett <mr_bones_@gentoo.org>
Fri, 23 Oct 2015 15:10:31 +0000 (11:10 -0400)
committerMichael Sterrett <mr_bones_@gentoo.org>
Fri, 23 Oct 2015 15:10:44 +0000 (11:10 -0400)
Package-Manager: portage-2.2.20.1

games-board/gnuchess/files/gnuchess-6.2.2-addbook.patch [new file with mode: 0644]
games-board/gnuchess/gnuchess-6.2.2-r1.ebuild [moved from games-board/gnuchess/gnuchess-6.2.2.ebuild with 91% similarity]

diff --git a/games-board/gnuchess/files/gnuchess-6.2.2-addbook.patch b/games-board/gnuchess/files/gnuchess-6.2.2-addbook.patch
new file mode 100644 (file)
index 0000000..21b3dc3
--- /dev/null
@@ -0,0 +1,10 @@
+--- trunk/src/main.cc  2015/10/17 13:52:22     127
++++ trunk/src/main.cc  2015/10/18 17:28:56     128
+@@ -412,6 +412,7 @@
+     char data[9+MAXSTR+1+4]="";
+     sprintf( data, "book add %s\nquit", opt_addbook );
+     SendToEngine( data );
++    SET (flags, QUIT);
+   }
+ 
+   if ( opt_easy == 0 )
similarity index 91%
rename from games-board/gnuchess/gnuchess-6.2.2.ebuild
rename to games-board/gnuchess/gnuchess-6.2.2-r1.ebuild
index 75d5001fa83acfe569fa1dc693ae2def36775a33..484ec127426654ea2cf710296b02ffb44d657d94 100644 (file)
@@ -14,6 +14,8 @@ LICENSE="GPL-3"
 SLOT="0"
 IUSE=""
 
+PATCHES=( "${FILESDIR}"/${P}-addbook.patch )
+
 src_configure() {
        strip-flags # bug #199097
        egamesconf --without-readline # bug 491088