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

vinc17 at macports.org vinc17 at macports.org
Mon Feb 22 06:26:57 PST 2010


Revision: 64109
          http://trac.macports.org/changeset/64109
Author:   vinc17 at macports.org
Date:     2010-02-22 06:26:57 -0800 (Mon, 22 Feb 2010)
Log Message:
-----------
pari: added doc variant to avoid texlive dependency by default, as
suggested by #23798. Without this variant, DVI/PDF/PS documentation
is not built/installed.

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

Modified: trunk/dports/math/pari/Portfile
===================================================================
--- trunk/dports/math/pari/Portfile	2010-02-22 14:22:12 UTC (rev 64108)
+++ trunk/dports/math/pari/Portfile	2010-02-22 14:26:57 UTC (rev 64109)
@@ -5,6 +5,7 @@
 
 name                pari
 version             2.3.5
+revision            1
 categories          math
 platforms           darwin
 maintainers         vinc17
@@ -17,10 +18,9 @@
 checksums           md5     6077c6db56fdd32e39a06a9bf320e1f7 \
                     sha1    f211ccfe42a4b18dbcde832dfd1ece6f477f4966 \
                     rmd160  488adf3af5398d0ab5390eb86b65cd79bd1044c5
-depends_build       path:${prefix}/bin/tex:texlive
 depends_lib         port:xorg-libX11 port:ncurses port:readline
 
-build.target        gp docpdf
+build.target        gp
 
 # PARI/GP doesn't use autoconf, and if only *FLAGS environment variables are
 # used, libreadline is not found. One needs *PATH environment variables.
@@ -32,8 +32,19 @@
 
 pre-configure {
     file rename -force ${worksrcpath}/Configure ${worksrcpath}/configure
+    if {![variant_isset doc]} {
+      reinplace "s/\\(doc all:\\).*/\\1/" \
+        ${worksrcpath}/config/DOC_Make.SH
+      reinplace "/INSTALL_DATA.*\\.\\(dvi\\|ps\\)/d" \
+        ${worksrcpath}/config/Makefile.SH
+    }
 }
 
+variant doc description {Build DVI/PDF/PS documentation} {
+    depends_build-append path:${prefix}/bin/tex:texlive
+    build.target-append docpdf
+}
+
 variant gmp description {GNU MP support} {
     depends_lib-append port:gmp
     configure.args-append --with-gmp
@@ -46,14 +57,16 @@
     xinstall -m 644 -v -W ${worksrcpath} \
       AUTHORS CHANGES COPYING ${docdir}
     system "ln -s ../../${name}/doc ${docdir}/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
+    if {[variant_isset 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
+        }
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100222/23e35188/attachment-0001.html>


More information about the macports-changes mailing list