Index: head/devel/googlemock/Makefile =================================================================== --- head/devel/googlemock/Makefile (revision 398457) +++ head/devel/googlemock/Makefile (revision 398458) @@ -1,46 +1,42 @@ # Created by: Cheng-Lung Sung # $FreeBSD$ PORTNAME= googlemock PORTVERSION= 1.7.0 DISTVERSIONPREFIX= release- +PORTREVISION= 1 CATEGORIES= devel MAINTAINER= jbeich@FreeBSD.org COMMENT= Library for writing and using C++ mock classes LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${LOCALBASE}/share/aclocal/ax_pthread.m4:${PORTSDIR}/devel/autoconf-archive \ googletest>=1.7.0:${PORTSDIR}/devel/googletest LIB_DEPENDS= libgtest.so:${PORTSDIR}/devel/googletest USE_GITHUB= yes GH_ACCOUNT= google -USES= autoreconf libtool shebangfix +USES= autoreconf libtool GNU_CONFIGURE= yes -USE_LDCONFIG= yes +# fused-src python tests are only useful for bundling. There's no point in +# running them before installing system-wide without source files. +CONFIGURE_ENV= ac_cv_path_PYTHON=":" +TEST_TARGET= check INSTALL_TARGET= install-strip +USE_LDCONFIG= yes -CONFIGURE_ENV= ac_cv_path_PYTHON=python2 -python_OLD_CMD= /usr/bin/env python -python_CMD= /usr/bin/env python2 -SHEBANG_FILES= scripts/fuse_gmock_files.py scripts/gmock_doctor.py - -OPTIONS_DEFINE= TEST - -TEST_USES= python:2,build -TEST_ALL_TARGET=check - post-patch: - ${REINPLACE_CMD} '/acx_pthread.m4/d' ${WRKSRC}/configure.ac + @${REINPLACE_CMD} '/acx_pthread.m4/d' ${WRKSRC}/configure.ac # enable vendor make install again (revert 52277c9) - ${REINPLACE_CMD} -E 's/install-(exec|data)-local/&-dummy/' \ + @${REINPLACE_CMD} -E 's/install-(exec|data)-local/&-dummy/' \ ${WRKSRC}/Makefile.am post-install: ${INSTALL_SCRIPT} ${WRKSRC}/scripts/gmock-config ${STAGEDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/scripts/gmock_doctor.py ${STAGEDIR}${PREFIX}/bin .include Index: head/devel/googlemock/files/patch-scripts_gmock__doctor.py =================================================================== --- head/devel/googlemock/files/patch-scripts_gmock__doctor.py (nonexistent) +++ head/devel/googlemock/files/patch-scripts_gmock__doctor.py (revision 398458) @@ -0,0 +1,41 @@ +From ac830d6b197f8b8dad24782d7900c69cee0ab77e Mon Sep 17 00:00:00 2001 +From: Syl +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. Property changes on: head/devel/googlemock/files/patch-scripts_gmock__doctor.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/googletest/Makefile =================================================================== --- head/devel/googletest/Makefile (revision 398457) +++ head/devel/googletest/Makefile (revision 398458) @@ -1,41 +1,35 @@ # Created by: Cheng-Lung Sung # $FreeBSD$ PORTNAME= googletest PORTVERSION= 1.7.0 DISTVERSIONPREFIX= release- CATEGORIES= devel MAINTAINER= jbeich@FreeBSD.org COMMENT= Framework for writing C++ tests on a variety of platforms LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE USE_GITHUB= yes GH_ACCOUNT= google -USES= autoreconf libtool shebangfix +USES= autoreconf libtool GNU_CONFIGURE= yes -USE_LDCONFIG= yes +# fused-src python tests are only useful for bundling. There's no point in +# running them before installing system-wide without source files. +CONFIGURE_ENV= ac_cv_path_PYTHON=":" +TEST_TARGET= check INSTALL_TARGET= install-strip +USE_LDCONFIG= yes -CONFIGURE_ENV= ac_cv_path_PYTHON=python2 -python_OLD_CMD= /usr/bin/env python -python_CMD= /usr/bin/env python2 -SHEBANG_FILES= scripts/fuse_gtest_files.py scripts/gen_gtest_pred_impl.py \ - scripts/pump.py - -OPTIONS_DEFINE= TEST - -TEST_USES= python:2,build -TEST_ALL_TARGET=check - post-patch: # enable vendor make install again (revert 661758e) - ${REINPLACE_CMD} -E 's/install-(exec|data)-local/&-dummy/' \ + @${REINPLACE_CMD} -E 's/install-(exec|data)-local/&-dummy/' \ ${WRKSRC}/Makefile.am post-install: ${INSTALL_SCRIPT} ${WRKSRC}/scripts/gtest-config ${STAGEDIR}${PREFIX}/bin .include