Thu May 30 15:36:29 2013 UTC ()
Use C++11 headers directly if in C++11 mode or when using libc++.


(joerg)
diff -r1.5 -r1.6 pkgsrc/databases/libcassandra/distinfo
diff -r1.3 -r1.4 pkgsrc/databases/libcassandra/patches/patch-aa
diff -r0 -r1.1 pkgsrc/databases/libcassandra/patches/patch-libcassandra_cassandra.cc
diff -r0 -r1.1 pkgsrc/databases/libcassandra/patches/patch-libcassandra_cassandra.h
diff -r0 -r1.1 pkgsrc/databases/libcassandra/patches/patch-libcassandra_cassandra__factory.cc
diff -r0 -r1.1 pkgsrc/databases/libcassandra/patches/patch-libcassandra_cassandra__factory.h
diff -r0 -r1.1 pkgsrc/databases/libcassandra/patches/patch-libcassandra_keyspace__factory.cc
diff -r0 -r1.1 pkgsrc/databases/libcassandra/patches/patch-libcassandra_keyspace__factory.h

cvs diff -r1.5 -r1.6 pkgsrc/databases/libcassandra/distinfo (expand / switch to unified diff)

--- pkgsrc/databases/libcassandra/distinfo 2012/11/16 00:40:18 1.5
+++ pkgsrc/databases/libcassandra/distinfo 2013/05/30 15:36:29 1.6
@@ -1,8 +1,14 @@ @@ -1,8 +1,14 @@
1$NetBSD: distinfo,v 1.5 2012/11/16 00:40:18 joerg Exp $ 1$NetBSD: distinfo,v 1.6 2013/05/30 15:36:29 joerg Exp $
2 2
3SHA1 (libcassandra-20101010.tar.gz) = 457dcf1fd24ad310c63eefb3b532f58835f326ef 3SHA1 (libcassandra-20101010.tar.gz) = 457dcf1fd24ad310c63eefb3b532f58835f326ef
4RMD160 (libcassandra-20101010.tar.gz) = e3e05861d1c1173d2492d49442aa68ee429d7b8f 4RMD160 (libcassandra-20101010.tar.gz) = e3e05861d1c1173d2492d49442aa68ee429d7b8f
5Size (libcassandra-20101010.tar.gz) = 873233 bytes 5Size (libcassandra-20101010.tar.gz) = 873233 bytes
6SHA1 (patch-aa) = 387ea4e5ceb65c63e0a8d894035c9ae0fee2b792 6SHA1 (patch-aa) = 9cfe12f0fe26514bd7216d49e83248073cf26f4c
 7SHA1 (patch-libcassandra_cassandra.cc) = 88d78156cbdbf51e0bd59326e72ca230de3a7688
 8SHA1 (patch-libcassandra_cassandra.h) = 751a4b2847e52c87bbd9ccbf05bdcd62dfbb9ae3
 9SHA1 (patch-libcassandra_cassandra__factory.cc) = 7582d397c21f81f8cd5b84669204e6e2dfe93e96
 10SHA1 (patch-libcassandra_cassandra__factory.h) = 602752ecd9d692bef0c692ba54098a75df4047c6
 11SHA1 (patch-libcassandra_keyspace__factory.cc) = 9ac440c383243fd11e13147e9375e62c48847ebc
 12SHA1 (patch-libcassandra_keyspace__factory.h) = bd611da5e673ce38a5eb811e6196a903a5a80ff8
7SHA1 (patch-libgenthrift_Cassandra.cpp) = b8ab38d7e28f98ad84d0f2cd3459d564a8decfc7 13SHA1 (patch-libgenthrift_Cassandra.cpp) = b8ab38d7e28f98ad84d0f2cd3459d564a8decfc7
8SHA1 (patch-libgenthrift_Cassandra.h) = 271f776e8a4ba898fccd66b951cb7227c7c72cad 14SHA1 (patch-libgenthrift_Cassandra.h) = 271f776e8a4ba898fccd66b951cb7227c7c72cad

cvs diff -r1.3 -r1.4 pkgsrc/databases/libcassandra/patches/patch-aa (expand / switch to unified diff)

