[151441] trunk/dports/devel/nsis/Portfile

khindenburg at macports.org khindenburg at macports.org
Tue Aug 16 06:42:42 PDT 2016


Revision: 151441
          https://trac.macports.org/changeset/151441
Author:   khindenburg at macports.org
Date:     2016-08-16 06:42:41 -0700 (Tue, 16 Aug 2016)
Log Message:
-----------
nsis: add modeline + whitespace changes #51934

Modified Paths:
--------------
    trunk/dports/devel/nsis/Portfile

Modified: trunk/dports/devel/nsis/Portfile
===================================================================
--- trunk/dports/devel/nsis/Portfile	2016-08-16 11:15:08 UTC (rev 151440)
+++ trunk/dports/devel/nsis/Portfile	2016-08-16 13:42:41 UTC (rev 151441)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem 1.0
@@ -2,58 +3,60 @@
 
-name			nsis
-version			2.45
-categories		devel
-license			zlib CPL-1 MIT
-platforms		darwin
-maintainers		nomaintainer
-homepage		http://nsis.sourceforge.net/
-description		NSIS is a tool for creating win32 installers.
-long_description	NSIS (Nullsoft Scriptable Install System) is a tool \
-			that allows programmers to create software installers \
-			for Windows. It is released under an open source \
-			license and is completely free for any use.
+name                nsis
+version             2.45
+categories          devel
+license             zlib CPL-1 MIT
+platforms           darwin
+maintainers         nomaintainer
 
-master_sites		sourceforge
+description         NSIS is a tool for creating win32 installers.
+long_description    NSIS (Nullsoft Scriptable Install System) is a tool \
+            that allows programmers to create software installers \
+            for Windows. It is released under an open source \
+            license and is completely free for any use.
 
-distfiles		nsis-${version}-src.tar.bz2 \
-			nsis-${version}.zip
-checksums		nsis-${version}-src.tar.bz2 \
-				md5     91a167a19c75f8dd52654e4cdc2ae0d4 \
-                    		sha1    ce02adf68dbedc798615ffb212d27a9b03d5defb \
-                    		rmd160  c5b1abdac37892b3f49455fa42d44c030dc451b7 \
-			nsis-${version}.zip \
-            		        md5     8fb39ec61b003653968c0f1c6b6dc73f \
-                    		sha1    d956939a4aa0cc78c72a93f236b121c40e0c4bc9 \
-                    		rmd160  327d0ed9ebdfab44ecaf71c7b4a83c8b874f7519
+homepage            http://nsis.sourceforge.net/
+master_sites        sourceforge
 
-worksrcdir		nsis-${version}-src
-use_bzip2		yes
+distfiles           nsis-${version}-src.tar.bz2 \
+                    nsis-${version}.zip
+checksums           nsis-${version}-src.tar.bz2 \
+                        md5     91a167a19c75f8dd52654e4cdc2ae0d4 \
+                        sha1    ce02adf68dbedc798615ffb212d27a9b03d5defb \
+                        rmd160  c5b1abdac37892b3f49455fa42d44c030dc451b7 \
+                    nsis-${version}.zip \
+                        md5     8fb39ec61b003653968c0f1c6b6dc73f \
+                        sha1    d956939a4aa0cc78c72a93f236b121c40e0c4bc9 \
+                        rmd160  327d0ed9ebdfab44ecaf71c7b4a83c8b874f7519
 
-depends_build		port:scons port:i386-mingw32-gcc
+worksrcdir          nsis-${version}-src
+use_bzip2           yes
 
-extract.only		nsis-${version}-src.tar.bz2
+depends_build       port:scons port:i386-mingw32-gcc
 
+extract.only        nsis-${version}-src.tar.bz2
+
 post-extract {
-	system "cd ${workpath} && unzip ${distpath}/nsis-${version}.zip"
+    system "cd ${workpath} && unzip ${distpath}/nsis-${version}.zip"
 }
 
-use_configure		no
+use_configure       no
 
-# nsis can only ever be built 32-bit, but relies on libiconv. Since the dependency is limited to only iconv,
-# we will rely on the base system 32-bit libiconv installation. Should MacPorts switch to 32-bit/64-bit universal
-# builds by default, this decision should be revisited.
-set scons.args		"PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all"
+# nsis can only ever be built 32-bit, but relies on libiconv. Since the
+# dependency is limited to only iconv, we will rely on the base system
+# 32-bit libiconv installation. Should MacPorts switch to 32-bit/64-bit
+# universal builds by default, this decision should be revisited.
+set scons.args      "PREFIX=\"${prefix}\" PREFIX_DEST=\"${destroot}\" SKIPSTUBS=all SKIPPLUGINS=all SKIPUTILS=all SKIPMISC=all"
 # APPEND_CPPPATH=\"${prefix}/include\" APPEND_LIBPATH=\"${prefix}/lib\"
 
 build {
-	system "cd ${worksrcpath} && scons ${scons.args}"
+    system "cd ${worksrcpath} && scons ${scons.args}"
 }
 
 destroot {
-	system "cd ${worksrcpath} && scons ${scons.args} install"
-	foreach dir {Bin Docs Include Plugins Contrib Examples Menu Stubs} {
-		file delete -force ${destpath}${prefix}/share/nsis/${dir}
-		file copy -force ${workpath}/nsis-${version}/${dir} ${destpath}${prefix}/share/nsis
-	}
-	system "chmod -R go-w '${destpath}${prefix}/share/nsis'"
+    system "cd ${worksrcpath} && scons ${scons.args} install"
+    foreach dir {Bin Docs Include Plugins Contrib Examples Menu Stubs} {
+        file delete -force ${destpath}${prefix}/share/nsis/${dir}
+        file copy -force ${workpath}/nsis-${version}/${dir} ${destpath}${prefix}/share/nsis
+    }
+    system "chmod -R go-w '${destpath}${prefix}/share/nsis'"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160816/c57c2464/attachment.html>


More information about the macports-changes mailing list