From 28c8030a9608ecfe0d6704f3f5a0dc0bf7e1a6e9 Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Tue, 23 Apr 2024 19:34:25 +0200 Subject: [PATCH 1/4] firefox: new formula --- Formula/firefox.rb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Formula/firefox.rb diff --git a/Formula/firefox.rb b/Formula/firefox.rb new file mode 100644 index 0000000..bd0ffd5 --- /dev/null +++ b/Formula/firefox.rb @@ -0,0 +1,36 @@ +class Firefox < Formula + desc "" + homepage "" + url "https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py" + version "1.2" + sha256 "348d4dd6222fa5a5a796f4edc51228905a7f0a67f5301eb054e2f24640f76e82" + license "" + + depends_on "mercurial" + depends_on "git-cinnabar" + + uses_from_macos "python" + + def install + # Remove unrecognized options if they cause configure to fail + # https://rubydoc.brew.sh/Formula.html#std_configure_args-instance_method + # system "./configure", "--disable-silent-rules", *std_configure_args + # system "make", "install" # if this fails, try separate make/make install steps + system "python3", "bootstrap.py", "--vcs=git" + system "hg", "up", "-C", "central" + system "./mach", "build" + end + + test do + # `test do` will create, run in and delete a temporary directory. + # + # This test will fail and we won't accept that! For Homebrew/homebrew-core + # this will need to be a test that verifies the functionality of the + # software. Run the test with `brew test firefox`. Options passed + # to `brew install` such as `--HEAD` also need to be provided to `brew test`. + # + # The installed folder is not in the path, so use the entire path to any + # executables being tested: `system "#{bin}/program", "do", "something"`. + system "false" + end +end From aa0bec11d6c275ec786e2dc8dd9991e08aa7116b Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Tue, 23 Apr 2024 21:06:24 +0300 Subject: [PATCH 2/4] Update firefox.rb --- Formula/firefox.rb | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/Formula/firefox.rb b/Formula/firefox.rb index bd0ffd5..30340bb 100644 --- a/Formula/firefox.rb +++ b/Formula/firefox.rb @@ -1,6 +1,6 @@ class Firefox < Formula - desc "" - homepage "" + desc "you know" + homepage "https://mozilla.org" url "https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py" version "1.2" sha256 "348d4dd6222fa5a5a796f4edc51228905a7f0a67f5301eb054e2f24640f76e82" @@ -12,25 +12,12 @@ class Firefox < Formula uses_from_macos "python" def install - # Remove unrecognized options if they cause configure to fail - # https://rubydoc.brew.sh/Formula.html#std_configure_args-instance_method - # system "./configure", "--disable-silent-rules", *std_configure_args - # system "make", "install" # if this fails, try separate make/make install steps system "python3", "bootstrap.py", "--vcs=git" system "hg", "up", "-C", "central" system "./mach", "build" end test do - # `test do` will create, run in and delete a temporary directory. - # - # This test will fail and we won't accept that! For Homebrew/homebrew-core - # this will need to be a test that verifies the functionality of the - # software. Run the test with `brew test firefox`. Options passed - # to `brew install` such as `--HEAD` also need to be provided to `brew test`. - # - # The installed folder is not in the path, so use the entire path to any - # executables being tested: `system "#{bin}/program", "do", "something"`. system "false" end end From 858384a500b61efc88dd6958267c813ac63d018b Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Tue, 23 Apr 2024 21:16:45 +0300 Subject: [PATCH 3/4] Update firefox.rb --- Formula/firefox.rb | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Formula/firefox.rb b/Formula/firefox.rb index 30340bb..aafb913 100644 --- a/Formula/firefox.rb +++ b/Formula/firefox.rb @@ -1,18 +1,19 @@ class Firefox < Formula - desc "you know" + desc "You know" homepage "https://mozilla.org" url "https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py" version "1.2" sha256 "348d4dd6222fa5a5a796f4edc51228905a7f0a67f5301eb054e2f24640f76e82" - license "" + license "MIT" - depends_on "mercurial" - depends_on "git-cinnabar" - - uses_from_macos "python" + depends_on "git" => :build + depends_on "git-cinnabar" => :build + depends_on "mercurial" => :build + depends_on "python@3.11" => :build + uses_from_macos "curl" => :build def install - system "python3", "bootstrap.py", "--vcs=git" + system "python3", "bootstrap.py", "--vcs=git", "--no-interactive" system "hg", "up", "-C", "central" system "./mach", "build" end From 092470e6e55cc7f963fe4bec7b647f523956ce2b Mon Sep 17 00:00:00 2001 From: Sean Molenaar Date: Wed, 24 Apr 2024 10:02:23 +0200 Subject: [PATCH 4/4] Update firefox.rb --- Formula/firefox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Formula/firefox.rb b/Formula/firefox.rb index aafb913..d12c451 100644 --- a/Formula/firefox.rb +++ b/Formula/firefox.rb @@ -13,7 +13,7 @@ class Firefox < Formula uses_from_macos "curl" => :build def install - system "python3", "bootstrap.py", "--vcs=git", "--no-interactive" + system "python3", "bootstrap.py", "--no-interactive" system "hg", "up", "-C", "central" system "./mach", "build" end