aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/coreutils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/coreutils.rb')
-rw-r--r--Library/Formula/coreutils.rb22
1 files changed, 11 insertions, 11 deletions
diff --git a/Library/Formula/coreutils.rb b/Library/Formula/coreutils.rb
index ea7b4cc0d..fe9671762 100644
--- a/Library/Formula/coreutils.rb
+++ b/Library/Formula/coreutils.rb
@@ -1,10 +1,10 @@
-require 'formula'
+require "formula"
class Coreutils < Formula
- homepage 'http://www.gnu.org/software/coreutils'
- url 'http://ftpmirror.gnu.org/coreutils/coreutils-8.22.tar.xz'
- mirror 'http://ftp.gnu.org/gnu/coreutils/coreutils-8.22.tar.xz'
- sha256 '5b3e94998152c017e6c75d56b9b994188eb71bf46d4038a642cb9141f6ff1212'
+ homepage "https://www.gnu.org/software/coreutils"
+ url "http://ftpmirror.gnu.org/coreutils/coreutils-8.23.tar.xz"
+ mirror "https://ftp.gnu.org/gnu/coreutils/coreutils-8.23.tar.xz"
+ sha256 "ec43ca5bcfc62242accb46b7f121f6b684ee21ecd7d075059bf650ff9e37b82d"
bottle do
cellar :any
@@ -13,8 +13,8 @@ class Coreutils < Formula
sha1 "4f65c3f9edb862faddb0599a94fd92849c04f973" => :lion
end
- conflicts_with 'ganglia', :because => 'both install `gstat` binaries'
- conflicts_with 'idutils', :because => 'both install `gid` and `gid.1`'
+ conflicts_with "ganglia", :because => "both install `gstat` binaries"
+ conflicts_with "idutils", :because => "both install `gid` and `gid.1`"
def install
system "./configure", "--prefix=#{prefix}",
@@ -24,11 +24,11 @@ class Coreutils < Formula
# Symlink all commands into libexec/gnubin without the 'g' prefix
coreutils_filenames(bin).each do |cmd|
- (libexec/'gnubin').install_symlink bin/"g#{cmd}" => cmd
+ (libexec/"gnubin").install_symlink bin/"g#{cmd}" => cmd
end
# Symlink all man(1) pages into libexec/gnuman without the 'g' prefix
coreutils_filenames(man1).each do |cmd|
- (libexec/'gnuman'/'man1').install_symlink man1/"g#{cmd}" => cmd
+ (libexec/"gnuman"/"man1").install_symlink man1/"g#{cmd}" => cmd
end
end
@@ -51,8 +51,8 @@ class Coreutils < Formula
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? or path.basename.to_s == ".DS_Store"
+ filenames << path.basename.to_s.sub(/^g/,"")
end
filenames.sort
end