diff options
| author | Diego Zamboni | 2015-04-14 20:35:01 -0700 |
|---|---|---|
| committer | Mike McQuaid | 2015-04-16 17:05:13 -0700 |
| commit | 7cebf163a9b3fdf6ea68c1912c6834d23fc11785 (patch) | |
| tree | 5c42501668145f7d76d9d4a2543e720f65ddf861 | |
| parent | 3443c82b970279a39ea400b128ce895096815a93 (diff) | |
| download | homebrew-7cebf163a9b3fdf6ea68c1912c6834d23fc11785.tar.bz2 | |
hugo: fix HEAD.
Updated some libraries and dependencies to make the HEAD compilation
complete correctly.
Closes #38662.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
| -rw-r--r-- | Library/Formula/hugo.rb | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/Library/Formula/hugo.rb b/Library/Formula/hugo.rb index 5a9ee5a61..5fab0e441 100644 --- a/Library/Formula/hugo.rb +++ b/Library/Formula/hugo.rb @@ -2,7 +2,6 @@ require "language/go" class Hugo < Formula homepage "http://gohugo.io/" - head "https://github.com/spf13/hugo.git" revision 1 stable do @@ -19,6 +18,22 @@ class Hugo < Formula url "https://github.com/spf13/hugo/commit/967d001ebe40cfe90992d953880356a495216202.diff" sha256 "5a991372a54ac049783926c1993d920f46ab52563ff1877e7aaddc40b5a79e22" end + + # Install version of fsnotify needed by stable + go_resource "gopkg.in/fsnotify.v0" do + url "https://github.com/go-fsnotify/fsnotify.git", + :branch => "v0", + :revision => "ea925a0a47d225b2ca7f9932b01d2ed4f3ec74f6" + end + end + + # Install version of fsnotify needed by head + head do + url "https://github.com/spf13/hugo.git" + go_resource "gopkg.in/fsnotify.v1" do + url "https://github.com/go-fsnotify/fsnotify.git", + :revision => "6549b98005f3e4026ad9f50ef7d5011f40ba1397" + end end bottle do @@ -79,7 +94,7 @@ class Hugo < Formula end go_resource "github.com/spf13/cobra" do url "https://github.com/spf13/cobra.git", - :revision => "f8e1ec56bdd7494d309c69681267859a6bfb7549" + :revision => "9cb5e8502924a8ff1cce18a9348b61995d7b4fde" end go_resource "github.com/spf13/fsync" do url "https://github.com/spf13/fsync.git", @@ -105,11 +120,7 @@ class Hugo < Formula url "https://github.com/yosssi/ace.git", :revision => "1f82044938a7180f6fb6bbb3a29688d1e6dbe74b" end - go_resource "gopkg.in/fsnotify.v0" do - url "https://github.com/go-fsnotify/fsnotify.git", - :branch => "v0", - :revision => "ea925a0a47d225b2ca7f9932b01d2ed4f3ec74f6" - end + go_resource "gopkg.in/yaml.v2" do url "https://github.com/go-yaml/yaml.git", :branch => "v2", @@ -122,10 +133,14 @@ class Hugo < Formula :revision => "8e87604bec3c645a4eeaee97dfec9f25811ff20d" end - # dependency for cobra + # dependencies for cobra go_resource "github.com/spf13/pflag" do url "https://github.com/spf13/pflag.git", - :revision => "370c3171201099fa6b466db45c8a032cbce33d8d" + :revision => "18d831e92d67eafd1b0db8af9ffddbd04f7ae1f4" + end + go_resource "github.com/inconshreveable/mousetrap" do + url "https://github.com/inconshreveable/mousetrap.git", + :revision => "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75" end # dependency for purell |
