Skip to content

Instantly share code, notes, and snippets.

@handlename
Created March 26, 2012 02:23
Show Gist options
  • Save handlename/2202488 to your computer and use it in GitHub Desktop.
Save handlename/2202488 to your computer and use it in GitHub Desktop.
Homebrew Formula for canything.
require 'formula'
class Canything < Formula
url 'https://github.com/keiji0/canything/zipball/master'
sha1 '85d243ee8f98b393e165ce16def61640949431dd'
homepage 'https://github.com/keiji0/canything'
version '20110511'
def patches;
DATA;
end
def install
system "make"
system "mkdir -p #{prefix}/bin"
system "cp LICENSE #{prefix}"
system "cp README #{prefix}"
system "mv canything #{prefix}/bin"
end
end
__END__
--- a/Makefile 2012-03-26 11:10:08.000000000 +0900
+++ b/Makefile 2012-03-26 11:10:11.000000000 +0900
@@ -1,5 +1,5 @@
canything: canything.c
- @gcc -Wall -O3 -o $@ $< -lncursesw && echo make canything
+ @gcc -Wall -O3 -o $@ $< -lncurses && echo make canything
clean:
@rm -f canything && echo clean canything
test: canything
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment