[63912] trunk/dports/math/pari/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Wed Feb 17 17:33:09 PST 2010


Revision: 63912
          http://trac.macports.org/changeset/63912
Author:   jeremyhu at macports.org
Date:     2010-02-17 17:33:08 -0800 (Wed, 17 Feb 2010)
Log Message:
-----------
pari: Fix +universal, ok'd by email

Modified Paths:
--------------
    trunk/dports/math/pari/Portfile

Modified: trunk/dports/math/pari/Portfile
===================================================================
--- trunk/dports/math/pari/Portfile	2010-02-18 00:54:06 UTC (rev 63911)
+++ trunk/dports/math/pari/Portfile	2010-02-18 01:33:08 UTC (rev 63912)
@@ -1,6 +1,7 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup  muniversal 1.0
 
 name                pari
 version             2.3.5
@@ -25,7 +26,10 @@
 # used, libreadline is not found. One needs *PATH environment variables.
 configure.env       C_INCLUDE_PATH=${prefix}/include \
                     LIBRARY_PATH=${prefix}/lib
+
 configure.args      --mandir=${prefix}/share/man --with-readline
+configure.universal_args-delete --disable-dependency-tracking
+
 pre-configure {
     file rename -force ${worksrcpath}/Configure ${worksrcpath}/configure
 }
@@ -36,14 +40,21 @@
 }
 
 post-destroot {
+    global os.arch
     set docdir ${destroot}${prefix}/share/doc/${name}
     file mkdir ${docdir}
     xinstall -m 644 -v -W ${worksrcpath} \
       AUTHORS CHANGES COPYING ${docdir}
     system "ln -s ../../${name}/doc ${docdir}/doc"
-    xinstall -m 644 -v -W ${worksrcpath}/doc \
-      develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \
-      ${destroot}${prefix}/share/${name}/doc
+    if {[variant_isset universal]} {
+        xinstall -m 644 -v -W ${worksrcpath}-${os.arch}/doc \
+          develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \
+          ${destroot}${prefix}/share/${name}/doc
+    } else {
+        xinstall -m 644 -v -W ${worksrcpath}/doc \
+          develop.pdf libpari.pdf refcard.pdf tutorial.pdf users.pdf \
+          ${destroot}${prefix}/share/${name}/doc
+    }
 }
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100217/85d1e2e8/attachment.html>


More information about the macports-changes mailing list