2013-09-09 00:00:29 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Camlistore < Formula
|
|
|
|
homepage 'http://camlistore.org'
|
|
|
|
head 'https://camlistore.googlesource.com/camlistore', :using => :git
|
2014-03-12 09:13:03 +00:00
|
|
|
url 'https://github.com/bradfitz/camlistore/archive/0.7.tar.gz'
|
|
|
|
sha1 'fae4e18f03f545f6232c24861e1f13c4bb653b34'
|
2013-09-09 00:00:29 +00:00
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'go' => :build
|
2013-12-13 23:46:58 +00:00
|
|
|
depends_on 'sqlite'
|
2013-09-09 00:00:29 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV['GIT_DIR'] = cached_download+".git"
|
|
|
|
|
|
|
|
system "go", "run", "make.go"
|
|
|
|
prefix.install "bin/README"
|
|
|
|
prefix.install "bin"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system bin/"camget", "-version"
|
|
|
|
end
|
|
|
|
end
|