Mon May 6 14:42:54 2013 UTC ()
Add missing include. Use C++11 STL for libc++ and when in C++11 mode.


(joerg)
diff -r1.49 -r1.50 pkgsrc/devel/monotone/distinfo
diff -r0 -r1.1 pkgsrc/devel/monotone/patches/patch-src_automate__reader.hh
diff -r0 -r1.1 pkgsrc/devel/monotone/patches/patch-src_hash__map.hh

cvs diff -r1.49 -r1.50 pkgsrc/devel/monotone/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/monotone/distinfo 2013/03/02 18:15:39 1.49
+++ pkgsrc/devel/monotone/distinfo 2013/05/06 14:42:53 1.50
@@ -1,8 +1,10 @@ @@ -1,8 +1,10 @@
1$NetBSD: distinfo,v 1.49 2013/03/02 18:15:39 joerg Exp $ 1$NetBSD: distinfo,v 1.50 2013/05/06 14:42:53 joerg Exp $
2 2
3SHA1 (monotone-1.0.tar.bz2) = aac556bb26d92910b74b65450a0be6c5045e2052 3SHA1 (monotone-1.0.tar.bz2) = aac556bb26d92910b74b65450a0be6c5045e2052
4RMD160 (monotone-1.0.tar.bz2) = 4c0813ae0c11f271dc88f42dd8814e474a67e988 4RMD160 (monotone-1.0.tar.bz2) = 4c0813ae0c11f271dc88f42dd8814e474a67e988
5Size (monotone-1.0.tar.bz2) = 3588074 bytes 5Size (monotone-1.0.tar.bz2) = 3588074 bytes
 6SHA1 (patch-src_automate__reader.hh) = 90da65f7eb0ae329ad6324b3c747e2d449cb25cb
6SHA1 (patch-src_database.cc) = 7f8213917256c395d0cf994eb218647c3f44a63f 7SHA1 (patch-src_database.cc) = 7f8213917256c395d0cf994eb218647c3f44a63f
 8SHA1 (patch-src_hash__map.hh) = 03b3da72bc4a953ccc7b7ae0be4a2975e85ea0b3
7SHA1 (patch-src_key__store.cc) = 4225dff8f1533794c0390822c8e17795bf805b6a 9SHA1 (patch-src_key__store.cc) = 4225dff8f1533794c0390822c8e17795bf805b6a
8SHA1 (patch-src_ssh__agent.cc) = 404c17a7c0194ee8185fa26f377112ae35fd1ca2 10SHA1 (patch-src_ssh__agent.cc) = 404c17a7c0194ee8185fa26f377112ae35fd1ca2

File Added: pkgsrc/devel/monotone/patches/Attic/patch-src_automate__reader.hh
$NetBSD: patch-src_automate__reader.hh,v 1.1 2013/05/06 14:42:54 joerg Exp $

--- src/automate_reader.hh.orig	2013-05-06 13:23:37.000000000 +0000
+++ src/automate_reader.hh
@@ -12,6 +12,7 @@
 #ifndef __AUTOMATE_READER_HH__
 #define __AUTOMATE_READER_HH__
 
+#include <ios>
 #include <vector>
 
 class automate_reader

File Added: pkgsrc/devel/monotone/patches/patch-src_hash__map.hh
$NetBSD: patch-src_hash__map.hh,v 1.1 2013/05/06 14:42:54 joerg Exp $

--- src/hash_map.hh.orig	2013-05-06 13:12:19.000000000 +0000
+++ src/hash_map.hh
@@ -50,7 +50,43 @@ namespace hashmap {
   };
 }
 
-#if HAVE_TR1_UNORDERED_MAP_AND_SET && HAVE_WORKING_TR1_UNORDERED_MAP_AND_SET
+#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
+#define HASHMAP_PRESENT
+#include <unordered_map>
+#include <unordered_set>
+
+namespace hashmap {
+  template<>
+  struct hash<std::string>
+  {
+    size_t operator()(std::string const & s) const
+    {
+      return std::hash<std::string>()(s);
+    }
+  };
+
+  template<typename _Key, typename _Value>
+  class hash_map : public std::unordered_map<_Key,
+                                                  _Value,
+                                                  hash<_Key>,
+                                                  equal_to<_Key> >
+  {};
+
+  template<typename _Key>
+  class hash_set : public std::unordered_set<_Key,
+                                                  hash<_Key>,
+                                                  equal_to<_Key> >
+  {};
+
+  template<typename _Key, typename _Value>
+  class hash_multimap : public std::unordered_multimap<_Key,
+                                                            _Value,
+                                                            hash<_Key>,
+                                                            equal_to<_Key> >
+  {};
+}
+
+#elif HAVE_TR1_UNORDERED_MAP_AND_SET && HAVE_WORKING_TR1_UNORDERED_MAP_AND_SET
 #define HASHMAP_PRESENT
 #include <tr1/functional>
 #include <tr1/unordered_map>