Ticket #51934: whitespace.diff

File whitespace.diff, 4.2 KB (added by macports@…, 8 years ago)
  • Portfile

     
    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.
     5name              nsis
     6version           3.0
     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.
    1313long_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
     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     23d2e0f58e7ea3b2df2c16791896a6f1 \
     24                  sha1    6b86d6765a1bac9261d9da5361c5fa7b9a7c4ae9 \
     25                  rmd160  10da864e78b23789bf0cbd45d7815240fc73d52b \
     26                  nsis-${version}.zip \
     27                  md5     61e21d6865e1d74d315e31d623924199 \
     28                  sha1    58817baa6509ad239f6cdff90ac013689aff1902 \
     29                  rmd160  f76d61becc57ec8e62b6f53c986e647fd7ac67cb
    3030
    31 worksrcdir              nsis-${version}-src
    32 use_bzip2               yes
     31worksrcdir        nsis-${version}-src
     32use_bzip2         yes
    3333
    34 depends_build           port:scons port:i386-mingw32-gcc
     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 use_configure           no
     42use_configure     no
    4343
    4444# nsis can only ever be built 32-bit, but relies on libiconv. Since the dependency is limited to only iconv,
    4545# we will rely on the base system 32-bit libiconv installation. Should MacPorts switch to 32-bit/64-bit universal
    4646# builds by default, this decision should be revisited.
    47 set scons.args          "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all"
     47set scons.args    "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all"
    4848# APPEND_CPPPATH=\"${prefix}/include\" APPEND_LIBPATH=\"${prefix}/lib\"
    4949
    5050build {
    51         system "cd ${worksrcpath} && scons ${scons.args}"
     51    system "cd ${worksrcpath} && scons ${scons.args}"
    5252}
    5353
    5454destroot {
    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'"
     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'"
    6161}