aboutsummaryrefslogtreecommitdiff
path: root/textproc/luceneplusplus
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-02-09 14:59:56 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-02-09 14:59:56 +0000
commit8aea8b58536acb3b6073ae26a0b248cf522bd61a (patch)
treed2035dbcd34f1e69712e0683d1cb12cb64c01b15 /textproc/luceneplusplus
parente638ab1a396f7ae6640cc100e7f5c7cdfb3e0da1 (diff)
downloadports-8aea8b58536acb3b6073ae26a0b248cf522bd61a.tar.gz
ports-8aea8b58536acb3b6073ae26a0b248cf522bd61a.zip
- Fix build with boost 1.60
PR: 199601 Approved by: portmgr blanket
Notes
Notes: svn path=/head/; revision=408572
Diffstat (limited to 'textproc/luceneplusplus')
-rw-r--r--textproc/luceneplusplus/files/patch-include_VariantUtils.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/textproc/luceneplusplus/files/patch-include_VariantUtils.h b/textproc/luceneplusplus/files/patch-include_VariantUtils.h
new file mode 100644
index 000000000000..acd4be2bdc9b
--- /dev/null
+++ b/textproc/luceneplusplus/files/patch-include_VariantUtils.h
@@ -0,0 +1,26 @@
+Obtained from:
+
+ https://github.com/luceneplusplus/LucenePlusPlus/commit/1987082cf9278a639d772b4f35a8ae2d34944177
+
+--- include/VariantUtils.h.orig 2015-01-30 16:14:22 UTC
++++ include/VariantUtils.h
+@@ -8,6 +8,7 @@
+ #define VARIANTUTILS_H
+
+ #include <boost/any.hpp>
++#include <boost/version.hpp>
+ #include "Lucene.h"
+ #include "MiscUtils.h"
+
+@@ -22,7 +23,11 @@ public:
+
+ template <typename TYPE, typename VAR>
+ static TYPE get(VAR var) {
++#if BOOST_VERSION < 105800
+ return var.type() == typeid(TYPE) ? boost::get<TYPE>(var) : TYPE();
++#else
++ return var.type() == typeid(TYPE) ? boost::relaxed_get<TYPE>(var) : TYPE();
++#endif
+ }
+
+ template <typename TYPE, typename VAR>