From ede3b88703ac8f24ef5175b031ceb6445b0dff16 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 4 Mar 2019 07:09:41 +0000 Subject: [PATCH] games/gtkradiant: unbreak with libc++ 8 In file included from plugins/archivepak/plugin.cpp:24: In file included from include/iarchive.h:25: In file included from /usr/include/c++/v1/cstddef:38: include/version:1:1: error: expected unqualified-id 1.5.0 ^ PR: 236192 Approved by: portmgr blanket --- games/gtkradiant/files/patch-makeversion.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/games/gtkradiant/files/patch-makeversion.py b/games/gtkradiant/files/patch-makeversion.py index 371c1f05da2f..152ca7463f79 100644 --- a/games/gtkradiant/files/patch-makeversion.py +++ b/games/gtkradiant/files/patch-makeversion.py @@ -11,6 +11,16 @@ def get_version(): # version +@@ -68,9 +66,6 @@ def radiant_makeversion(append_about): + f = open('include/RADIANT_MAJOR', 'w') + f.write(major) + f.close() +- f = open('include/version', 'w') +- f.write(line) +- f.close() + # aboutmsg + aboutfile = 'include/aboutmsg.default' + if ( os.environ.has_key('RADIANT_ABOUTMSG') ): @@ -82,7 +80,7 @@ line = f.readline() f.close()