Skip to content

Commit ff7d001

Browse files
committed
minetest: rename to luanti
Make Linux only, we moved the mac build to a cask Homebrew/homebrew-cask#200275
1 parent 17f09e6 commit ff7d001

File tree

3 files changed

+20
-28
lines changed

3 files changed

+20
-28
lines changed

.github/autobump.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2140,7 +2140,7 @@ millet
21402140
mimalloc
21412141
mimirtool
21422142
minder
2143-
minetest
2143+
luanti
21442144
minica
21452145
minigraph
21462146
minijinja-cli

Formula/m/minetest.rb renamed to Formula/l/luanti.rb

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
class Minetest < Formula
1+
class Luanti < Formula
22
desc "Free, open source voxel game engine and game"
3-
homepage "https://www.minetest.net/"
3+
homepage "https://www.luanti.org"
44
license "LGPL-2.1-or-later"
5+
revision 1
56

67
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"
89
sha256 "70e531d0776988ce6e579ea5490fdf6be3e349a4ade5281f5111aa4fdd8ee510"
910

1011
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"
1213
sha256 "33a3bb43b08497a0bdb2f49f140a2829e582d5c16c0ad52be1595c803f706912"
1314
end
1415
end
@@ -28,14 +29,15 @@ class Minetest < Formula
2829
end
2930

3031
head do
31-
url "https://github.com/minetest/minetest.git", branch: "master"
32+
url "https://github.com/luanti-org/luanti.git", branch: "master"
3233

3334
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"
3536
end
3637
end
3738

3839
depends_on "cmake" => :build
40+
depends_on "curl"
3941
depends_on "freetype"
4042
depends_on "gettext"
4143
depends_on "gmp"
@@ -44,27 +46,20 @@ class Minetest < Formula
4446
depends_on "libogg"
4547
depends_on "libpng"
4648
depends_on "libvorbis"
49+
depends_on "libx11"
50+
depends_on "libxi"
51+
depends_on "libxxf86vm"
52+
depends_on :linux
4753
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"
4860
depends_on "zstd"
4961

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-
6462
def install
65-
# Disable CMake fixup_bundle to prevent copying dylibs into app bundle
66-
inreplace "src/CMakeLists.txt", "fixup_bundle(", "# \\0"
67-
6863
# Remove bundled libraries to prevent fallback
6964
%w[lua gmp jsoncpp].each { |lib| rm_r(buildpath/"lib"/lib) }
7065

@@ -78,14 +73,10 @@ def install
7873
-DENABLE_GETTEXT=1
7974
-DCUSTOM_GETTEXT_PATH=#{Formula["gettext"].opt_prefix}
8075
]
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
8376

8477
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, *args
8578
system "cmake", "--build", "build"
8679
system "cmake", "--install", "build"
87-
88-
bin.write_exec_script prefix/"luanti.app/Contents/MacOS/luanti" if OS.mac?
8980
end
9081

9182
test do

formula_renames.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
"mkl-dnn": "onednn",
103103
"mobile-shell": "mosh",
104104
"mongo-c": "mongo-c-driver",
105+
"minetest": "luanti",
105106
"mpich2": "mpich",
106107
"mps-youtube": "yewtube",
107108
"mr2": "zoro",

0 commit comments

Comments
 (0)