Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ladybird.rb formula #40

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions Formula/ladybird.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
class Ladybird < Formula

Check failure on line 1 in Formula/ladybird.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-15)

`brew linkage --test neved4/tap/ladybird` failed on macOS Sequoia (15) on Apple Silicon!

/opt/homebrew/opt/webp/lib/libsharpyuv.0.dylib (webp)
desc "Truly independent web browser (pre-alpha developer version)"
homepage "https://ladybird.org/"
url "https://github.com/LadybirdBrowser/ladybird/archive/b9e7c6a2f66d83c6af73bcc102c05d3056382c02.tar.gz"
version "0.1.0-b9e7c6a"
sha256 "855a293849805d89c49cc29fd87a6b3e002f68d633f7ce52065e3260046be54b"
license "BSD-2-Clause"
head "https://github.com/LadybirdBrowser/ladybird.git", branch: "master"

depends_on "autoconf" => :build
depends_on "autoconf-archive" => :build
depends_on "automake" => :build
depends_on "ccache" => :build
depends_on "cmake" => :build
depends_on "ffmpeg" => :build
depends_on "llvm" => :build
depends_on "nasm" => :build
depends_on "ninja" => :build
depends_on "pkg-config" => :build
depends_on :macos

def install
ENV["CC"] = "#{Formula["llvm"].opt_bin}/clang"
ENV["CXX"] = "#{Formula["llvm"].opt_bin}/clang++"

system "git", "init"
system "./Meta/ladybird.sh", "install"

cd "Build/ladybird/bin/Ladybird.app/Contents" do
rm_r("./lib")
cp_r("../../../lib", ".")
end

app_name = "Ladybird.app"
app_path = "./Build/ladybird/bin/#{app_name}"

prefix.install app_path
bin.install_symlink "#{prefix}/#{app_name}/Contents/MacOS/Ladybird" => "ladybird"
end

def caveats
<<~EOS
Ladybird is in pre-alpha stage and is intended for developers only.
EOS
end
end
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ Ada/SPARK package manager.
Yet another matrix client for desktop.
- [doas] [<kbd>c</kbd>]
Execute commands as another user.
- [Ladybird] [<kbd>c++</kbd>]
Truly independent web browser.
- [nfov] [<kbd>typescript</kbd>]
ASCII / ANSI art viewer.
- [ungoogled-chromium] [<kbd>c++</kbd>]
Expand All @@ -75,6 +77,7 @@ Wrap commands in specific Java versions.
[alire]: https://github.com/alire-project/alire
[Cinny]: https://github.com/cinnyapp/cinny-desktop
[doas]: https://github.com/slicer69/doas
[ladybird]: https://ladybird.org/
[nfov]: https://nrlquaker.github.io/nfov/
[ungoogled-chromium]: https://github.com/ungoogled-software/ungoogled-chromium
[volatility]: https://github.com/volatilityfoundation/volatility
Expand Down
Loading