43 lines
1.4 KiB
Ruby
43 lines
1.4 KiB
Ruby
class Makensis < Formula
|
|
desc "System to create Windows installers"
|
|
homepage "https://nsis.sourceforge.io/"
|
|
url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.04/nsis-3.04-src.tar.bz2"
|
|
sha256 "609536046c50f35cfd909dd7df2ab38f2e835d0da3c1048aa0d48c59c5a4f4f5"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
rebuild 1
|
|
sha256 "4d74d5767848cf13e60ae11251566cbc19e5312f72322bad0865bf72a16160eb" => :mojave
|
|
sha256 "6acbda155df5231abf442fbbed4048eb5f3aa670d529aec16a75c947b2ec6a74" => :high_sierra
|
|
sha256 "d7fedae5d77ab31ec576b808296c72cf4cd53007021c11f937bbcd024c236822" => :sierra
|
|
end
|
|
|
|
depends_on "mingw-w64" => :build
|
|
depends_on "scons" => :build
|
|
|
|
resource "nsis" do
|
|
url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.04/nsis-3.04.zip"
|
|
sha256 "22f3349fea453a45551745635c13e5efb7849ecbdce709daa2b2fa8e2ac55fc4"
|
|
end
|
|
|
|
def install
|
|
args = [
|
|
"CC=#{ENV.cc}",
|
|
"CXX=#{ENV.cxx}",
|
|
"PREFIX_DOC=#{share}/nsis/Docs",
|
|
"SKIPUTILS=Makensisw,NSIS Menu,zip2exe",
|
|
# Don't strip, see https://github.com/Homebrew/homebrew/issues/28718
|
|
"STRIP=0",
|
|
"VERSION=#{version}",
|
|
"NSIS_MAX_STRLEN=8192",
|
|
]
|
|
system "scons", "makensis", *args
|
|
bin.install "build/urelease/makensis/makensis"
|
|
(share/"nsis").install resource("nsis")
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/makensis", "-VERSION"
|
|
system "#{bin}/makensis", "#{share}/nsis/Examples/bigtest.nsi", "-XOutfile /dev/null"
|
|
end
|
|
end
|