2014-05-13 11:25:52 +00:00
|
|
|
class Hugo < Formula
|
2015-02-22 07:48:43 +00:00
|
|
|
homepage "http://gohugo.io/"
|
2014-05-13 11:25:52 +00:00
|
|
|
head "https://github.com/spf13/hugo.git"
|
2015-02-22 07:48:43 +00:00
|
|
|
url "https://github.com/spf13/hugo/archive/v0.13.tar.gz"
|
|
|
|
sha1 "a821fcde92b03baf49a45970d0ae6b781a3b12c1"
|
2014-05-13 11:25:52 +00:00
|
|
|
|
2014-06-02 22:01:26 +00:00
|
|
|
bottle do
|
2015-02-20 15:37:23 +00:00
|
|
|
cellar :any
|
2015-02-22 08:12:07 +00:00
|
|
|
sha1 "efbab55fee9d1c74bd5dcf057cea1fc7932ea25d" => :yosemite
|
|
|
|
sha1 "ac192894c709536377c9e7494278793ece613498" => :mavericks
|
|
|
|
sha1 "ce38925c9dd8e24e052fcefe1de8fa17c1e3212a" => :mountain_lion
|
2014-06-02 22:01:26 +00:00
|
|
|
end
|
|
|
|
|
2014-05-13 11:25:52 +00:00
|
|
|
depends_on "go" => :build
|
|
|
|
depends_on "bazaar" => :build
|
|
|
|
depends_on :hg => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOBIN"] = bin
|
|
|
|
ENV["GOPATH"] = buildpath
|
|
|
|
ENV["GOHOME"] = buildpath
|
|
|
|
system "go", "get"
|
|
|
|
system "go", "build", "main.go"
|
|
|
|
bin.install "main" => "hugo"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
site = testpath/"hops-yeast-malt-water"
|
|
|
|
system "#{bin}/hugo", "new", "site", site
|
|
|
|
assert File.exist?("#{site}/config.toml")
|
|
|
|
end
|
|
|
|
end
|