1
1
class Makensis < Formula
2
2
desc "System to create Windows installers"
3
3
homepage "https://nsis.sourceforge.net/"
4
- url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.10 /nsis-3.10 -src.tar.bz2"
5
- sha256 "11b54a6307ab46fef505b2700aaf6f62847c25aa6eebaf2ae0aab2f17f0cb297 "
4
+ url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.11 /nsis-3.11 -src.tar.bz2"
5
+ sha256 "19e72062676ebdc67c11dc032ba80b979cdbffd3886c60b04bb442cdd401ff4b "
6
6
license "Zlib"
7
7
8
8
bottle do
@@ -22,11 +22,20 @@ class Makensis < Formula
22
22
uses_from_macos "zlib"
23
23
24
24
resource "nsis" do
25
- url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.09/nsis-3.09.zip"
26
- sha256 "f5dc52eef1f3884230520199bac6f36b82d643d86b003ce51bd24b05c6ba7c91"
25
+ url "https://downloads.sourceforge.net/project/nsis/NSIS%203/3.11/nsis-3.11.zip"
26
+ sha256 "c7d27f780ddb6cffb4730138cd1591e841f4b7edb155856901cdf5f214394fa1"
27
+
28
+ livecheck do
29
+ formula :parent
30
+ end
27
31
end
28
32
29
33
def install
34
+ if OS . linux?
35
+ ENV . append_to_cflags "-I#{ Formula [ "zlib" ] . opt_include } "
36
+ ENV . append "LDFLAGS" , "-Wl,-rpath,#{ rpath } "
37
+ end
38
+
30
39
args = [
31
40
"CC=#{ ENV . cc } " ,
32
41
"CXX=#{ ENV . cxx } " ,
@@ -36,8 +45,10 @@ def install
36
45
# Don't strip, see https://github.com/Homebrew/homebrew/issues/28718
37
46
"STRIP=0" ,
38
47
"VERSION=#{ version } " ,
48
+ # Scons dependency disables superenv in brew
49
+ "APPEND_CCFLAGS=#{ ENV . cflags } " ,
50
+ "APPEND_LINKFLAGS=#{ ENV . ldflags } " ,
39
51
]
40
- args << "APPEND_LINKFLAGS=-Wl,-rpath,#{ rpath } " if OS . linux?
41
52
42
53
system "scons" , "makensis" , *args
43
54
bin . install "build/urelease/makensis/makensis"
0 commit comments