[89196] trunk/dports/lang/upc/Portfile

takeshi at macports.org takeshi at macports.org
Fri Jan 20 14:54:21 PST 2012


Revision: 89196
          http://trac.macports.org/changeset/89196
Author:   takeshi at macports.org
Date:     2012-01-20 14:54:21 -0800 (Fri, 20 Jan 2012)
Log Message:
-----------
upc: revamped for 4.7.0.1

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

Modified: trunk/dports/lang/upc/Portfile
===================================================================
--- trunk/dports/lang/upc/Portfile	2012-01-20 19:59:41 UTC (rev 89195)
+++ trunk/dports/lang/upc/Portfile	2012-01-20 22:54:21 UTC (rev 89196)
@@ -4,7 +4,7 @@
 PortSystem          1.0
 
 name                upc
-version             4.5.1.2
+version             4.7.0.1
 categories          lang parallel science
 maintainers         takeshi openmaintainer
 description         Unified Parallel C
@@ -16,11 +16,11 @@
 platforms           darwin
 master_sites        http://www.gccupc.org/downloads/upc/rls/${name}-${version}/
 distname            ${name}-${version}.src
+use_bzip2           yes
+checksums           md5     f91e785aa104239ec7dffeb2d5ad0dfc \
+                    sha1    8250fc5e195c2b0bbc01f63efe4a1d4749b131dc \
+                    rmd160  27416e676b5209617ac80228203509b525a43a8d
 
-checksums           md5     6877aedc7c3a329167d9e997ef734e40 \
-                    sha1    47c1df81dbc889ab098ad090298e27d9cd9a3d89 \
-                    rmd160  e87edf607d8b023467faf6cc6df75b7e9f972a5e
-
 depends_lib         port:gmp port:mpfr port:libiconv port:libmpc
 
 worksrcdir          build
@@ -42,21 +42,20 @@
     }
 }
 
-# set compiler to enable build on Lion
-configure.compiler  gcc-4.2
 configure.cmd       ../${name}-${version}/configure
 configure.args      --bindir=${prefix}/lib/${name}/bin \
                     --libdir=${prefix}/lib/${name} \
                     --libexecdir=${prefix}/libexec/${name} \
-                    --infodir=${prefix}/share/info \
-                    --mandir=${prefix}/share/man \
+                    --datarootdir=${prefix}/share/${name} \
                     --with-local-prefix=${prefix} \
                     --with-system-zlib \
                     --disable-nls \
-                    --without-gnuld \
+                    --without-gnu-ld \
                     --disable-multilib \
                     --with-gmp=${prefix} \
-                    --with-mpfr=${prefix}
+                    --with-mpfr=${prefix} \
+                    --with-mpc=${prefix} \
+                    --enable-languages=upc
 if {${os.platform} == "darwin" && ${build_arch} == "x86_64"} {
     configure.args-append   --build=${build_arch}-apple-${os.platform}${os.major}
 }
@@ -64,17 +63,13 @@
 universal_variant   no
 
 post-destroot {
-    set man [glob ${destroot}${prefix}/share/man/man1/*]
-    set i [lsearch $man ${destroot}${prefix}/share/man/man1/upc.1]
-    foreach f [lreplace $man $i $i] {
-        file delete $f
-    }
-    file delete -force ${destroot}${prefix}/share/man/man7
-    file delete -force ${destroot}${prefix}/share/info
-    xinstall -d 755 -m ${destroot}${prefix}/share/${name}
-    file copy ${workpath}/${name}-${version}/upc_test ${destroot}${prefix}/share/${name}
+    xinstall -d ${destroot}${prefix}/share/man/man1
+    xinstall -m 644 ${destroot}${prefix}/share/${name}/man/man1/${name}.1 \
+        ${destroot}${prefix}/share/man/man1/
+    file delete -force ${destroot}${prefix}/include
+    file delete -force ${destroot}${prefix}/share/${name}
     system "cd ${destroot}${prefix}/bin; \
-            ln -s ${prefix}/lib/${name}/bin/${name} ${name};"
+            ln -s ${prefix}/lib/${name}/bin/${name} ${name}"
 }
 
 # Error: cannot check if upc was updated (The requested URL returned error: 406)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120120/79999b68/attachment.html>


More information about the macports-changes mailing list