STL provides no implicit boolean conversion for streams, so use good() for this purpose. Add gtest/gmock fixes for libc++.diff -r1.16 -r1.17 pkgsrc/net/synergy/Makefile
(joerg)
@@ -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 | |||
4 | DISTNAME= synergy-1.3.8-Source | 4 | DISTNAME= synergy-1.3.8-Source | |
5 | PKGNAME= ${DISTNAME:S/-Source//} | 5 | PKGNAME= ${DISTNAME:S/-Source//} | |
6 | CATEGORIES= net x11 | 6 | CATEGORIES= net x11 | |
7 | MASTER_SITES= http://synergy.googlecode.com/files/ | 7 | MASTER_SITES= http://synergy.googlecode.com/files/ | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://synergy-foss.org/ | 10 | HOMEPAGE= http://synergy-foss.org/ | |
11 | COMMENT= Let a user share a mouse and keyboard among computers | 11 | COMMENT= Let a user share a mouse and keyboard among computers | |
12 | LICENSE= gnu-gpl-v2 | 12 | LICENSE= gnu-gpl-v2 | |
13 | 13 | |||
14 | USE_LANGUAGES= c c++ | 14 | USE_LANGUAGES= c c++ | |
@@ -37,22 +37,27 @@ INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | @@ -37,22 +37,27 @@ INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 | |||
37 | post-build: | 37 | post-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 | |||
41 | do-install: | 41 | do-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" |
@@ -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 | |||
3 | SHA1 (synergy-1.3.8-Source.tar.gz) = 82e80b22c6746e573d047aa4a1ad7b71c28cf7d3 | 3 | SHA1 (synergy-1.3.8-Source.tar.gz) = 82e80b22c6746e573d047aa4a1ad7b71c28cf7d3 | |
4 | RMD160 (synergy-1.3.8-Source.tar.gz) = 3b02faec3b5e5dbea1853e6decd92e4cf6eca419 | 4 | RMD160 (synergy-1.3.8-Source.tar.gz) = 3b02faec3b5e5dbea1853e6decd92e4cf6eca419 | |
5 | Size (synergy-1.3.8-Source.tar.gz) = 2518396 bytes | 5 | Size (synergy-1.3.8-Source.tar.gz) = 2518396 bytes | |
6 | SHA1 (patch-src_lib_server_CConfig.cpp) = 47cb18b62cfd9eeee08cc5ee24e7777de98fefd2 | |||
7 | SHA1 (patch-src_lib_server_CConfig.h) = 6aa99efc189a3d8e067a30f4fee4d94874e4f3c6 | |||
6 | SHA1 (patch-tools_gmock-1.6.0_configure) = 45cfbcdc8b55c1e745265ed4e2bbbfe41ef000a2 | 8 | SHA1 (patch-tools_gmock-1.6.0_configure) = 45cfbcdc8b55c1e745265ed4e2bbbfe41ef000a2 | |
9 | SHA1 (patch-tools_gmock-1.6.0_include_gmock_internal_gmock-port.h) = dc526bcfab414dcd35d3d67c36998d92020bd398 | |||
7 | SHA1 (patch-tools_gtest-1.6.0_configure) = 35d77cab8e651bff031294f7d12570cb582aba1a | 10 | SHA1 (patch-tools_gtest-1.6.0_configure) = 35d77cab8e651bff031294f7d12570cb582aba1a | |
11 | SHA1 (patch-tools_gtest-1.6.0_include_gtest_internal_gtest-port.h) = 518067092fe4209bfc28f3bb4eb4092d1b0c1304 |
$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
$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;
$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
$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>.