source: trunk/dports/devel/nsis/Portfile @ 32257

Last change on this file since 32257 was 32257, checked in by ryandesign@…, 13 years ago

All openmaintainer ports: ${prefix} already begins with a slash,
so there's no reason to put a slash before the ${prefix} variable
when using it.

See r32256 for the equivalent change for nomaintainer ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 32257 2007-12-23 09:39:21Z ryandesign@macports.org $
2
3PortSystem 1.0
4name                    nsis
5version                 2.24
6categories              devel win32
7platforms               darwin
8maintainers             landonf@macports.org openmaintainer
9homepage                http://nsis.sourceforge.net/
10description             NSIS is a tool for creating win32 installers.
11long_description        NSIS (Nullsoft Scriptable Install System) is a tool \
12                        that allows programmers to create software installers \
13                        for Windows. It is released under an open source \
14                        license and is completely free for any use.
15
16master_sites            sourceforge
17
18distfiles               nsis-${version}-src.tar.bz2 \
19                        nsis-${version}.zip
20checksums               nsis-${version}-src.tar.bz2 md5 5056ec9fa7394842483c9a1142d7a41e \
21                        nsis-${version}.zip sha1 d94e5784540b3b364fc516a08eb63c629c2f951f
22
23worksrcdir              nsis-${version}-src
24use_bzip2               yes
25
26depends_build           port:scons port:i386-mingw32-gcc
27
28extract.only            nsis-${version}-src.tar.bz2
29
30post-extract {
31        system "cd ${workpath} && unzip ${distpath}/nsis-${version}.zip"
32}
33
34configure               {}
35
36set scons.args          "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all"
37
38build {
39        system "cd ${worksrcpath} && scons ${scons.args}"
40}
41
42destroot {
43        system "cd ${worksrcpath} && scons ${scons.args} install"
44        foreach dir {Bin Docs Include Plugins Contrib Examples Menu Stubs} {
45                file delete -force ${destpath}${prefix}/share/nsis/${dir}
46                file copy -force ${workpath}/nsis-${version}/${dir} ${destpath}${prefix}/share/nsis
47        }
48        system "chmod -R go-w '${destpath}${prefix}/share/nsis'"
49}
Note: See TracBrowser for help on using the repository browser.