--- pkgsrc/databases/libcassandra/patches/patch-aa 2010/10/16 11:43:30 1.3
+++ pkgsrc/databases/libcassandra/patches/patch-aa 2013/05/30 15:36:29 1.4
@@ -1,88 +1,99 @@ @@ -1,88 +1,99 @@
1$NetBSD: patch-aa,v 1.3 2010/10/16 11:43:30 tonnerre Exp $ 1$NetBSD: patch-aa,v 1.4 2013/05/30 15:36:29 joerg Exp $
2 2
3Remove the -pedantic flag from the configure script, it isn't terribly 3Remove the -pedantic flag from the configure script, it isn't terribly
4useful for C++0x code. 4useful for C++0x code.
5 5
6--- configure.orig 2010-04-30 23:25:08.000000000 +0000 6--- configure.orig 2010-10-10 00:59:59.000000000 +0000
7+++ configure 7+++ configure
8@@ -17830,7 +17830,7 @@ if test "${ac_cv_safe_to_use_wconversion 8@@ -17972,7 +17972,7 @@ if test "${ac_cv_safe_to_use_wconversion
9 $as_echo_n "(cached) " >&6 9 $as_echo_n "(cached) " >&6
10 else 10 else
11 save_CFLAGS="$CFLAGS" 11 save_CFLAGS="$CFLAGS"
12- CFLAGS="-Wconversion -Werror -pedantic ${AM_CFLAGS} ${CFLAGS}" 12- CFLAGS="-Wconversion -Werror -pedantic ${AM_CFLAGS} ${CFLAGS}"
13+ CFLAGS="-Wconversion -Werror ${AM_CFLAGS} ${CFLAGS}" 13+ CFLAGS="-Wconversion -Werror ${AM_CFLAGS} ${CFLAGS}"
14 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15 /* end confdefs.h. */ 15 /* end confdefs.h. */
16  16
17@@ -17869,7 +17869,7 @@ if test "${ac_cv_safe_to_use_Wconversion 17@@ -18011,7 +18011,7 @@ if test "${ac_cv_safe_to_use_Wconversion
18 $as_echo_n "(cached) " >&6 18 $as_echo_n "(cached) " >&6
19 else 19 else
20 save_CFLAGS="$CFLAGS" 20 save_CFLAGS="$CFLAGS"
21- CFLAGS="-Wconversion -Werror -pedantic ${AM_CFLAGS} ${CFLAGS}" 21- CFLAGS="-Wconversion -Werror -pedantic ${AM_CFLAGS} ${CFLAGS}"
22+ CFLAGS="-Wconversion -Werror ${AM_CFLAGS} ${CFLAGS}" 22+ CFLAGS="-Wconversion -Werror ${AM_CFLAGS} ${CFLAGS}"
23 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24 /* end confdefs.h. */ 24 /* end confdefs.h. */
25  25
26@@ -17929,7 +17929,7 @@ if test "${ac_cv_safe_to_use_Wextra_+set 26@@ -18071,7 +18071,7 @@ if test "${ac_cv_safe_to_use_Wextra_+set
27 $as_echo_n "(cached) " >&6 27 $as_echo_n "(cached) " >&6
28 else 28 else
29 save_CFLAGS="$CFLAGS" 29 save_CFLAGS="$CFLAGS"
30- CFLAGS="${W_FAIL} -pedantic -Wextra ${AM_CFLAGS} ${CFLAGS}" 30- CFLAGS="${W_FAIL} -pedantic -Wextra ${AM_CFLAGS} ${CFLAGS}"
31+ CFLAGS="${W_FAIL} -Wextra ${AM_CFLAGS} ${CFLAGS}" 31+ CFLAGS="${W_FAIL} -Wextra ${AM_CFLAGS} ${CFLAGS}"
32 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33 /* end confdefs.h. */ 33 /* end confdefs.h. */
34  34
35@@ -17956,7 +17956,7 @@ fi 35@@ -18098,7 +18098,7 @@ fi
36 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_use_Wextra_" >&5 36 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_use_Wextra_" >&5
37 $as_echo "$ac_cv_safe_to_use_Wextra_" >&6; } 37 $as_echo "$ac_cv_safe_to_use_Wextra_" >&6; }
38  38
39- BASE_WARNINGS="${W_FAIL} -pedantic -Wall -Wundef -Wshadow ${NO_UNUSED} ${F_DIAGNOSTICS_SHOW_OPTION} ${CFLAG_VISIBILITY} ${BASE_WARNINGS_FULL}" 39- BASE_WARNINGS="${W_FAIL} -pedantic -Wall -Wundef -Wshadow ${NO_UNUSED} ${F_DIAGNOSTICS_SHOW_OPTION} ${CFLAG_VISIBILITY} ${BASE_WARNINGS_FULL}"
40+ BASE_WARNINGS="${W_FAIL} -Wall -Wundef -Wshadow ${NO_UNUSED} ${F_DIAGNOSTICS_SHOW_OPTION} ${CFLAG_VISIBILITY} ${BASE_WARNINGS_FULL}" 40+ BASE_WARNINGS="${W_FAIL} -Wall -Wundef -Wshadow ${NO_UNUSED} ${F_DIAGNOSTICS_SHOW_OPTION} ${CFLAG_VISIBILITY} ${BASE_WARNINGS_FULL}"
41 if test "$ac_cv_safe_to_use_Wextra_" = "yes"; then : 41 if test "$ac_cv_safe_to_use_Wextra_" = "yes"; then :
42 BASE_WARNINGS="${BASE_WARNINGS} -Wextra" 42 BASE_WARNINGS="${BASE_WARNINGS} -Wextra"
43 else 43 else
44@@ -17978,7 +17978,7 @@ ac_link='$CXX -o conftest$ac_exeext $CXX 44@@ -18120,7 +18120,7 @@ ac_link='$CXX -o conftest$ac_exeext $CXX
45 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 45 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46  46
47 save_CXXFLAGS="$CXXFLAGS" 47 save_CXXFLAGS="$CXXFLAGS"
48- CXXFLAGS="-Werror -pedantic -Wmissing-declarations ${AM_CXXFLAGS}" 48- CXXFLAGS="-Werror -pedantic -Wmissing-declarations ${AM_CXXFLAGS}"
49+ CXXFLAGS="-Werror -Wmissing-declarations ${AM_CXXFLAGS}" 49+ CXXFLAGS="-Werror -Wmissing-declarations ${AM_CXXFLAGS}"
50 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
51 /* end confdefs.h. */ 51 /* end confdefs.h. */
52  52
53@@ -18021,7 +18021,7 @@ if test "${ac_cv_safe_to_use_Wlogical_op 53@@ -18163,7 +18163,7 @@ if test "${ac_cv_safe_to_use_Wlogical_op
54 $as_echo_n "(cached) " >&6 54 $as_echo_n "(cached) " >&6
55 else 55 else
56 save_CFLAGS="$CFLAGS" 56 save_CFLAGS="$CFLAGS"
57- CFLAGS="${W_FAIL} -pedantic -Wlogical-op ${AM_CFLAGS} ${CFLAGS}" 57- CFLAGS="${W_FAIL} -pedantic -Wlogical-op ${AM_CFLAGS} ${CFLAGS}"
58+ CFLAGS="${W_FAIL} -Wlogical-op ${AM_CFLAGS} ${CFLAGS}" 58+ CFLAGS="${W_FAIL} -Wlogical-op ${AM_CFLAGS} ${CFLAGS}"
59 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 59 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
60 /* end confdefs.h. */ 60 /* end confdefs.h. */
61  61
62@@ -18063,7 +18063,7 @@ ac_link='$CXX -o conftest$ac_exeext $CXX 62@@ -18205,7 +18205,7 @@ ac_link='$CXX -o conftest$ac_exeext $CXX
63 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 63 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
64  64
65 save_CXXFLAGS="${CXXFLAGS}" 65 save_CXXFLAGS="${CXXFLAGS}"
66- CXXFLAGS="${W_FAIL} -pedantic -Wredundant-decls ${AM_CXXFLAGS}" 66- CXXFLAGS="${W_FAIL} -pedantic -Wredundant-decls ${AM_CXXFLAGS}"
67+ CXXFLAGS="${W_FAIL} -Wredundant-decls ${AM_CXXFLAGS}" 67+ CXXFLAGS="${W_FAIL} -Wredundant-decls ${AM_CXXFLAGS}"
68 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 68 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
69 /* end confdefs.h. */ 69 /* end confdefs.h. */
70  70
71@@ -18113,7 +18113,7 @@ ac_link='$CXX -o conftest$ac_exeext $CXX 71@@ -18255,7 +18255,7 @@ ac_link='$CXX -o conftest$ac_exeext $CXX
72 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 72 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
73  73
74 save_CXXFLAGS="${CXXFLAGS}" 74 save_CXXFLAGS="${CXXFLAGS}"
75- CXXFLAGS="${W_FAIL} -pedantic -Wattributes -fvisibility=hidden ${AM_CXXFLAGS}" 75- CXXFLAGS="${W_FAIL} -pedantic -Wattributes -fvisibility=hidden ${AM_CXXFLAGS}"
76+ CXXFLAGS="${W_FAIL} -Wattributes -fvisibility=hidden ${AM_CXXFLAGS}" 76+ CXXFLAGS="${W_FAIL} -Wattributes -fvisibility=hidden ${AM_CXXFLAGS}"
77 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 77 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
78 /* end confdefs.h. */ 78 /* end confdefs.h. */
79  79
80@@ -18171,7 +18171,7 @@ if test "${ac_cv_safe_to_use_Wno_attribu 80@@ -18313,7 +18313,7 @@ if test "${ac_cv_safe_to_use_Wno_attribu
81 $as_echo_n "(cached) " >&6 81 $as_echo_n "(cached) " >&6
82 else 82 else
83 save_CFLAGS="$CFLAGS" 83 save_CFLAGS="$CFLAGS"
84- CFLAGS="${W_FAIL} -pedantic -Wno_attributes_ ${AM_CFLAGS} ${CFLAGS}" 84- CFLAGS="${W_FAIL} -pedantic -Wno_attributes_ ${AM_CFLAGS} ${CFLAGS}"
85+ CFLAGS="${W_FAIL} -Wno_attributes_ ${AM_CFLAGS} ${CFLAGS}" 85+ CFLAGS="${W_FAIL} -Wno_attributes_ ${AM_CFLAGS} ${CFLAGS}"
86 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 86 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
87 /* end confdefs.h. */ 87 /* end confdefs.h. */
88  88
 89@@ -21222,8 +21222,8 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 90 if test -z "$ac_cv_cxx_cinttypes"; then
 91 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 92 /* end confdefs.h. */
 93-#include $ac_cv_cxx_cstdint;
 94- #include <$location>
 95+#include $ac_cv_cxx_cstdint
 96+#include <$location>
 97 int
 98 main ()
 99 {

File Added: pkgsrc/databases/libcassandra/patches/patch-libcassandra_cassandra.cc
$NetBSD: patch-libcassandra_cassandra.cc,v 1.1 2013/05/30 15:36:29 joerg Exp $

--- libcassandra/cassandra.cc.orig	2013-05-30 10:33:52.000000000 +0000
+++ libcassandra/cassandra.cc
@@ -17,6 +17,13 @@
 #include "libcassandra/keyspace.h"
 #include "libcassandra/exception.h"
 
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+#include <memory>
+#else
+#include <tr1/memory>
+using std::tr1::shared_ptr;
+#endif
+
 using namespace std;
 using namespace org::apache::cassandra;
 using namespace libcassandra;
@@ -85,17 +92,17 @@ set<string> Cassandra::getKeyspaces()
 }
 
 
-tr1::shared_ptr<Keyspace> Cassandra::getKeyspace(const string &name)
+shared_ptr<Keyspace> Cassandra::getKeyspace(const string &name)
 {
   return getKeyspace(name, DCQUORUM);
 }
 
 
-tr1::shared_ptr<Keyspace> Cassandra::getKeyspace(const string &name,
+shared_ptr<Keyspace> Cassandra::getKeyspace(const string &name,
                                                  ConsistencyLevel level)
 {
   string keymap_name= buildKeyspaceMapName(name, level);
-  map<string, tr1::shared_ptr<Keyspace> >::iterator key_it= keyspace_map.find(keymap_name);
+  map<string, shared_ptr<Keyspace> >::iterator key_it= keyspace_map.find(keymap_name);
   if (key_it == keyspace_map.end())
   {
     getKeyspaces();
@@ -104,7 +111,7 @@ tr1::shared_ptr<Keyspace> Cassandra::get
     {
       map< string, map<string, string> > keyspace_desc;
       thrift_client->describe_keyspace(keyspace_desc, name);
-      tr1::shared_ptr<Keyspace> ret(new Keyspace(this, name, keyspace_desc, level));
+      shared_ptr<Keyspace> ret(new Keyspace(this, name, keyspace_desc, level));
       keyspace_map[keymap_name]= ret;
     }
     else
@@ -117,7 +124,7 @@ tr1::shared_ptr<Keyspace> Cassandra::get
 }
 
 
-void Cassandra::removeKeyspace(tr1::shared_ptr<Keyspace> k)
+void Cassandra::removeKeyspace(shared_ptr<Keyspace> k)
 {
   string keymap_name= buildKeyspaceMapName(k->getName(), k->getConsistencyLevel());
   keyspace_map.erase(keymap_name);

File Added: pkgsrc/databases/libcassandra/patches/patch-libcassandra_cassandra.h
$NetBSD: patch-libcassandra_cassandra.h,v 1.1 2013/05/30 15:36:29 joerg Exp $

--- libcassandra/cassandra.h.orig	2013-05-30 10:29:32.000000000 +0000
+++ libcassandra/cassandra.h
@@ -14,7 +14,11 @@
 #include <vector>
 #include <set>
 #include <map>
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+#include <memory>
+#else
 #include <tr1/memory>
+#endif
 
 #include "libgenthrift/cassandra_types.h"
 
@@ -65,17 +69,29 @@ public:
   /**
    * @return the keyspace with the given name.
    */
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+  std::shared_ptr<Keyspace> getKeyspace(const std::string &name);
+#else
   std::tr1::shared_ptr<Keyspace> getKeyspace(const std::string &name);
+#endif
 
   /**
    * @return the keyspace with the given name at the given consistency level.
    */
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+  std::shared_ptr<Keyspace> getKeyspace(const std::string &name, org::apache::cassandra::ConsistencyLevel level);
+#else
   std::tr1::shared_ptr<Keyspace> getKeyspace(const std::string &name, org::apache::cassandra::ConsistencyLevel level);
+#endif
 
   /**
    * Remove the given keyspace.
    */
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+  void removeKeyspace(std::shared_ptr<Keyspace> k);
+#else
   void removeKeyspace(std::tr1::shared_ptr<Keyspace> k);
+#endif
 
   /**
    * @return the target server cluster name.
@@ -128,7 +144,11 @@ private:
   std::string config_file;
   std::set<std::string> key_spaces;
   std::map<std::string, std::string> token_map;
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+  std::map<std::string, std::shared_ptr<Keyspace> > keyspace_map;
+#else
   std::map<std::string, std::tr1::shared_ptr<Keyspace> > keyspace_map;
+#endif
 
   Cassandra(const Cassandra&);
   Cassandra &operator=(const Cassandra&);

File Added: pkgsrc/databases/libcassandra/patches/patch-libcassandra_cassandra__factory.cc
$NetBSD: patch-libcassandra_cassandra__factory.cc,v 1.1 2013/05/30 15:36:29 joerg Exp $

--- libcassandra/cassandra_factory.cc.orig	2013-05-30 10:34:39.000000000 +0000
+++ libcassandra/cassandra_factory.cc
@@ -63,17 +63,17 @@ CassandraFactory::CassandraFactory(const
 CassandraFactory::~CassandraFactory() {}
 
 
-tr1::shared_ptr<Cassandra> CassandraFactory::create()
+std::shared_ptr<Cassandra> CassandraFactory::create()
 {
   /* Default is Buffered Transport */
   return create(false);
 }
 
 
-tr1::shared_ptr<Cassandra> CassandraFactory::create(bool framed_transport)
+std::shared_ptr<Cassandra> CassandraFactory::create(bool framed_transport)
 {
   CassandraClient *thrift_client= createThriftClient(host, port, framed_transport);
-  tr1::shared_ptr<Cassandra> ret(new Cassandra(thrift_client, host, port));
+  std::shared_ptr<Cassandra> ret(new Cassandra(thrift_client, host, port));
   return ret;
 }
 

File Added: pkgsrc/databases/libcassandra/patches/patch-libcassandra_cassandra__factory.h
$NetBSD: patch-libcassandra_cassandra__factory.h,v 1.1 2013/05/30 15:36:29 joerg Exp $

--- libcassandra/cassandra_factory.h.orig	2013-05-30 10:31:55.000000000 +0000
+++ libcassandra/cassandra_factory.h
@@ -12,7 +12,11 @@
 
 #include <string>
 #include <vector>
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+#include <memory>
+#else
 #include <tr1/memory>
+#endif
 
 namespace org 
 { 
@@ -44,8 +48,13 @@ public:
   /**
    * @return a shared ptr which points to a Cassandra client
    */
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+  std::shared_ptr<Cassandra> create();
+  std::shared_ptr<Cassandra> create(bool framed_transport);
+#else
   std::tr1::shared_ptr<Cassandra> create();
   std::tr1::shared_ptr<Cassandra> create(bool framed_transport);
+#endif
 
   int getPort() const;
   const std::string &getHost() const;

File Added: pkgsrc/databases/libcassandra/patches/patch-libcassandra_keyspace__factory.cc
$NetBSD: patch-libcassandra_keyspace__factory.cc,v 1.1 2013/05/30 15:36:29 joerg Exp $

--- libcassandra/keyspace_factory.cc.orig	2013-05-30 11:03:36.000000000 +0000
+++ libcassandra/keyspace_factory.cc
@@ -34,6 +34,16 @@ KeyspaceFactory::KeyspaceFactory() {}
 KeyspaceFactory::~KeyspaceFactory() {}
 
 
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+std::shared_ptr<Keyspace> KeyspaceFactory::create(Cassandra *client,
+                                                  const string &name,
+                                                  const map< string, map<string, string> > &descrip,
+                                                  ConsistencyLevel level)
+{
+  std::shared_ptr<Keyspace> ret(new Keyspace(client, name, descrip, level));
+  return ret;
+}
+#else
 tr1::shared_ptr<Keyspace> KeyspaceFactory::create(Cassandra *client,
                                                   const string &name,
                                                   const map< string, map<string, string> > &descrip,
@@ -42,4 +52,4 @@ tr1::shared_ptr<Keyspace> KeyspaceFactor
   tr1::shared_ptr<Keyspace> ret(new Keyspace(client, name, descrip, level));
   return ret;
 }
-
+#endif
\ No newline at end of file

File Added: pkgsrc/databases/libcassandra/patches/patch-libcassandra_keyspace__factory.h
$NetBSD: patch-libcassandra_keyspace__factory.h,v 1.1 2013/05/30 15:36:29 joerg Exp $

--- libcassandra/keyspace_factory.h.orig	2013-05-30 10:36:25.000000000 +0000
+++ libcassandra/keyspace_factory.h
@@ -12,7 +12,11 @@
 
 #include <string>
 #include <map>
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+#include <memory>
+#else
 #include <tr1/memory>
+#endif
 
 namespace libcassandra
 {
@@ -31,10 +35,17 @@ public:
   /**
    * @return a shared ptr which points to a Keyspace class
    */
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+  std::shared_ptr<Keyspace> create(Cassandra *client,
+                                        const std::string &name,
+                                        const std::map< std::string, std::map<std::string, std::string> > &descrip,
+                                        org::apache::cassandra::ConsistencyLevel level);
+#else
   std::tr1::shared_ptr<Keyspace> create(Cassandra *client,
                                         const std::string &name,
                                         const std::map< std::string, std::map<std::string, std::string> > &descrip,
                                         org::apache::cassandra::ConsistencyLevel level);
+#endif
 
 };