From 584e806ba66f7b9a0a1c9fca4ab8ccbb13e1e9c6 Mon Sep 17 00:00:00 2001 From: Alaisdair West Date: Mon, 3 Oct 2022 20:37:25 +1000 Subject: [PATCH] New package: bastet-0.43.2 Close: #39558 --- srcpkgs/bastet/INSTALL | 9 ++++++++ srcpkgs/bastet/patches/musl.patch | 10 +++++++++ srcpkgs/bastet/patches/new-boost.patch | 21 +++++++++++++++++++ .../bastet/patches/scorer-names-bugfix.patch | 11 ++++++++++ srcpkgs/bastet/template | 20 ++++++++++++++++++ 5 files changed, 71 insertions(+) create mode 100644 srcpkgs/bastet/INSTALL create mode 100644 srcpkgs/bastet/patches/musl.patch create mode 100644 srcpkgs/bastet/patches/new-boost.patch create mode 100644 srcpkgs/bastet/patches/scorer-names-bugfix.patch create mode 100644 srcpkgs/bastet/template diff --git a/srcpkgs/bastet/INSTALL b/srcpkgs/bastet/INSTALL new file mode 100644 index 00000000000..e5bcb9cc07d --- /dev/null +++ b/srcpkgs/bastet/INSTALL @@ -0,0 +1,9 @@ +case "${ACTION}" in +post) + if [ ! -f ./var/games/bastet.scores2 ]; then + mkdir -p var/games + touch var/games/bastet.scores2 + chmod 0666 var/games/bastet.scores2 + fi + ;; +esac diff --git a/srcpkgs/bastet/patches/musl.patch b/srcpkgs/bastet/patches/musl.patch new file mode 100644 index 00000000000..08fb4f71535 --- /dev/null +++ b/srcpkgs/bastet/patches/musl.patch @@ -0,0 +1,10 @@ +--- a/Ui.cpp ++++ b/Ui.cpp +@@ -27,6 +27,7 @@ + #include + #include + #include ++#include + + using namespace std; + using namespace boost; diff --git a/srcpkgs/bastet/patches/new-boost.patch b/srcpkgs/bastet/patches/new-boost.patch new file mode 100644 index 00000000000..3a69d912b0e --- /dev/null +++ b/srcpkgs/bastet/patches/new-boost.patch @@ -0,0 +1,21 @@ +--- a/BastetBlockChooser.hpp ++++ b/BastetBlockChooser.hpp +@@ -23,8 +23,7 @@ + + #include "Well.hpp" + +-#include +-#include ++#include + #include + + namespace Bastet{ +@@ -75,7 +74,7 @@ namespace Bastet{ + public: + Searcher(BlockType b, const Well *well, Vertex v, WellVisitor *visitor); + private: +- std::tr1::unordered_set _visited; ++ boost::unordered_set _visited; + //std::set _visited; ^^ the above is more efficient, we need to do many inserts + BlockType _block; + const Well *_well; diff --git a/srcpkgs/bastet/patches/scorer-names-bugfix.patch b/srcpkgs/bastet/patches/scorer-names-bugfix.patch new file mode 100644 index 00000000000..2d0befa425f --- /dev/null +++ b/srcpkgs/bastet/patches/scorer-names-bugfix.patch @@ -0,0 +1,11 @@ +--- a/Config.cpp ++++ b/Config.cpp +@@ -187,7 +187,7 @@ namespace Bastet{ + for(int difficulty=0;difficulty