aboutsummaryrefslogtreecommitdiff
path: root/devel/googlemock/files
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2015-10-03 01:31:58 +0000
committerJan Beich <jbeich@FreeBSD.org>2015-10-03 01:31:58 +0000
commita8d8b5e01e85d6c800cb92591b610bcb69e6dd60 (patch)
tree362752ec2e9c739676eef6a59697e109e8d9303f /devel/googlemock/files
parenta1c508e98b2b477a785041dafb353e15c8426dc3 (diff)
downloadports-a8d8b5e01e85d6c800cb92591b610bcb69e6dd60.tar.gz
ports-a8d8b5e01e85d6c800cb92591b610bcb69e6dd60.zip
devel/google{test,mock}: simplify and modernize
- Convert to the new testing framework - Add upstream fix for gmock_doctor.py to work with python3, so keep existing |/usr/bin/env python| shebang - Drop fused-src tests as the ports don't install source files - No need to shebangfix files we don't install - Provide LICENSE_FILE as there's none under Templates/Licenses/ - Sort declarations by the order they're run (ldconfig is last) - Silence post-patch commands [1] PR: 203514 Submitted by: amdmi3 [1] Reviewed by: amdmi3 (previous version)
Notes
Notes: svn path=/head/; revision=398458
Diffstat (limited to 'devel/googlemock/files')
-rw-r--r--devel/googlemock/files/patch-scripts_gmock__doctor.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/devel/googlemock/files/patch-scripts_gmock__doctor.py b/devel/googlemock/files/patch-scripts_gmock__doctor.py
new file mode 100644
index 000000000000..608e635886ca
--- /dev/null
+++ b/devel/googlemock/files/patch-scripts_gmock__doctor.py
@@ -0,0 +1,41 @@
+From ac830d6b197f8b8dad24782d7900c69cee0ab77e Mon Sep 17 00:00:00 2001
+From: Syl <srouquette@gmail.com>
+Date: Sun, 30 Aug 2015 08:57:48 +0200
+Subject: [PATCH] Fix gmock_doctor.py for Python3
+
+--- scripts/gmock_doctor.py.orig 2013-09-19 00:32:04 UTC
++++ scripts/gmock_doctor.py
+@@ -590,7 +590,7 @@ def main():
+ print ('Please copy and paste the compiler errors here. Press c-D when '
+ 'you are done:')
+ else:
+- print 'Waiting for compiler errors on stdin . . .'
++ print ('Waiting for compiler errors on stdin . . .')
+
+ msg = sys.stdin.read().strip()
+ diagnoses = Diagnose(msg)
+@@ -608,18 +608,18 @@ If you send your source code and the com
+ %s, you can be helped and I can get smarter --
+ win-win for us!""" % (msg, _EMAIL))
+ else:
+- print '------------------------------------------------------------'
+- print 'Your code appears to have the following',
++ print ('------------------------------------------------------------')
++ print ('Your code appears to have the following',)
+ if count > 1:
+- print '%s diseases:' % (count,)
++ print ('%s diseases:' % (count,))
+ else:
+- print 'disease:'
++ print ('disease:')
+ i = 0
+ for d in diagnoses:
+ i += 1
+ if count > 1:
+- print '\n#%s:' % (i,)
+- print d
++ print ('\n#%s:' % (i,))
++ print (d)
+ print ("""
+ How did I do? If you think I'm wrong or unhelpful, please send your
+ source code and the compiler's error messages to %s.