[72287] trunk/dports/lang/llvm/Portfile

mfeiri at macports.org mfeiri at macports.org
Sat Oct 9 19:40:13 PDT 2010


Revision: 72287
          http://trac.macports.org/changeset/72287
Author:   mfeiri at macports.org
Date:     2010-10-09 19:40:09 -0700 (Sat, 09 Oct 2010)
Log Message:
-----------
lang/llvm: stealth update and simplifications

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

Modified: trunk/dports/lang/llvm/Portfile
===================================================================
--- trunk/dports/lang/llvm/Portfile	2010-10-10 00:38:22 UTC (rev 72286)
+++ trunk/dports/lang/llvm/Portfile	2010-10-10 02:40:09 UTC (rev 72287)
@@ -4,6 +4,7 @@
 
 name                    llvm
 version                 2.8
+revision                1
 categories              lang
 platforms               darwin
 license                 UIUC/NCSA
@@ -18,43 +19,26 @@
 
 homepage                http://llvm.org/
 master_sites            ${homepage}releases/${version}/
+dist_subdir             ${name}/${version}_${revision}
 
 extract.suffix          .tgz
 
-checksums               ${distname}${extract.suffix} \
-                            md5     6b13c504c718385fa0a4d375275e7a05 \
-                            sha1    10d8957efac1d970fbc8264b28855250e9ce9eb1 \
-                            rmd160  ac54bd88d4fb624833cce86a1cb7f6f9cd2bc106 \
-                        clang-2.8.tgz \
-                            md5     10e14c901fc3728eecbd5b829e011b59 \
-                            sha1    94977c84ce136307dbbeade95e67bfe3c25161ff \
-                            rmd160  f00956b6de29cc09f3992aeabd140f2189c6cf39
+checksums               md5     220d361b4d17051ff4bb21c64abe05ba \
+                        sha1    6d49fe039d28e8664de25491c775cb2c599e30c1 \
+                        rmd160  3f5a71d07e105a7cf46eafc7a9006a927035012c
 
 depends_lib             port:libffi
 depends_run             bin:perl:perl5
 
-default_variants        +clang
 universal_variant       no
-
-configure.dir           ${workpath}/build
-build.dir               ${configure.dir}
-destroot.dir            ${configure.dir}
-
 build.env-append        REQUIRE_RTTI=1
-
-post-extract {
-    file mkdir ${configure.dir}
-}
-
 patchfiles              patch-Makefile.config.in.diff \
                         patch-Makefile.ocaml.diff
 
 configure.cppflags
 configure.ldflags
-configure.cmd           ${worksrcpath}/configure
-configure.args          --enable-optimized --enable-jit \
-                        --enable-bindings=none --enable-libffi \
-                        --disable-assertions --enable-shared
+configure.args          --enable-optimized --enable-shared \
+                        --enable-bindings=none --enable-libffi
 
 platform darwin {
     if {${build_arch} == "i386" } {
@@ -65,28 +49,8 @@
 }
 
 post-destroot {
-    file mkdir ${destroot}${prefix}/lib/llvm
-    file mkdir ${destroot}${prefix}/lib/llvm/src
-    file mkdir ${destroot}${prefix}/lib/llvm/obj
-
-    file copy ${worksrcpath}/include ${destroot}${prefix}/lib/llvm/src
-    file copy ${configure.dir}/include ${destroot}${prefix}/lib/llvm/obj
-    file copy ${configure.dir}/Release ${destroot}${prefix}/lib/llvm/obj
-
-    file copy ${configure.dir}/Makefile.config ${destroot}${prefix}/lib/llvm/obj
-    
-    system "install_name_tool -id ${prefix}/lib/libLLVMHello.dylib ${destroot}${prefix}/lib/libLLVMHello.dylib"
-    system "install_name_tool -id ${prefix}/lib/libprofile_rt.dylib ${destroot}${prefix}/lib/libprofile_rt.dylib"
-    
-    reinplace "s|${worksrcpath}|${prefix}/lib/llvm/src|g"       ${destroot}${prefix}/bin/llvm-config \
-                                                                ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
-    reinplace "s|${configure.dir}|${prefix}/lib/llvm/obj|g"     ${destroot}${prefix}/bin/llvm-config \
-                                                                ${destroot}${prefix}/lib/llvm/obj/Release/bin/llvm-config
-
-    fs-traverse item ${destroot} {
-        if {[file isfile ${item}] && ".dir" == [file tail ${item}]} {
-            delete ${item}
-        }
+    foreach x {LLVMHello profile_rt BugpointPasses} {
+        system "install_name_tool -id ${prefix}/lib/lib${x}.dylib ${destroot}${prefix}/lib/lib${x}.dylib"
     }
 }
 
@@ -99,21 +63,6 @@
     destroot.args-append  OVERRIDE_libdir=${prefix}/lib
 }
 
-variant disable_pic description {Disable generation of position independent code} {
-    configure.args-append --disable-pic
-}
-
-variant host_only description {Disables non-host targets} {
-    configure.args-append --enable-targets=host-only
-}
-
-variant clang description {Install clang frontend} {
-    distfiles-append    clang-${version}${extract.suffix}
-    post-extract {
-        move ${workpath}/clang-${version} ${worksrcpath}/tools/clang
-    }
-}
-
 livecheck.type  regex
 livecheck.url   ${homepage}releases/
 livecheck.regex {'(\d+\.\d+)'}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101009/f26069ae/attachment.html>


More information about the macports-changes mailing list