Ticket #51919: nsis-3.0.diff

File nsis-3.0.diff, 4.5 KB (added by macports@…, 8 years ago)
  • (a) Portfile vs. (b) Portfile-2.45

    a b  
    22
    33PortSystem 1.0
    44
    5 name                nsis
    6 version             3.0
    7 categories          devel
    8 license             zlib CPL-1 MIT
    9 platforms           darwin
    10 maintainers         nomaintainer
    11 homepage            http://nsis.sourceforge.net/
    12 description         NSIS is a tool for creating win32 installers.
    13 long_description    NSIS (Nullsoft Scriptable Install System) is a tool \
    14                     that allows programmers to create software installers \
    15                     for Windows. It is released under an open source \
    16                     license and is completely free for any use.
    17 
    18 master_sites        sourceforge
    19 
    20 distfiles           nsis-${version}-src.tar.bz2 \
    21                     nsis-${version}.zip
    22 checksums           nsis-${version}-src.tar.bz2 \
    23                     md5     23d2e0f58e7ea3b2df2c16791896a6f1 \
    24                     sha1    6b86d6765a1bac9261d9da5361c5fa7b9a7c4ae9 \
    25                     rmd160  10da864e78b23789bf0cbd45d7815240fc73d52b \
    26                     nsis-${version}.zip \
    27                     md5     61e21d6865e1d74d315e31d623924199 \
    28                     sha1    58817baa6509ad239f6cdff90ac013689aff1902 \
    29                     rmd160  f76d61becc57ec8e62b6f53c986e647fd7ac67cb \
     5name                    nsis
     6version                 2.45
     7categories              devel
     8license                 zlib CPL-1 MIT
     9platforms               darwin
     10maintainers             nomaintainer
     11homepage                http://nsis.sourceforge.net/
     12description             NSIS is a tool for creating win32 installers.
     13long_description        NSIS (Nullsoft Scriptable Install System) is a tool \
     14                        that allows programmers to create software installers \
     15                        for Windows. It is released under an open source \
     16                        license and is completely free for any use.
     17
     18master_sites            sourceforge
     19
     20distfiles               nsis-${version}-src.tar.bz2 \
     21                        nsis-${version}.zip
     22checksums               nsis-${version}-src.tar.bz2 \
     23                                md5     91a167a19c75f8dd52654e4cdc2ae0d4 \
     24                                sha1    ce02adf68dbedc798615ffb212d27a9b03d5defb \
     25                                rmd160  c5b1abdac37892b3f49455fa42d44c030dc451b7 \
     26                        nsis-${version}.zip \
     27                                md5     8fb39ec61b003653968c0f1c6b6dc73f \
     28                                sha1    d956939a4aa0cc78c72a93f236b121c40e0c4bc9 \
     29                                rmd160  327d0ed9ebdfab44ecaf71c7b4a83c8b874f7519
    3030
    31 worksrcdir          nsis-${version}-src
    32 use_bzip2           yes
     31worksrcdir              nsis-${version}-src
     32use_bzip2               yes
    3333
    34 depends_build       port:scons
     34depends_build           port:scons port:i386-mingw32-gcc
    3535
    36 extract.only        nsis-${version}-src.tar.bz2
     36extract.only            nsis-${version}-src.tar.bz2
    3737
    3838post-extract {
    39     system "cd ${workpath} && unzip ${distpath}/nsis-${version}.zip"
     39        system "cd ${workpath} && unzip ${distpath}/nsis-${version}.zip"
    4040}
    4141
    42 patchfiles          patch-SConstruct.diff
    43 
    44 use_configure       no
    45 
    46 # nsis doesn't compile against libc++, which is the default in clang on 10.9
    47 # https://sourceforge.net/p/nsis/bugs/1085/
    48 compiler.whitelist  llvm-gcc-4.2 macports-llvm-gcc-4.2 gcc-4.2 apple-gcc-4.2
     42use_configure           no
    4943
    5044# nsis can only ever be built 32-bit, but relies on libiconv. Since the dependency is limited to only iconv,
    5145# we will rely on the base system 32-bit libiconv installation. Should MacPorts switch to 32-bit/64-bit universal
    5246# builds by default, this decision should be revisited.
    53 set scons.args      "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" CC=\"${configure.cc}\" CXX=\"${configure.cxx}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all"
     47set scons.args          "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all"
    5448# APPEND_CPPPATH=\"${prefix}/include\" APPEND_LIBPATH=\"${prefix}/lib\"
    5549
    5650build {
    57     system "cd ${worksrcpath} && scons ${scons.args}"
     51        system "cd ${worksrcpath} && scons ${scons.args}"
    5852}
    5953
    6054destroot {
    61     system "cd ${worksrcpath} && scons ${scons.args} install"
    62     foreach dir {Bin Docs Include Plugins Contrib Examples Menu Stubs} {
    63         file delete -force ${destpath}${prefix}/share/nsis/${dir}
    64         file copy -force ${workpath}/nsis-${version}/${dir} ${destpath}${prefix}/share/nsis
    65     }
    66     system "chmod -R go-w '${destpath}${prefix}/share/nsis'"
     55        system "cd ${worksrcpath} && scons ${scons.args} install"
     56        foreach dir {Bin Docs Include Plugins Contrib Examples Menu Stubs} {
     57                file delete -force ${destpath}${prefix}/share/nsis/${dir}
     58                file copy -force ${workpath}/nsis-${version}/${dir} ${destpath}${prefix}/share/nsis
     59        }
     60        system "chmod -R go-w '${destpath}${prefix}/share/nsis'"
    6761}