Merge pull request #207012 from Homebrew/bump-tailwindcss-4.0.5
[Homebrew/homebrew-core.git] / Formula / e / easyengine.rb
blobb5e2c3b540a069c7a3f977cbc212160c31f0745b
1 class Easyengine < Formula
2   desc "Command-line control panel to manage WordPress sites"
3   homepage "https://easyengine.io/"
4   url "https://github.com/EasyEngine/easyengine/releases/download/v4.8.0/easyengine.phar"
5   sha256 "5002134b0a9940c0e9466a2ea9d981d77478034398352117952a1a71d73a4406"
6   license "MIT"
8   bottle do
9     sha256 cellar: :any_skip_relocation, arm64_sequoia: "21949eec79b6bb562a6806bc3dc6886493b6c46e074ea8bee7e5d4281d079a7c"
10     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "21949eec79b6bb562a6806bc3dc6886493b6c46e074ea8bee7e5d4281d079a7c"
11     sha256 cellar: :any_skip_relocation, arm64_ventura: "21949eec79b6bb562a6806bc3dc6886493b6c46e074ea8bee7e5d4281d079a7c"
12     sha256 cellar: :any_skip_relocation, sonoma:        "a3773f8ae8284af58899f0233bdf508de336297220563c52f08e37ff8cbf8646"
13     sha256 cellar: :any_skip_relocation, ventura:       "a3773f8ae8284af58899f0233bdf508de336297220563c52f08e37ff8cbf8646"
14     sha256 cellar: :any_skip_relocation, x86_64_linux:  "f0fe84d9a9117825edb55e597598a39b20e4ea44366f04495842f3145e5bebb8"
15   end
17   depends_on "dnsmasq"
18   depends_on "php"
20   # Keg-relocation breaks the formula when it replaces `/usr/local` with a non-default prefix
21   on_macos do
22     on_intel do
23       pour_bottle? only_if: :default_prefix
24     end
25   end
27   def install
28     bin.install "easyengine.phar" => "ee"
29   end
31   test do
32     return if OS.linux? # requires `sudo`
34     system bin/"ee", "config", "set", "locale", "hi_IN"
35     output = shell_output("#{bin}/ee config get locale")
36     assert_match "hi_IN", output
38     output = shell_output("#{bin}/ee cli info")
39     assert_match OS.kernel_name, output
40   end
41 end