Sat May 11 21:40:14 2013 UTC ()
STL provides no implicit boolean conversion for streams, so use good()
for this purpose. Add gtest/gmock fixes for libc++.


(joerg)
diff -r1.16 -r1.17 pkgsrc/net/synergy/Makefile
diff -r1.9 -r1.10 pkgsrc/net/synergy/distinfo
diff -r0 -r1.1 pkgsrc/net/synergy/patches/patch-src_lib_server_CConfig.cpp
diff -r0 -r1.1 pkgsrc/net/synergy/patches/patch-src_lib_server_CConfig.h
diff -r0 -r1.1 pkgsrc/net/synergy/patches/patch-tools_gmock-1.6.0_include_gmock_internal_gmock-port.h
diff -r0 -r1.1 pkgsrc/net/synergy/patches/patch-tools_gtest-1.6.0_include_gtest_internal_gtest-port.h

cvs diff -r1.16 -r1.17 pkgsrc/net/synergy/Makefile (expand / switch to unified diff)

--- pkgsrc/net/synergy/Makefile 2012/11/25 16:39:40 1.16
+++ pkgsrc/net/synergy/Makefile 2013/05/11 21:40:14 1.17
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.16 2012/11/25 16:39:40 gls Exp $ 1# $NetBSD: Makefile,v 1.17 2013/05/11 21:40:14 joerg Exp $
2# 2#
3 3
4DISTNAME= synergy-1.3.8-Source 4DISTNAME= synergy-1.3.8-Source
5PKGNAME= ${DISTNAME:S/-Source//} 5PKGNAME= ${DISTNAME:S/-Source//}
6CATEGORIES= net x11 6CATEGORIES= net x11
7MASTER_SITES= http://synergy.googlecode.com/files/ 7MASTER_SITES= http://synergy.googlecode.com/files/
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://synergy-foss.org/ 10HOMEPAGE= http://synergy-foss.org/
11COMMENT= Let a user share a mouse and keyboard among computers 11COMMENT= Let a user share a mouse and keyboard among computers
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14USE_LANGUAGES= c c++ 14USE_LANGUAGES= c c++
@@ -37,22 +37,27 @@ INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 @@ -37,22 +37,27 @@ INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
37post-build: 37post-build:
38 ${CP} ${WRKSRC}/doc/synergyc.man ${WRKSRC}/doc/synergyc.1 38 ${CP} ${WRKSRC}/doc/synergyc.man ${WRKSRC}/doc/synergyc.1
39 ${CP} ${WRKSRC}/doc/synergys.man ${WRKSRC}/doc/synergys.1 39 ${CP} ${WRKSRC}/doc/synergys.man ${WRKSRC}/doc/synergys.1
40 40
41do-install: 41do-install:
42 ${INSTALL_PROGRAM} ${WRKSRC}/bin/synergyc ${DESTDIR}${PREFIX}/bin 42 ${INSTALL_PROGRAM} ${WRKSRC}/bin/synergyc ${DESTDIR}${PREFIX}/bin
43 ${INSTALL_PROGRAM} ${WRKSRC}/bin/synergys ${DESTDIR}${PREFIX}/bin 43 ${INSTALL_PROGRAM} ${WRKSRC}/bin/synergys ${DESTDIR}${PREFIX}/bin
44 ${INSTALL_MAN} ${WRKSRC}/doc/synergyc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 44 ${INSTALL_MAN} ${WRKSRC}/doc/synergyc.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
45 ${INSTALL_MAN} ${WRKSRC}/doc/synergys.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 45 ${INSTALL_MAN} ${WRKSRC}/doc/synergys.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
46.for f in ${EXAMPLES} 46.for f in ${EXAMPLES}
47 ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DESTDIR}${PREFIX}/share/examples/${PKGBASE} 47 ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
48.endfor 48.endfor
49 49
 50.include "../../mk/compiler.mk"
 51.if !empty(PKGSRC_COMPILER:Mclang)
 52_WRAP_EXTRA_ARGS.CXX+= -std=c++11
 53.endif
 54
50.include "../../devel/cmake/buildlink3.mk" 55.include "../../devel/cmake/buildlink3.mk"
51.if !exists(/System/Library/Frameworks/Carbon.framework) 56.if !exists(/System/Library/Frameworks/Carbon.framework)
52.include "../../x11/libXext/buildlink3.mk" 57.include "../../x11/libXext/buildlink3.mk"
53.include "../../x11/libXinerama/buildlink3.mk" 58.include "../../x11/libXinerama/buildlink3.mk"
54.include "../../x11/libXt/buildlink3.mk" 59.include "../../x11/libXt/buildlink3.mk"
55.include "../../x11/libXtst/buildlink3.mk" 60.include "../../x11/libXtst/buildlink3.mk"
56.endif 61.endif
57.include "../../mk/pthread.buildlink3.mk" 62.include "../../mk/pthread.buildlink3.mk"
58.include "../../mk/bsd.pkg.mk" 63.include "../../mk/bsd.pkg.mk"

cvs diff -r1.9 -r1.10 pkgsrc/net/synergy/distinfo (expand / switch to unified diff)

