Skip to content

Commit b6bb076

Browse files
BrewTestBotchenrui333
authored andcommitted
rofi 2.0.0
rofi: switch to meson build Signed-off-by: Rui Chen <[email protected]>
1 parent b580029 commit b6bb076

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

Formula/r/rofi.rb

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Rofi < Formula
22
desc "Window switcher, application launcher and dmenu replacement"
33
homepage "https://davatorium.github.io/rofi/"
4-
url "https://github.com/davatorium/rofi/releases/download/1.7.9.1/rofi-1.7.9.1.tar.gz"
5-
sha256 "bb2c0f073b4422acc51a3f97d05275a82464750a33d2f4b120e3d866bb7b9ae5"
4+
url "https://github.com/davatorium/rofi/releases/download/2.0.0/rofi-2.0.0.tar.gz"
5+
sha256 "f81659b175306ff487e35d88d6b36128e85a793bfb56b64fa22c62eb54c4abd0"
66
license "MIT"
77
head "https://github.com/davatorium/rofi.git", branch: "next"
88

@@ -21,9 +21,10 @@ class Rofi < Formula
2121
sha256 x86_64_linux: "73a4c5573499a78fefd0d2a58c15ba6069bf5169b6a3064f2951c650e1dfa889"
2222
end
2323

24-
depends_on "autoconf" => :build
25-
depends_on "automake" => :build
24+
depends_on "bison" => :build
2625
depends_on "check" => :build
26+
depends_on "meson" => :build
27+
depends_on "ninja" => :build
2728
depends_on "pkgconf" => :build
2829

2930
depends_on "cairo"
@@ -40,20 +41,12 @@ class Rofi < Formula
4041
depends_on "xcb-util-wm"
4142
depends_on "xorg-server"
4243

43-
uses_from_macos "bison" => :build
4444
uses_from_macos "flex" => :build
4545

46-
on_macos do
47-
depends_on "xcb-util-keysyms"
48-
end
49-
5046
def install
51-
system "autoreconf", "--force", "--install", "--verbose" if build.head?
52-
53-
mkdir "build" do
54-
system "../configure", "--disable-silent-rules", *std_configure_args
55-
system "make", "install"
56-
end
47+
system "meson", "setup", "build", *std_meson_args
48+
system "meson", "compile", "-C", "build", "--verbose"
49+
system "meson", "install", "-C", "build"
5750
end
5851

5952
test do

0 commit comments

Comments
 (0)