Skip to content

Commit 01eb4c7

Browse files
committed
neo 0.6.1 (new formula)
1 parent bb87d0d commit 01eb4c7

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

Formula/n/neo.rb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
class Neo < Formula
2+
desc "Simulates the digital rain from \"The Matrix\""
3+
homepage "https://github.com/st3w/neo"
4+
url "https://github.com/st3w/neo/releases/download/v0.6.1/neo-0.6.1.tar.gz"
5+
sha256 "a55e4ed5efd0a4af248d16018a7aaad3b617ef1d3ac05d292a258a38aaf46a79"
6+
license "GPL-3.0-or-later"
7+
8+
depends_on "autoconf" => :build
9+
depends_on "automake" => :build
10+
11+
uses_from_macos "ncurses"
12+
on_linux do
13+
depends_on "ncurses"
14+
end
15+
16+
def install
17+
if OS.mac?
18+
inreplace "configure.ac", "ncursesw", "ncurses"
19+
ncurses = Formula["ncurses"]
20+
ENV.append "CFLAGS", "-I#{ncurses.opt_include}"
21+
ENV.append "LDFLAGS", "-L#{ncurses.opt_lib}"
22+
end
23+
24+
system "autoreconf", "-fvi"
25+
system "./configure", *std_configure_args
26+
system "make"
27+
system "make", "install"
28+
end
29+
30+
test do
31+
pipe_output(bin/"neo", "q", 0)
32+
end
33+
end

0 commit comments

Comments
 (0)