Skip to content

Commit 8d952ff

Browse files
committed
neo 0.6.1 (new formula)
1 parent e27ac9e commit 8d952ff

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Formula/n/neo.rb

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
inreplace "configure.ac", "ncursesw", "ncurses" if OS.mac?
18+
19+
ncurses = Formula["ncurses"]
20+
ENV.append "CFLAGS", "-I#{ncurses.opt_include}"
21+
ENV.append "LDFLAGS", "-L#{ncurses.opt_lib}"
22+
23+
system "autoreconf", "-fvi"
24+
system "./configure", *std_configure_args
25+
system "make"
26+
system "make", "install"
27+
end
28+
29+
test do
30+
assert_match version.to_s, shell_output("#{bin}/neo -V | grep '^.*neo\s.*$' | sed 's/^.*neo\s//'")
31+
end
32+
end

0 commit comments

Comments
 (0)