summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-05-06 14:44:07 +0000
committerjoerg <joerg@pkgsrc.org>2013-05-06 14:44:07 +0000
commit2b68f9d7d624d32d6c5bd7959189b6c3990ff020 (patch)
tree2b2ff499d1a003938577453231db24fb1e6069fa /devel
parentc475a296aade7323ae84da0f1f26cec09c1f9598 (diff)
downloadpkgsrc-2b68f9d7d624d32d6c5bd7959189b6c3990ff020.tar.gz
When using libc++ or C++11, use the standard namespace.
Diffstat (limited to 'devel')
-rw-r--r--devel/lutok/distinfo4
-rw-r--r--devel/lutok/patches/patch-debug.hpp29
-rw-r--r--devel/lutok/patches/patch-state.hpp29
3 files changed, 61 insertions, 1 deletions
diff --git a/devel/lutok/distinfo b/devel/lutok/distinfo
index 0e4cab78f7c..2da4a07561d 100644
--- a/devel/lutok/distinfo
+++ b/devel/lutok/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.2 2012/05/30 22:48:36 jmmv Exp $
+$NetBSD: distinfo,v 1.3 2013/05/06 14:44:07 joerg Exp $
SHA1 (lutok-0.2.tar.gz) = ca44640bba4bd50aca28e2ed10fb2ec99f14573f
RMD160 (lutok-0.2.tar.gz) = ee91a8acf896baac276fab7d748d6e695702cf24
Size (lutok-0.2.tar.gz) = 492333 bytes
+SHA1 (patch-debug.hpp) = c2a0b45a6ab9cb5c013d9bb2006df33ff4fb2bc4
+SHA1 (patch-state.hpp) = 7ecd450f871fd14255b0be15e0ff88f7da5da185
diff --git a/devel/lutok/patches/patch-debug.hpp b/devel/lutok/patches/patch-debug.hpp
new file mode 100644
index 00000000000..fbe33a93013
--- /dev/null
+++ b/devel/lutok/patches/patch-debug.hpp
@@ -0,0 +1,29 @@
+$NetBSD: patch-debug.hpp,v 1.1 2013/05/06 14:44:07 joerg Exp $
+
+--- debug.hpp.orig 2013-04-30 22:44:05.000000000 +0000
++++ debug.hpp
+@@ -33,8 +33,11 @@
+ #define LUTOK_DEBUG_HPP
+
+ #include <string>
++#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
++#include <memory>
++#else
+ #include <tr1/memory>
+-
++#endif
+
+ namespace lutok {
+
+@@ -56,7 +59,11 @@ class debug {
+ struct impl;
+
+ /// Pointer to the shared internal implementation.
++#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
++ std::shared_ptr< impl > _pimpl;
++#else
+ std::tr1::shared_ptr< impl > _pimpl;
++#endif
+
+ public:
+ debug(void);
diff --git a/devel/lutok/patches/patch-state.hpp b/devel/lutok/patches/patch-state.hpp
new file mode 100644
index 00000000000..e72f7517ef5
--- /dev/null
+++ b/devel/lutok/patches/patch-state.hpp
@@ -0,0 +1,29 @@
+$NetBSD: patch-state.hpp,v 1.1 2013/05/06 14:44:07 joerg Exp $
+
+--- state.hpp.orig 2013-04-30 22:43:07.000000000 +0000
++++ state.hpp
+@@ -33,7 +33,12 @@
+ #define LUTOK_STATE_HPP
+
+ #include <string>
++
++#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
++#include <memory>
++#else
+ #include <tr1/memory>
++#endif
+
+ namespace lutok {
+
+@@ -72,7 +77,11 @@ class state {
+ struct impl;
+
+ /// Pointer to the shared internal implementation.
++#if defined(_LIBCPP_VERSION) || __cplusplus >= 201103L
++ std::shared_ptr< impl > _pimpl;
++#else
+ std::tr1::shared_ptr< impl > _pimpl;
++#endif
+
+ void* new_userdata_voidp(const size_t);
+ void* to_userdata_voidp(const int);