[112762] trunk/dports/lang/chapel/Portfile

takeshi at macports.org takeshi at macports.org
Thu Oct 31 00:19:13 PDT 2013


Revision: 112762
          https://trac.macports.org/changeset/112762
Author:   takeshi at macports.org
Date:     2013-10-31 00:19:13 -0700 (Thu, 31 Oct 2013)
Log Message:
-----------
chapel: updated for 1.8.0. switched compiler to clang

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

Modified: trunk/dports/lang/chapel/Portfile
===================================================================
--- trunk/dports/lang/chapel/Portfile	2013-10-31 07:10:50 UTC (rev 112761)
+++ trunk/dports/lang/chapel/Portfile	2013-10-31 07:19:13 UTC (rev 112762)
@@ -4,8 +4,7 @@
 PortSystem          1.0
 
 name                chapel
-set vers            1.5
-version             ${vers}.0 
+version             1.8.0 
 categories          lang parallel science
 platforms           darwin
 supported_archs     i386 x86_64
@@ -19,35 +18,21 @@
 homepage            http://chapel.cray.com/
 master_sites        sourceforge:project/chapel/chapel/${version}
 
-checksums           md5     38368f62afb2cad0327af26eabe06866 \
-                    sha1    26d2a56ba80ae4db0abeeddffc132fc61439a649 \
-                    rmd160  85e49034e7ac1e795c54bbee9a070183ce09dd1e
+checksums           md5     cb275943b0cfb5a647aa9d0330a0b78d \
+                    sha1    0adef93d9b8ce61447cb6f23c5c910f54c5aa695 \
+                    rmd160  ed3a4f73542d9a04d9269fde3c42a34f37911971
 
-worksrcdir          ${name}-${vers}
-
 use_configure       no
 use_parallel_build  no
-  
-# chapel has buggy C++ code that fails with clang
-compiler.blacklist *clang*
 
-platform darwin {
-    if {${os.major} >= 13} {
-        depends_lib
-        depends_run
-        pre-fetch {
-            ui_error "$name does not build on Mavericks or later."
-            error "unsupported platform"
-        }
-    }
-}
-
+patchfiles          patch-compiler.diff
+  
 configure.optflags  -O3
 
 variant universal {}
 
-build.env           CHPL_HOST_COMPILER=gnu \
-                    CHPL_TARGET_COMPILER=gnu \
+build.env           CHPL_HOST_COMPILER=clang \
+                    CHPL_TARGET_COMPILER=clang \
                     LDFLAGS="[get_canonical_archflags ld]"
 
 build.args          CXX=${configure.cxx} \
@@ -62,19 +47,28 @@
         file copy ${worksrcpath}/${d} ${destroot}${prefix}/lib/${name}
     }
     xinstall -d ${destroot}${prefix}/lib/${name}/third-party
-    foreach d "dlmalloc gasnet gmp nanox qthread tcmalloc" {
+    foreach d "creoleparser dlmalloc gasnet gmp massivethreads qthread re2 tcmalloc" {
         xinstall -d ${destroot}${prefix}/lib/${name}/third-party/$d
         xinstall -m 644 ${worksrcpath}/third-party/${d}/Makefile.include \
             ${destroot}${prefix}/lib/${name}/third-party/$d
     }
+    xinstall -d ${destroot}${prefix}/lib/${name}/third-party/llvm
+    foreach f "Makefile.include-none Makefile.share" {
+        xinstall -m 644 ${worksrcpath}/third-party/llvm/$f \
+            ${destroot}${prefix}/lib/${name}/third-party/llvm
+    }
     xinstall -d ${destroot}${prefix}/lib/${name}/third-party/utf8-decoder
     xinstall -m 644 ${worksrcpath}/third-party/utf8-decoder/utf8-decoder.h \
         ${destroot}${prefix}/lib/${name}/third-party/utf8-decoder
+    xinstall -d ${destroot}${prefix}/etc/${name}
+    foreach d "README emacs source-highlight vim" {
+        file copy ${worksrcpath}/etc/${d} ${destroot}${prefix}/etc/${name}
+    }
 }
 
 variant universal {}
 
 notes "
 set CHPL_HOME to ${prefix}/lib/${name}
-set CHPL_HOST_PLATFORM to darwin
+set CHPL_CC_FLAGS -Wno-tautological-compare to suppress warnings
 "
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20131031/8b26d482/attachment-0001.html>


More information about the macports-changes mailing list