summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-05-06 14:42:53 +0000
committerjoerg <joerg@pkgsrc.org>2013-05-06 14:42:53 +0000
commitc475a296aade7323ae84da0f1f26cec09c1f9598 (patch)
treed20ff89eeea7896cc323d4a7296e4156a7568183 /devel
parent2f5577be191f5ec4d9d68e11486326c8b2e5de14 (diff)
downloadpkgsrc-c475a296aade7323ae84da0f1f26cec09c1f9598.tar.gz
Add missing include. Use C++11 STL for libc++ and when in C++11 mode.
Diffstat (limited to 'devel')
-rw-r--r--devel/monotone/distinfo4
-rw-r--r--devel/monotone/patches/patch-src_automate__reader.hh12
-rw-r--r--devel/monotone/patches/patch-src_hash__map.hh49
3 files changed, 64 insertions, 1 deletions
diff --git a/devel/monotone/distinfo b/devel/monotone/distinfo
index 1e082e6e3bf..ff7e12a37b0 100644
--- a/devel/monotone/distinfo
+++ b/devel/monotone/distinfo
@@ -1,8 +1,10 @@
-$NetBSD: distinfo,v 1.49 2013/03/02 18:15:39 joerg Exp $
+$NetBSD: distinfo,v 1.50 2013/05/06 14:42:53 joerg Exp $
SHA1 (monotone-1.0.tar.bz2) = aac556bb26d92910b74b65450a0be6c5045e2052
RMD160 (monotone-1.0.tar.bz2) = 4c0813ae0c11f271dc88f42dd8814e474a67e988
Size (monotone-1.0.tar.bz2) = 3588074 bytes
+SHA1 (patch-src_automate__reader.hh) = 90da65f7eb0ae329ad6324b3c747e2d449cb25cb
SHA1 (patch-src_database.cc) = 7f8213917256c395d0cf994eb218647c3f44a63f
+SHA1 (patch-src_hash__map.hh) = 03b3da72bc4a953ccc7b7ae0be4a2975e85ea0b3
SHA1 (patch-src_key__store.cc) = 4225dff8f1533794c0390822c8e17795bf805b6a
SHA1 (patch-src_ssh__agent.cc) = 404c17a7c0194ee8185fa26f377112ae35fd1ca2
diff --git a/devel/monotone/patches/patch-src_automate__reader.hh b/devel/monotone/patches/patch-src_automate__reader.hh
new file mode 100644
index 00000000000..8634792d70d
--- /dev/null
+++ b/devel/monotone/patches/patch-src_automate__reader.hh
@@ -0,0 +1,12 @@
+$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
diff --git a/devel/monotone/patches/patch-src_hash__map.hh b/devel/monotone/patches/patch-src_hash__map.hh
new file mode 100644
index 00000000000..07a471f58c3
--- /dev/null
+++ b/devel/monotone/patches/patch-src_hash__map.hh
@@ -0,0 +1,49 @@
+$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>