--- pkgsrc/net/synergy/distinfo 2012/11/25 16:39:40 1.9
+++ pkgsrc/net/synergy/distinfo 2013/05/11 21:40:14 1.10
@@ -1,7 +1,11 @@ @@ -1,7 +1,11 @@
1$NetBSD: distinfo,v 1.9 2012/11/25 16:39:40 gls Exp $ 1$NetBSD: distinfo,v 1.10 2013/05/11 21:40:14 joerg Exp $
2 2
3SHA1 (synergy-1.3.8-Source.tar.gz) = 82e80b22c6746e573d047aa4a1ad7b71c28cf7d3 3SHA1 (synergy-1.3.8-Source.tar.gz) = 82e80b22c6746e573d047aa4a1ad7b71c28cf7d3
4RMD160 (synergy-1.3.8-Source.tar.gz) = 3b02faec3b5e5dbea1853e6decd92e4cf6eca419 4RMD160 (synergy-1.3.8-Source.tar.gz) = 3b02faec3b5e5dbea1853e6decd92e4cf6eca419
5Size (synergy-1.3.8-Source.tar.gz) = 2518396 bytes 5Size (synergy-1.3.8-Source.tar.gz) = 2518396 bytes
 6SHA1 (patch-src_lib_server_CConfig.cpp) = 47cb18b62cfd9eeee08cc5ee24e7777de98fefd2
 7SHA1 (patch-src_lib_server_CConfig.h) = 6aa99efc189a3d8e067a30f4fee4d94874e4f3c6
6SHA1 (patch-tools_gmock-1.6.0_configure) = 45cfbcdc8b55c1e745265ed4e2bbbfe41ef000a2 8SHA1 (patch-tools_gmock-1.6.0_configure) = 45cfbcdc8b55c1e745265ed4e2bbbfe41ef000a2
 9SHA1 (patch-tools_gmock-1.6.0_include_gmock_internal_gmock-port.h) = dc526bcfab414dcd35d3d67c36998d92020bd398
7SHA1 (patch-tools_gtest-1.6.0_configure) = 35d77cab8e651bff031294f7d12570cb582aba1a 10SHA1 (patch-tools_gtest-1.6.0_configure) = 35d77cab8e651bff031294f7d12570cb582aba1a
 11SHA1 (patch-tools_gtest-1.6.0_include_gtest_internal_gtest-port.h) = 518067092fe4209bfc28f3bb4eb4092d1b0c1304

File Added: pkgsrc/net/synergy/patches/Attic/patch-src_lib_server_CConfig.cpp
$NetBSD: patch-src_lib_server_CConfig.cpp,v 1.1 2013/05/11 21:40:14 joerg Exp $

--- src/lib/server/CConfig.cpp.orig	2011-01-21 03:51:35.000000000 +0000
+++ src/lib/server/CConfig.cpp
@@ -1908,9 +1908,9 @@ CConfigReadContext::getLineNumber() cons
 	return m_line;
 }
 
-CConfigReadContext::operator void*() const
+CConfigReadContext::operator bool() const
 {
-	return m_stream;
+	return m_stream.good();
 }
 
 bool

File Added: pkgsrc/net/synergy/patches/Attic/patch-src_lib_server_CConfig.h
$NetBSD: patch-src_lib_server_CConfig.h,v 1.1 2013/05/11 21:40:14 joerg Exp $

--- src/lib/server/CConfig.h.orig	2013-05-10 12:35:59.000000000 +0000
+++ src/lib/server/CConfig.h
@@ -483,7 +483,7 @@ public:
 	bool			readLine(CString&);
 	UInt32			getLineNumber() const;
 
-	operator void*() const;
+	operator bool() const;
 	bool			operator!() const;
 
 	OptionValue		parseBoolean(const CString&) const;

File Added: pkgsrc/net/synergy/patches/Attic/patch-tools_gmock-1.6.0_include_gmock_internal_gmock-port.h
$NetBSD: patch-tools_gmock-1.6.0_include_gmock_internal_gmock-port.h,v 1.1 2013/05/11 21:40:14 joerg Exp $

--- tools/gmock-1.6.0/include/gmock/internal/gmock-port.h.orig	2011-05-07 02:25:30.000000000 +0000
+++ tools/gmock-1.6.0/include/gmock/internal/gmock-port.h
@@ -50,6 +50,14 @@
 // tr1/tuple.  gmock-port.h does this via gtest-port.h, which is
 // guaranteed to pull in the tuple header.
 
+#if __cplusplus >= 201103L
+namespace std {
+  namespace tr1 {
+    using ::std::make_tuple;
+  }
+}
+#endif
+
 // For MS Visual C++, check the compiler version. At least VS 2003 is
 // required to compile Google Mock.
 #if defined(_MSC_VER) && _MSC_VER < 1310

File Added: pkgsrc/net/synergy/patches/Attic/patch-tools_gtest-1.6.0_include_gtest_internal_gtest-port.h
$NetBSD: patch-tools_gtest-1.6.0_include_gtest_internal_gtest-port.h,v 1.1 2013/05/11 21:40:14 joerg Exp $

--- tools/gtest-1.6.0/include/gtest/internal/gtest-port.h.orig	2011-05-07 02:25:30.000000000 +0000
+++ tools/gtest-1.6.0/include/gtest/internal/gtest-port.h
@@ -481,6 +481,16 @@
 #  define BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED
 #  include <tuple>
 
+# elif __cplusplus >= 201103L
+#  include <tuple>
+namespace std {
+  namespace tr1 {
+    using ::std::tuple;
+    using ::std::tuple_element;
+    using ::std::tuple_size;
+    using ::std::get;
+  }
+}
 # elif defined(__GNUC__) && (GTEST_GCC_VER_ >= 40000)
 // GCC 4.0+ implements tr1/tuple in the <tr1/tuple> header.  This does
 // not conform to the TR1 spec, which requires the header to be <tuple>.