1
- class Minetest < Formula
1
+ class Luanti < Formula
2
2
desc "Free, open source voxel game engine and game"
3
- homepage "https://www.minetest.net/ "
3
+ homepage "https://www.luanti.org "
4
4
license "LGPL-2.1-or-later"
5
+ revision 1
5
6
6
7
stable do
7
- url "https://github.com/minetest/minetest /archive/refs/tags/5.11.0.tar.gz"
8
+ url "https://github.com/luanti-org/luanti /archive/refs/tags/5.11.0.tar.gz"
8
9
sha256 "70e531d0776988ce6e579ea5490fdf6be3e349a4ade5281f5111aa4fdd8ee510"
9
10
10
11
resource "minetest_game" do
11
- url "https://github.com/minetest /minetest_game/archive/refs/tags/5.8.0.tar.gz"
12
+ url "https://github.com/luanti-org /minetest_game/archive/refs/tags/5.8.0.tar.gz"
12
13
sha256 "33a3bb43b08497a0bdb2f49f140a2829e582d5c16c0ad52be1595c803f706912"
13
14
end
14
15
end
@@ -28,14 +29,15 @@ class Minetest < Formula
28
29
end
29
30
30
31
head do
31
- url "https://github.com/minetest/minetest .git" , branch : "master"
32
+ url "https://github.com/luanti-org/luanti .git" , branch : "master"
32
33
33
34
resource "minetest_game" do
34
- url "https://github.com/minetest/minetest_game .git" , branch : "master"
35
+ url "https://github.com/luanti-org/luanti_game .git" , branch : "master"
35
36
end
36
37
end
37
38
38
39
depends_on "cmake" => :build
40
+ depends_on "curl"
39
41
depends_on "freetype"
40
42
depends_on "gettext"
41
43
depends_on "gmp"
@@ -44,27 +46,20 @@ class Minetest < Formula
44
46
depends_on "libogg"
45
47
depends_on "libpng"
46
48
depends_on "libvorbis"
49
+ depends_on "libx11"
50
+ depends_on "libxi"
51
+ depends_on "libxxf86vm"
52
+ depends_on :linux
47
53
depends_on "luajit"
54
+ depends_on "mesa"
55
+ depends_on "ncurses"
56
+ depends_on "openal-soft"
57
+ depends_on "sqlite"
58
+ depends_on "xinput"
59
+ depends_on "zlib"
48
60
depends_on "zstd"
49
61
50
- uses_from_macos "curl"
51
- uses_from_macos "ncurses"
52
- uses_from_macos "sqlite"
53
- uses_from_macos "zlib"
54
-
55
- on_linux do
56
- depends_on "libx11"
57
- depends_on "libxi"
58
- depends_on "libxxf86vm"
59
- depends_on "mesa"
60
- depends_on "openal-soft"
61
- depends_on "xinput"
62
- end
63
-
64
62
def install
65
- # Disable CMake fixup_bundle to prevent copying dylibs into app bundle
66
- inreplace "src/CMakeLists.txt" , "fixup_bundle(" , "# \\ 0"
67
-
68
63
# Remove bundled libraries to prevent fallback
69
64
%w[ lua gmp jsoncpp ] . each { |lib | rm_r ( buildpath /"lib" /lib ) }
70
65
@@ -78,14 +73,10 @@ def install
78
73
-DENABLE_GETTEXT=1
79
74
-DCUSTOM_GETTEXT_PATH=#{ Formula [ "gettext" ] . opt_prefix }
80
75
]
81
- # Workaround for 'Could NOT find GettextLib (missing: ICONV_LIBRARY)'
82
- args << "-DICONV_LIBRARY=#{ MacOS . sdk_path } /usr/lib/libiconv.tbd" if OS . mac? && MacOS . version >= :big_sur
83
76
84
77
system "cmake" , "-S" , "." , "-B" , "build" , *std_cmake_args , *args
85
78
system "cmake" , "--build" , "build"
86
79
system "cmake" , "--install" , "build"
87
-
88
- bin . write_exec_script prefix /"luanti.app/Contents/MacOS/luanti" if OS . mac?
89
80
end
90
81
91
82
test do
0 commit comments