diff options
| author | Baptiste Fontaine | 2015-01-05 22:08:59 +0100 | 
|---|---|---|
| committer | Jack Nagel | 2015-01-06 00:17:55 -0500 | 
| commit | 3cb3a23362ec9ca65665b0ce66630fb7b6c5f2d7 (patch) | |
| tree | 385bd6c35b697c545ec58351baf5753c7f315914 | |
| parent | fab15d42943992d34844fed2478c2bd5210a53b3 (diff) | |
| download | homebrew-3cb3a23362ec9ca65665b0ce66630fb7b6c5f2d7.tar.bz2 | |
coreutils: head added
Closes #35576.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
| -rw-r--r-- | Library/Formula/coreutils.rb | 31 | 
1 files changed, 27 insertions, 4 deletions
| diff --git a/Library/Formula/coreutils.rb b/Library/Formula/coreutils.rb index f1f0322a7..4d5647ca9 100644 --- a/Library/Formula/coreutils.rb +++ b/Library/Formula/coreutils.rb @@ -18,9 +18,32 @@ class Coreutils < Formula    # Patch adapted from upstream commits:    # http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=6f9b018    # http://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=3cf19b5 -  patch :DATA +  stable do +    patch :DATA +  end + +  head do +    url "git://git.sv.gnu.org/coreutils" + +    depends_on "autoconf" => :build +    depends_on "automake" => :build +    depends_on "bison" => :build +    depends_on "gettext" => :build +    depends_on "texinfo" => :build +    depends_on "xz" => :build + +    resource "gnulib" do +      url "http://git.savannah.gnu.org/cgit/gnulib.git/snapshot/gnulib-0.1.tar.gz" +      sha1 "b29e165bf276ce0a0c12ec8ec1128189bd786155" +    end +  end    def install +    if build.head? +      resource("gnulib").stage "gnulib" +      ENV["GNULIB_SRCDIR"] = "gnulib" +      system "./bootstrap" +    end      system "./configure", "--prefix=#{prefix}",                            "--program-prefix=g",                            "--without-gmp" @@ -52,11 +75,11 @@ class Coreutils < Formula      EOS    end -  def coreutils_filenames (dir) +  def coreutils_filenames(dir)      filenames = []      dir.find do |path| -      next if path.directory? or path.basename.to_s == ".DS_Store" -      filenames << path.basename.to_s.sub(/^g/,"") +      next if path.directory? || path.basename.to_s == ".DS_Store" +      filenames << path.basename.to_s.sub(/^g/, "")      end      filenames.sort    end | 
