File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 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 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments