Skip to content

Commit 2752f1d

Browse files
BrewTestBotdaeho-ro
authored andcommitted
localai 3.4.0
1 parent 7cbb0f3 commit 2752f1d

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

Formula/l/localai.rb

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
class Localai < Formula
2-
include Language::Python::Virtualenv
3-
42
desc "OpenAI alternative"
53
homepage "https://localai.io"
6-
url "https://github.com/mudler/LocalAI/archive/refs/tags/v3.3.2.tar.gz"
7-
sha256 "e8c10990e41f4e1a89fecfa5eb26a5ad555f904bbb08867171a05c5dd715c642"
4+
url "https://github.com/mudler/LocalAI/archive/refs/tags/v3.4.0.tar.gz"
5+
sha256 "a3393c91b777c93bfcbe04557e823a4d52dc130669e505c2dba2633db37adef0"
86
license "MIT"
97
head "https://github.com/mudler/LocalAI.git", branch: "master"
108

@@ -17,35 +15,14 @@ class Localai < Formula
1715
sha256 cellar: :any_skip_relocation, x86_64_linux: "d2248f7b16ac7ec5f69c546d5a1c77548c11a4ea266f44d6e9e6b3f54ca0975b"
1816
end
1917

20-
depends_on "abseil" => :build
21-
depends_on "cmake" => :build
2218
depends_on "go" => :build
23-
depends_on "go-rice" => :build
24-
depends_on "grpc" => :build
2519
depends_on "protobuf" => :build
2620
depends_on "protoc-gen-go" => :build
2721
depends_on "protoc-gen-go-grpc" => :build
28-
depends_on "[email protected]" => :build
29-
30-
resource "grpcio-tools" do
31-
url "https://files.pythonhosted.org/packages/90/c8/bca79cb8c14bb63027831039919c801db9f593c7504c09433934f5dff6a4/grpcio_tools-1.74.0.tar.gz"
32-
sha256 "88ab9eb18b6ac1b4872add6b394073bd8d44eee7c32e4dc60a022e25ffaffb95"
33-
end
34-
35-
def python3
36-
which("python3.13")
37-
end
3822

3923
def install
40-
# Fix to CMake Error at encodec.cpp/ggml/CMakeLists.txt:1 (cmake_minimum_required):
41-
ENV["CMAKE_POLICY_VERSION_MINIMUM"] = "3.5"
42-
4324
ENV["SDKROOT"] = MacOS.sdk_path if OS.mac?
4425

45-
venv = virtualenv_create(buildpath/"venv", python3)
46-
venv.pip_install resources
47-
ENV.prepend_path "PATH", venv.root/"bin"
48-
4926
system "make", "build", "VERSION=#{version}"
5027
bin.install "local-ai"
5128
end

0 commit comments

Comments
 (0)