hugo: fix HEAD.

Updated some libraries and dependencies to make the HEAD compilation
complete correctly.

Closes Homebrew/homebrew#38662.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Diego Zamboni 2015-04-14 20:35:01 -07:00 committed by Mike McQuaid
parent 29fe96a948
commit f589ada2aa

View file

@ -2,7 +2,6 @@ require "language/go"
class Hugo < Formula class Hugo < Formula
homepage "http://gohugo.io/" homepage "http://gohugo.io/"
head "https://github.com/spf13/hugo.git"
revision 1 revision 1
stable do stable do
@ -19,6 +18,22 @@ class Hugo < Formula
url "https://github.com/spf13/hugo/commit/967d001ebe40cfe90992d953880356a495216202.diff" url "https://github.com/spf13/hugo/commit/967d001ebe40cfe90992d953880356a495216202.diff"
sha256 "5a991372a54ac049783926c1993d920f46ab52563ff1877e7aaddc40b5a79e22" sha256 "5a991372a54ac049783926c1993d920f46ab52563ff1877e7aaddc40b5a79e22"
end 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 end
bottle do bottle do
@ -79,7 +94,7 @@ class Hugo < Formula
end end
go_resource "github.com/spf13/cobra" do go_resource "github.com/spf13/cobra" do
url "https://github.com/spf13/cobra.git", url "https://github.com/spf13/cobra.git",
:revision => "f8e1ec56bdd7494d309c69681267859a6bfb7549" :revision => "9cb5e8502924a8ff1cce18a9348b61995d7b4fde"
end end
go_resource "github.com/spf13/fsync" do go_resource "github.com/spf13/fsync" do
url "https://github.com/spf13/fsync.git", url "https://github.com/spf13/fsync.git",
@ -105,11 +120,7 @@ class Hugo < Formula
url "https://github.com/yosssi/ace.git", url "https://github.com/yosssi/ace.git",
:revision => "1f82044938a7180f6fb6bbb3a29688d1e6dbe74b" :revision => "1f82044938a7180f6fb6bbb3a29688d1e6dbe74b"
end 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 go_resource "gopkg.in/yaml.v2" do
url "https://github.com/go-yaml/yaml.git", url "https://github.com/go-yaml/yaml.git",
:branch => "v2", :branch => "v2",
@ -122,10 +133,14 @@ class Hugo < Formula
:revision => "8e87604bec3c645a4eeaee97dfec9f25811ff20d" :revision => "8e87604bec3c645a4eeaee97dfec9f25811ff20d"
end end
# dependency for cobra # dependencies for cobra
go_resource "github.com/spf13/pflag" do go_resource "github.com/spf13/pflag" do
url "https://github.com/spf13/pflag.git", 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 end
# dependency for purell # dependency for purell