Skip to content
Closed
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
35 changes: 35 additions & 0 deletions Formula/n/neo.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
class Neo < Formula
desc "Simulates the digital rain from \"The Matrix\""
homepage "https://github.com/st3w/neo"
url "https://github.com/st3w/neo/releases/download/v0.6.1/neo-0.6.1.tar.gz"
sha256 "a55e4ed5efd0a4af248d16018a7aaad3b617ef1d3ac05d292a258a38aaf46a79"
license "GPL-3.0-or-later"

depends_on "autoconf" => :build
depends_on "automake" => :build

uses_from_macos "ncurses"

def install
if OS.mac?
ncurses_include = MacOS.sdk_path_if_needed ? "#{MacOS.sdk_path_if_needed}/usr/include" : "/usr/include"
ncurses_lib = MacOS.sdk_path_if_needed ? "#{MacOS.sdk_path_if_needed}/usr/lib" : "/usr/lib"
ENV.append "LDFLAGS", "-L#{ncurses_lib}"
ENV.append "CPPFLAGS", "-I#{ncurses_include}"
else
ncurses = Formula["ncurses"]
ENV.append "LDFLAGS", "-L#{ncurses.opt_lib}"
ENV.append "CPPFLAGS", "-I#{ncurses.opt_include}"
end

inreplace "configure.ac", "ncursesw", "ncurses"
system "autoreconf", "-fvi"
system "./configure", *std_configure_args
system "make"
system "make", "install"
end

test do

Check failure on line 32 in Formula/n/neo.rb

View workflow job for this annotation

GitHub Actions / Linux x86_64

`brew test --verbose neo` failed on Linux x86_64!

/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test.rb:59:in '<main>'
assert_match version.to_s, shell_output("#{bin}/neo -V")
end
end
Loading