libraries/SimGear: Updated for version 2020.3.5.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Lenard Spencer 2021-01-02 08:49:11 +07:00 committed by Willy Sudiarto Raharjo
parent a03a0aa247
commit 90ff246dbb
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 40 additions and 4 deletions

View File

@ -25,7 +25,7 @@
PRGNAM=SimGear
SRCNAM=simgear
VERSION=${VERSION:-2020.3.4}
VERSION=${VERSION:-2020.3.5}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -71,6 +71,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
# patch for latest boost:
patch -p1 < $CWD/simgear-boost-1.75.patch
mkdir -p build
cd build
cmake \

View File

@ -1,8 +1,8 @@
PRGNAM="SimGear"
VERSION="2020.3.4"
VERSION="2020.3.5"
HOMEPAGE="http://wiki.flightgear.org/SimGear"
DOWNLOAD="https://downloads.sourceforge.net/flightgear/simgear-2020.3.4.tar.bz2"
MD5SUM="b1c0cfce037609a42855c7e6c43ec9a9"
DOWNLOAD="https://downloads.sourceforge.net/flightgear/simgear-2020.3.5.tar.bz2"
MD5SUM="47ac92796698ce7eea8f843b92b1243d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="OpenSceneGraph freealut plib"

View File

@ -0,0 +1,33 @@
diff -Naur simgear-2020.3.5.orig/simgear/props/props.cxx simgear-2020.3.5/simgear/props/props.cxx
--- simgear-2020.3.5.orig/simgear/props/props.cxx 2020-12-18 06:42:37.000000000 -0500
+++ simgear-2020.3.5/simgear/props/props.cxx 2020-12-26 17:01:19.770916937 -0500
@@ -566,23 +573,15 @@
}
}
#else
-template<typename Range>
-SGPropertyNode*
-find_node (SGPropertyNode * current,
- const Range& path,
- bool create,
- int last_index = -1)
-{
+template <typename Range>
+SGPropertyNode *find_node(SGPropertyNode *current, const Range &path,
+ bool create, int last_index = -1) {
using namespace boost;
- typedef split_iterator<typename range_result_iterator<Range>::type>
- PathSplitIterator;
-
- PathSplitIterator itr
- = make_split_iterator(path, first_finder("/", is_equal()));
+ auto itr = make_split_iterator(path, first_finder("/", is_equal()));
if (*path.begin() == '/')
return find_node_aux(current->getRootNode(), itr, create, last_index);
- else
- return find_node_aux(current, itr, create, last_index);
+ else
+ return find_node_aux(current, itr, create, last_index);
}
#endif