diff options
| author | Dave Cottlehuber | 2014-05-13 13:25:52 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-06-03 08:32:58 +0100 |
| commit | e96d2b5c2885dedb0694304d63cb23c405a6ed51 (patch) | |
| tree | be037d255321147680ee6a7d5b8e1c5a5272abb9 /Library/Formula | |
| parent | fa015e4de4d74a4d9f0f24d293aa4ad28a484b3b (diff) | |
| download | homebrew-e96d2b5c2885dedb0694304d63cb23c405a6ed51.tar.bz2 | |
hugo 0.11
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/hugo.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Library/Formula/hugo.rb b/Library/Formula/hugo.rb new file mode 100644 index 000000000..a25ce2f5d --- /dev/null +++ b/Library/Formula/hugo.rb @@ -0,0 +1,28 @@ +require "formula" + +class Hugo < Formula + homepage "http://hugo.spf13.com/" + head "https://github.com/spf13/hugo.git" + url "https://github.com/spf13/hugo.git", :tag => "v0.11" + sha1 "eb036b11d915bf78d0d679ee14ec065458977e2e" + + depends_on "go" => :build + depends_on "bazaar" => :build + depends_on :hg => :build + + def install + ENV["GIT_DIR"] = cached_download/".git" if build.head? + 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 |
