diff options
| author | David Thompson <dthompson2@worcester.edu> | 2015-01-02 10:28:47 -0500 |
|---|---|---|
| committer | David Thompson <dthompson2@worcester.edu> | 2015-01-02 16:46:41 -0500 |
| commit | 4b2fd119befd4b4fdeb596bfc12fa0082ba94507 (patch) | |
| tree | 4ec4c91d135bc97e3533cac047518f5383075670 | |
| parent | f4e9727786e69533c4b255d5558a992a475ad3b4 (diff) | |
gnu: minetest: Update to 0.4.11.
* gnu/packages/patches/minetest-subgame-env-var.patch: Delete.
* gnu-system.am (dist_patch_DATA): Remove patch.
* gnu/packages/games.scm (minetest, minetest-data): Update to 0.4.11.
| -rw-r--r-- | gnu-system.am | 1 | ||||
| -rw-r--r-- | gnu/packages/games.scm | 11 | ||||
| -rw-r--r-- | gnu/packages/patches/minetest-subgame-env-var.patch | 92 |
3 files changed, 4 insertions, 100 deletions
diff --git a/gnu-system.am b/gnu-system.am index dc881bb31d0..2baf9357796 100644 --- a/gnu-system.am +++ b/gnu-system.am | |||
| @@ -415,7 +415,6 @@ dist_patch_DATA = \ | |||
| 415 | gnu/packages/patches/mc-fix-ncurses-build.patch \ | 415 | gnu/packages/patches/mc-fix-ncurses-build.patch \ |
| 416 | gnu/packages/patches/mcron-install.patch \ | 416 | gnu/packages/patches/mcron-install.patch \ |
| 417 | gnu/packages/patches/mhash-keygen-test-segfault.patch \ | 417 | gnu/packages/patches/mhash-keygen-test-segfault.patch \ |
| 418 | gnu/packages/patches/minetest-subgame-env-var.patch \ | ||
| 419 | gnu/packages/patches/mit-krb5-init-fix.patch \ | 418 | gnu/packages/patches/mit-krb5-init-fix.patch \ |
| 420 | gnu/packages/patches/mpc123-initialize-ao.patch \ | 419 | gnu/packages/patches/mpc123-initialize-ao.patch \ |
| 421 | gnu/packages/patches/module-init-tools-moduledir.patch \ | 420 | gnu/packages/patches/module-init-tools-moduledir.patch \ |
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 066e0e6c46e..82cdbc55c42 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm | |||
| @@ -638,7 +638,7 @@ for common mesh file formats, and collision detection.") | |||
| 638 | (define minetest-data | 638 | (define minetest-data |
| 639 | (package | 639 | (package |
| 640 | (name "minetest-data") | 640 | (name "minetest-data") |
| 641 | (version "0.4.10") | 641 | (version "0.4.11") |
| 642 | (source (origin | 642 | (source (origin |
| 643 | (method url-fetch) | 643 | (method url-fetch) |
| 644 | (uri (string-append | 644 | (uri (string-append |
| @@ -646,7 +646,7 @@ for common mesh file formats, and collision detection.") | |||
| 646 | version ".tar.gz")) | 646 | version ".tar.gz")) |
| 647 | (sha256 | 647 | (sha256 |
| 648 | (base32 | 648 | (base32 |
| 649 | "09mr71kl7mf4ihszqz1vnwk814p7fvqknad150iic2340a7qzf0i")))) | 649 | "0hzb27srv6f2j84dpxx2p0p0aaq9vdp5jvbrfpklb5q5ssdjxvc6")))) |
| 650 | (build-system trivial-build-system) | 650 | (build-system trivial-build-system) |
| 651 | (native-inputs | 651 | (native-inputs |
| 652 | `(("source" ,source) | 652 | `(("source" ,source) |
| @@ -678,7 +678,7 @@ for common mesh file formats, and collision detection.") | |||
| 678 | (define-public minetest | 678 | (define-public minetest |
| 679 | (package | 679 | (package |
| 680 | (name "minetest") | 680 | (name "minetest") |
| 681 | (version "0.4.10") | 681 | (version "0.4.11") |
| 682 | (source (origin | 682 | (source (origin |
| 683 | (method url-fetch) | 683 | (method url-fetch) |
| 684 | (uri (string-append | 684 | (uri (string-append |
| @@ -686,10 +686,7 @@ for common mesh file formats, and collision detection.") | |||
| 686 | version ".tar.gz")) | 686 | version ".tar.gz")) |
| 687 | (sha256 | 687 | (sha256 |
| 688 | (base32 | 688 | (base32 |
| 689 | "1xxv0g83iqszjgwnbdcbsprqg76cb6jnbsh5qhm7lcwx4wy2y2k2")) | 689 | "0h223svzkvp63b77nqfxy7k8whw4543gahs3kxd3x4myi5ax5z5f")))) |
| 690 | ;; This patch will be included in future upstream releases. | ||
| 691 | ;; See: https://github.com/minetest/minetest/commit/fd5eaae2babb322f8a3e2acab55a12e218814c8e | ||
| 692 | (patches (list (search-patch "minetest-subgame-env-var.patch"))))) | ||
| 693 | (build-system cmake-build-system) | 690 | (build-system cmake-build-system) |
| 694 | (arguments | 691 | (arguments |
| 695 | '(#:modules ((guix build utils) | 692 | '(#:modules ((guix build utils) |
diff --git a/gnu/packages/patches/minetest-subgame-env-var.patch b/gnu/packages/patches/minetest-subgame-env-var.patch deleted file mode 100644 index de782284c94..00000000000 --- a/gnu/packages/patches/minetest-subgame-env-var.patch +++ /dev/null | |||
| @@ -1,92 +0,0 @@ | |||
| 1 | From fd5eaae2babb322f8a3e2acab55a12e218814c8e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: David Thompson <dthompson2@worcester.edu> | ||
| 3 | Date: Sat, 6 Sep 2014 13:21:46 -0400 | ||
| 4 | Subject: [PATCH] Search for subgames using $MINETEST_SUBGAME_PATH. | ||
| 5 | |||
| 6 | --- | ||
| 7 | doc/minetest.6 | 6 ++++++ | ||
| 8 | src/subgame.cpp | 30 ++++++++++++++++++++++++++++++ | ||
| 9 | 2 files changed, 36 insertions(+) | ||
| 10 | |||
| 11 | diff --git a/doc/minetest.6 b/doc/minetest.6 | ||
| 12 | index d94c12c..ff54520 100644 | ||
| 13 | --- a/doc/minetest.6 | ||
| 14 | +++ b/doc/minetest.6 | ||
| 15 | @@ -83,6 +83,12 @@ Set world path | ||
| 16 | Migrate from current map backend to another. Possible values are sqlite3 | ||
| 17 | and leveldb. Only works when using --server. | ||
| 18 | |||
| 19 | +.SH ENVIRONMENT VARIABLES | ||
| 20 | + | ||
| 21 | +.TP | ||
| 22 | +MINETEST_SUBGAME_PATH | ||
| 23 | +Colon delimited list of directories to search for subgames. | ||
| 24 | + | ||
| 25 | .SH BUGS | ||
| 26 | Please report all bugs to Perttu Ahola <celeron55@gmail.com>. | ||
| 27 | |||
| 28 | diff --git a/src/subgame.cpp b/src/subgame.cpp | ||
| 29 | index f2465c9..e86655b 100644 | ||
| 30 | --- a/src/subgame.cpp | ||
| 31 | +++ b/src/subgame.cpp | ||
| 32 | @@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc., | ||
| 33 | #include "filesys.h" | ||
| 34 | #include "settings.h" | ||
| 35 | #include "log.h" | ||
| 36 | +#include "strfnd.h" | ||
| 37 | #ifndef SERVER | ||
| 38 | #include "tile.h" // getImagePath | ||
| 39 | #endif | ||
| 40 | @@ -59,6 +60,17 @@ struct GameFindPath | ||
| 41 | {} | ||
| 42 | }; | ||
| 43 | |||
| 44 | +Strfnd getSubgamePathEnv() { | ||
| 45 | + std::string sp; | ||
| 46 | + char *subgame_path = getenv("MINETEST_SUBGAME_PATH"); | ||
| 47 | + | ||
| 48 | + if(subgame_path) { | ||
| 49 | + sp = std::string(subgame_path); | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + return Strfnd(sp); | ||
| 53 | +} | ||
| 54 | + | ||
| 55 | SubgameSpec findSubgame(const std::string &id) | ||
| 56 | { | ||
| 57 | if(id == "") | ||
| 58 | @@ -66,6 +78,17 @@ SubgameSpec findSubgame(const std::string &id) | ||
| 59 | std::string share = porting::path_share; | ||
| 60 | std::string user = porting::path_user; | ||
| 61 | std::vector<GameFindPath> find_paths; | ||
| 62 | + | ||
| 63 | + Strfnd search_paths = getSubgamePathEnv(); | ||
| 64 | + | ||
| 65 | + while(!search_paths.atend()) { | ||
| 66 | + std::string path = search_paths.next(":"); | ||
| 67 | + find_paths.push_back(GameFindPath( | ||
| 68 | + path + DIR_DELIM + id, false)); | ||
| 69 | + find_paths.push_back(GameFindPath( | ||
| 70 | + path + DIR_DELIM + id + "_game", false)); | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | find_paths.push_back(GameFindPath( | ||
| 74 | user + DIR_DELIM + "games" + DIR_DELIM + id + "_game", true)); | ||
| 75 | find_paths.push_back(GameFindPath( | ||
| 76 | @@ -129,6 +152,13 @@ std::set<std::string> getAvailableGameIds() | ||
| 77 | std::set<std::string> gamespaths; | ||
| 78 | gamespaths.insert(porting::path_share + DIR_DELIM + "games"); | ||
| 79 | gamespaths.insert(porting::path_user + DIR_DELIM + "games"); | ||
| 80 | + | ||
| 81 | + Strfnd search_paths = getSubgamePathEnv(); | ||
| 82 | + | ||
| 83 | + while(!search_paths.atend()) { | ||
| 84 | + gamespaths.insert(search_paths.next(":")); | ||
| 85 | + } | ||
| 86 | + | ||
| 87 | for(std::set<std::string>::const_iterator i = gamespaths.begin(); | ||
| 88 | i != gamespaths.end(); i++){ | ||
| 89 | std::vector<fs::DirListNode> dirlist = fs::GetDirListing(*i); | ||
| 90 | -- | ||
| 91 | 2.1.1 | ||
| 92 | |||
