twm 1.0.12 (new formula)

Closes #109215.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
PaperChalice 2022-07-10 18:02:31 +08:00 committed by BrewTestBot
parent c0b21616e9
commit 031b862658
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 31 additions and 0 deletions

31
Formula/twm.rb Normal file
View File

@ -0,0 +1,31 @@
class Twm < Formula
desc "Tab Window Manager for X Window System"
homepage "https://www.x.org/"
url "https://www.x.org/releases/individual/app/twm-1.0.12.tar.xz"
sha256 "aaf201d4de04c1bb11eed93de4bee0147217b7bdf61b7b761a56b2fdc276afe4"
license "X11"
depends_on "pkg-config" => :build
depends_on "libxmu"
depends_on "libxrandr"
uses_from_macos "bison" => :build
def install
system "./configure", *std_configure_args
system "make"
system "make", "install"
end
test do
fork do
exec Formula["xorg-server"].bin/"Xvfb", ":1"
end
ENV["DISPLAY"] = ":1"
sleep 10
fork do
exec bin/"twm"
end
end
end