[111045] trunk/dports/lang/smlnj/Portfile

cal at macports.org cal at macports.org
Fri Sep 13 17:10:33 PDT 2013


Revision: 111045
          https://trac.macports.org/changeset/111045
Author:   cal at macports.org
Date:     2013-09-13 17:10:32 -0700 (Fri, 13 Sep 2013)
Log Message:
-----------
smlnj: clean up whitespace, simplify

Modified Paths:
--------------
    trunk/dports/lang/smlnj/Portfile

Modified: trunk/dports/lang/smlnj/Portfile
===================================================================
--- trunk/dports/lang/smlnj/Portfile	2013-09-14 00:04:55 UTC (rev 111044)
+++ trunk/dports/lang/smlnj/Portfile	2013-09-14 00:10:32 UTC (rev 111045)
@@ -1,25 +1,25 @@
 # -*- 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
+PortSystem          1.0
 
-name             smlnj
-version          110.75
-revision         1
-categories       lang ml
-license          BSD
-maintainers      bfulgham
-description      Standard ML of New Jersey
+name                smlnj
+version             110.75
+revision            1
+categories          lang ml
+license             BSD
+maintainers         bfulgham
+description         Standard ML of New Jersey
 long_description \
-	Standard ML of New Jersey (abbreviated SML/NJ) is a \
-	compiler for the Standard ML '97 programming language \
-	with associated libraries, tools, and documentation. \
-	SML/NJ is free, open source software.
-homepage         http://www.smlnj.org/
-platforms        darwin
+    Standard ML of New Jersey (abbreviated SML/NJ) is a \
+    compiler for the Standard ML '97 programming language \
+    with associated libraries, tools, and documentation. \
+    SML/NJ is free, open source software.
+homepage            http://www.smlnj.org/
+platforms           darwin
 
-master_sites     http://smlnj.cs.uchicago.edu/dist/working/${version}/
-dist_subdir      ${name}/${version}_${revision}
+master_sites        http://smlnj.cs.uchicago.edu/dist/working/${version}/
+dist_subdir         ${name}/${version}_${revision}
 
 distfiles
 checksums
@@ -48,42 +48,39 @@
 ]
 
 foreach {tarball checksum} $srcs {
-	distfiles-append $tarball
-	checksums-append $tarball sha1 $checksum
+    distfiles-append $tarball
+    checksums-append $tarball sha1 $checksum
 }
 
 
 # Platform-specific boot code (omitted: sparc-unix, x86-win32)
 platform powerpc {
-	distfiles-append boot.ppc-unix.tgz
-	checksums-append boot.ppc-unix.tgz sha1 815447275d6321f85b6c97e84aa223f6d710b516
+    distfiles-append boot.ppc-unix.tgz
+    checksums-append boot.ppc-unix.tgz sha1 815447275d6321f85b6c97e84aa223f6d710b516
 }
 platform i386 {
-	distfiles-append boot.x86-unix.tgz
-	checksums-append boot.x86-unix.tgz sha1 0e459e33f54811750a42311a22bc4572ab16ebcb
+    distfiles-append boot.x86-unix.tgz
+    checksums-append boot.x86-unix.tgz sha1 0e459e33f54811750a42311a22bc4572ab16ebcb
 }
 
 ### extract ###
-pre-extract {
-	file mkdir ${worksrcpath}
-}
-extract.dir          ${worksrcpath}
-extract.only         config.tgz
+extract.mkdir       yes
+extract.only        config.tgz
 
 ### patch ###
 patchfiles          patch-config__install.sh-correct-compiler.diff
 
 post-patch {
-	reinplace "s|@CC@|${configure.cc}|" ${worksrcpath}/config/install.sh
-	reinplace "s|@CPP@|${configure.cc}|" ${worksrcpath}/config/install.sh
-	reinplace "s|@CFLAGS@|${configure.cflags}|" ${worksrcpath}/config/install.sh
-	reinplace "s|@LDFLAGS@|${configure.ldflags}|" ${worksrcpath}/config/install.sh
+    reinplace "s|@CC@|${configure.cc}|" ${worksrcpath}/config/install.sh
+    reinplace "s|@CPP@|${configure.cc}|" ${worksrcpath}/config/install.sh
+    reinplace "s|@CFLAGS@|${configure.cflags}|" ${worksrcpath}/config/install.sh
+    reinplace "s|@LDFLAGS@|${configure.ldflags}|" ${worksrcpath}/config/install.sh
 }
 
 ### configure ###
 configure {
-	reinplace "s|SRCARCHIVEURL=.*|SRCARCHIVEURL=file://${distpath}|" \
-		${worksrcpath}/config/srcarchiveurl
+    reinplace "s|SRCARCHIVEURL=.*|SRCARCHIVEURL=file://${distpath}|" \
+        ${worksrcpath}/config/srcarchiveurl
     reinplace "s|#request src-smlnj|request src-smlnj|" \
         ${worksrcpath}/config/targets
     reinplace "s|#request eXene|request eXene|" \
@@ -95,28 +92,26 @@
 }
 
 ### build ###
-build.env           URLGETTER=curl \
-                    CC=${configure.cc} \
-                    CPP=\"${configure.cc} -x assembler-with-cpp -E\"
+build.env           URLGETTER=curl
 build.cmd           ${worksrcpath}/config/install.sh
 build.target
 
 ### destroot ###
 destroot {
-	set smlnj_home ${prefix}/share/smlnj
+    set smlnj_home ${prefix}/share/smlnj
 
-	file mkdir ${destroot}${smlnj_home}
-	file copy ${worksrcpath}/bin ${destroot}${smlnj_home}
-	file copy ${worksrcpath}/lib ${destroot}${smlnj_home}
+    file mkdir ${destroot}${smlnj_home}
+    file copy ${worksrcpath}/bin ${destroot}${smlnj_home}
+    file copy ${worksrcpath}/lib ${destroot}${smlnj_home}
 
-	xinstall -m 555 ${filespath}/sml.sh ${destroot}${prefix}/bin/sml
-	reinplace "s|__SMLNJ_HOME__|${smlnj_home}|g" \
-		${destroot}${prefix}/bin/sml
+    xinstall -m 555 ${filespath}/sml.sh ${destroot}${prefix}/bin/sml
+    reinplace "s|__SMLNJ_HOME__|${smlnj_home}|g" \
+        ${destroot}${prefix}/bin/sml
 
-	foreach prog [glob -directory ${worksrcpath}/bin *] {
-		set progname [file tail $prog]
-		if {![string equal $progname sml]} {
-			system "ln -s sml ${destroot}${prefix}/bin/${progname}"
-		}
-	}
+    foreach prog [glob -directory ${worksrcpath}/bin *] {
+        set progname [file tail $prog]
+        if {![string equal $progname sml]} {
+            system "ln -s sml ${destroot}${prefix}/bin/${progname}"
+        }
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130913/345b5303/attachment.html>


More information about the macports-changes mailing list