diff options
author | rakuco <rakuco@FreeBSD.org> | 2013-09-17 20:53:40 +0800 |
---|---|---|
committer | rakuco <rakuco@FreeBSD.org> | 2013-09-17 20:53:40 +0800 |
commit | 84404e047c7e0d683de4f103fcc955d88b0a46ba (patch) | |
tree | 8b18ba71ea97d3d7d85af666b105a6591e95a6d5 /deskutils/kdepim4/files | |
parent | 1e6cb2c7653ea17fcae9908270d57e8bc93c7cd7 (diff) | |
download | freebsd-ports-gnome-84404e047c7e0d683de4f103fcc955d88b0a46ba.tar.gz freebsd-ports-gnome-84404e047c7e0d683de4f103fcc955d88b0a46ba.tar.zst freebsd-ports-gnome-84404e047c7e0d683de4f103fcc955d88b0a46ba.zip |
Add some patches to make the port build with libc++.
This isn't a proper fix, but is good enough while I do something more
appropriate upstream.
Based on a patch originally written by lstewart@.
Diffstat (limited to 'deskutils/kdepim4/files')
3 files changed, 78 insertions, 0 deletions
diff --git a/deskutils/kdepim4/files/patch-kleopatra__models__keylistmodel.cpp b/deskutils/kdepim4/files/patch-kleopatra__models__keylistmodel.cpp new file mode 100644 index 000000000000..a53c01bc1895 --- /dev/null +++ b/deskutils/kdepim4/files/patch-kleopatra__models__keylistmodel.cpp @@ -0,0 +1,29 @@ +--- kleopatra/models/keylistmodel.cpp ++++ kleopatra/models/keylistmodel.cpp +@@ -73,7 +73,7 @@ + #include <iterator> + #include <cassert> + +-#ifdef __GNUC__ ++#ifdef __GLIBCXX__ + #include <ext/algorithm> // for is_sorted + #endif + +@@ -460,7 +460,7 @@ QModelIndex FlatKeyListModel::doMapFromKey( const Key & key, int col ) const { + } + + QList<QModelIndex> FlatKeyListModel::doAddKeys( const std::vector<Key> & keys ) { +-#ifdef __GNUC__ ++#ifdef __GLIBCXX__ + assert( __gnu_cxx::is_sorted( keys.begin(), keys.end(), _detail::ByFingerprint<std::less>() ) ); + #endif + if ( keys.empty() ) +@@ -717,7 +717,7 @@ static std::vector<Key> topological_sort( const std::vector<Key> & keys ) { + } + + QList<QModelIndex> HierarchicalKeyListModel::doAddKeys( const std::vector<Key> & keys ) { +-#ifdef __GNUC__ ++#ifdef __GLIBCXX__ + assert( __gnu_cxx::is_sorted( keys.begin(), keys.end(), _detail::ByFingerprint<std::less>() ) ); + #endif + if ( keys.empty() ) diff --git a/deskutils/kdepim4/files/patch-kleopatra__uiserver__assuanserverconnection.cpp b/deskutils/kdepim4/files/patch-kleopatra__uiserver__assuanserverconnection.cpp new file mode 100644 index 000000000000..0a97de117e40 --- /dev/null +++ b/deskutils/kdepim4/files/patch-kleopatra__uiserver__assuanserverconnection.cpp @@ -0,0 +1,20 @@ +--- kleopatra/uiserver/assuanserverconnection.cpp ++++ kleopatra/uiserver/assuanserverconnection.cpp +@@ -96,7 +96,7 @@ + + #include <errno.h> + +-#ifdef __GNUC__ ++#ifdef __GLIBCXX__ + # include <ext/algorithm> // for is_sorted + #endif + +@@ -827,7 +827,7 @@ AssuanServerConnection::Private::Private( assuan_fd_t fd_, const std::vector< sh + sessionId( 0 ), + factories( factories_ ) + { +-#ifdef __GNUC__ ++#ifdef __GLIBCXX__ + assert( __gnu_cxx::is_sorted( factories_.begin(), factories_.end(), _detail::ByName<std::less>() ) ); + #endif + diff --git a/deskutils/kdepim4/files/patch-kleopatra__utils__classify.cpp b/deskutils/kdepim4/files/patch-kleopatra__utils__classify.cpp new file mode 100644 index 000000000000..a794cf62bb70 --- /dev/null +++ b/deskutils/kdepim4/files/patch-kleopatra__utils__classify.cpp @@ -0,0 +1,29 @@ +--- kleopatra/utils/classify.cpp ++++ kleopatra/utils/classify.cpp +@@ -43,7 +43,7 @@ + + #include <boost/range.hpp> + +-#ifdef __GNUC__ ++#ifdef __GLIBCXX__ + # include <ext/algorithm> + #endif + +@@ -150,7 +150,7 @@ unsigned int Kleo::classify( const QStringList & fileNames ) { + } + + unsigned int Kleo::classify( const QString & filename ) { +-#ifdef __GNUC__ ++#ifdef __GLIBCXX__ + assert( __gnu_cxx::is_sorted( begin( classifications ), end( classifications ), ByExtension<std::less>() ) ); + #endif + +@@ -179,7 +179,7 @@ unsigned int Kleo::classify( const QString & filename ) { + } + + unsigned int Kleo::classifyContent( const QByteArray & data ) { +-#ifdef __GNUC__ ++#ifdef __GLIBCXX__ + assert( __gnu_cxx::is_sorted( begin( content_classifications ), end( content_classifications ), ByContent<std::less>(100) ) ); + #endif + |