[89259] trunk/dports/science/alliance/Portfile

and.damore at macports.org and.damore at macports.org
Sun Jan 22 07:43:55 PST 2012


Revision: 89259
          http://trac.macports.org/changeset/89259
Author:   and.damore at macports.org
Date:     2012-01-22 07:43:51 -0800 (Sun, 22 Jan 2012)
Log Message:
-----------
port alliance: change compiler check block to cope with Xcode 4.2 and issues with clang/llvm, changed master_sites, bumped version to newer tarball

Modified Paths:
--------------
    trunk/dports/science/alliance/Portfile

Modified: trunk/dports/science/alliance/Portfile
===================================================================
--- trunk/dports/science/alliance/Portfile	2012-01-22 10:17:02 UTC (rev 89258)
+++ trunk/dports/science/alliance/Portfile	2012-01-22 15:43:51 UTC (rev 89259)
@@ -3,7 +3,7 @@
 PortSystem          1.0
 
 name                alliance
-version             5.0-20090901
+version             5.0-20110203
 license             GPL
 set version_number  [lindex [split ${version} -] 0]
 categories          science
@@ -16,23 +16,15 @@
 platforms           darwin
 homepage            http://www-soc.lip6.fr/en/recherche/cian/alliance/
 
-master_sites        http://www-asim.lip6.fr/pub/alliance/distribution/${version_number}/ \
-                    http://www-asim.lip6.fr/pub/alliance/distribution/${version_number}/OLD_RELEASES/
+master_sites        ftp://asim.lip6.fr/pub/alliance/distribution/latest
 
-checksums           sha1    f09a4102290225a1fe7c8d49b3c2eee0c06ae916 \
-                    rmd160  4dd8c7d571da65060ee226512a89d7df2eaf9627
+checksums           sha1    a1a9f84b5120ea262c989fcf42a6131ee54d5ec7 \
+                    rmd160  be9554ae1c84c1f6d4cd49bf19e2fe997d9ec27b
 
 depends_lib         port:xpm \
                     port:openmotif \
                     port:libpng
 
-if {${os.major} == 11} {
-    depends_build       port:apple-gcc42
-
-    configure.compiler  apple-gcc-4.2
-    configure.cxx       g++-apple-4.2
-}
-
 worksrcdir          ${name}-${version_number}
 
 patchfiles          patch-distrib-etc-Makefile.in.diff
@@ -42,6 +34,15 @@
 configure.env-append  YACC='/usr/bin/yacc'
 destroot.env-append YACC='/usr/bin/yacc'
 
+if {${configure.compiler} == "clang" ||
+    ${configure.compiler} == "llvm-gcc-4.2"} {
+    configure.compiler gcc-4.2
+    if {[vercmp $xcodeversion 4.2] >= 0 || ![file executable ${configure.cc}]} {
+        depends_build-append port:apple-gcc42
+        configure.compiler apple-gcc-4.2
+    }
+}
+
 post-destroot {
     file mkdir  ${destroot}${prefix}/share/alliance
     file rename ${destroot}${prefix}/doc        ${destroot}${prefix}/share/alliance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120122/c79508be/attachment.html>


More information about the macports-changes mailing list