Skip to content

Commit

Permalink
ksh: functioning download urls
Browse files Browse the repository at this point in the history
Closes Homebrew#49653.

Signed-off-by: Dominyk Tiller <[email protected]>
  • Loading branch information
ilovezfs authored and DomT4 committed Mar 3, 2016
1 parent afcf1bb commit b563391
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Library/Formula/ksh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
class Ksh < Formula
desc "ksh93, the KornShell"
homepage "http://www.kornshell.com"
url "http://www2.research.att.com/~astopen/download/tgz/ast-ksh.2012-08-01.tgz",
:using => :nounzip, :user => "I accept www.opensource.org/licenses/eclipse:."
sha256 "e6192cfa52a6a9fd20618cbaf3fa81f0cc9fd83525500757e83017275e962851"
url "https://opensource.apple.com/source/ksh/ksh-23/ast-ksh.2012-08-01.tgz",
:using => :nounzip
mirror "https://www.mirrorservice.org/pub/pkgsrc/distfiles/ast-ksh.2012-08-01.tgz"
version "93u+" # Versioning scheme: + means "+ patches", - means "beta/alpha".
sha256 "e6192cfa52a6a9fd20618cbaf3fa81f0cc9fd83525500757e83017275e962851"

bottle do
cellar :any
Expand All @@ -16,15 +17,14 @@ class Ksh < Formula
end

resource "init" do
url "http://www2.research.att.com/~astopen/download/tgz/INIT.2012-08-01.tgz",
:using => :nounzip, :user => "I accept www.opensource.org/licenses/eclipse:."
url "https://opensource.apple.com/source/ksh/ksh-23/INIT.2012-08-01.tgz"
mirror "https://www.mirrorservice.org/pub/pkgsrc/distfiles/INIT.2012-08-01.tgz"
sha256 "c40cf57e9b2186271a9c362a560aa4a6e25ba911a8258ab931d2bbdbce44cfe5"
end

def install
(buildpath/"lib/package/tgz").install resource("init"), Dir["*.tgz"]

system "tar", "xzf", "lib/package/tgz/INIT.2012-08-01.tgz"
resource("init").stage buildpath
(buildpath/"lib/package/tgz").install Dir["*.tgz"]
system "/bin/ksh", "bin/package", "read"

# Needed due to unusal build system.
Expand Down

0 comments on commit b563391

Please sign in to comment.