homebrew-core/Formula/yydecode.rb
2017-10-05 21:05:25 +02:00

27 lines
1.1 KiB
Ruby

class Yydecode < Formula
desc "Decode yEnc archives"
homepage "https://yydecode.sourceforge.io"
url "https://downloads.sourceforge.net/project/yydecode/yydecode/0.2.10/yydecode-0.2.10.tar.gz"
sha256 "bd4879643f6539770fd23d1a51dc6a91ba3de2823cf14d047a40c630b3c7ba66"
bottle do
cellar :any_skip_relocation
rebuild 1
sha256 "e2e7285f1f2b18b4b99800602d15932dba435f6480c5776e5b57b734727f652f" => :high_sierra
sha256 "91dc4fe34931d45fcebaead39ce505116322c7866e786cf86a7065f9e57b42ac" => :sierra
sha256 "07aa31cabc4f2533df3b5670beed1ba99e3e7dcc3ffb3cf55fff56866e7bf11e" => :el_capitan
end
def install
# Redefinition of type found in 10.13 system headers
# https://sourceforge.net/p/yydecode/bugs/5/
if DevelopmentTools.clang_build_version >= 900
inreplace "src/crc32.h", "typedef unsigned long int u_int32_t;", ""
end
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make", "install"
end
end