[33802] trunk/dports/math/gsl/Portfile

jochen at macports.org jochen at macports.org
Tue Feb 5 07:24:51 PST 2008


Revision: 33802
          http://trac.macosforge.org/projects/macports/changeset/33802
Author:   jochen at macports.org
Date:     2008-02-05 07:24:39 -0800 (Tue, 05 Feb 2008)

Log Message:
-----------
split darwin 6 and 7 up into separate platform specifications
remove use of cd command

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

Modified: trunk/dports/math/gsl/Portfile
===================================================================
--- trunk/dports/math/gsl/Portfile	2008-02-05 15:01:41 UTC (rev 33801)
+++ trunk/dports/math/gsl/Portfile	2008-02-05 15:24:39 UTC (rev 33802)
@@ -1,9 +1,10 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
 # $Id$
 
 PortSystem          1.0
 name                gsl
 version             1.10
+revision            1
 categories          math science
 maintainers         openmaintainer jochen
 description         A numerical library for C and C++ programmers
@@ -23,9 +24,12 @@
 platforms           darwin
 # Lower optimization level (-O1) is required to avoid code generation
 # bugs in Apple's gcc 3.3 and earlier.
-platform darwin 6 7 {
+platform darwin 6 {
     configure.cflags-append "-O1"
 }
+platform darwin 7 {
+    configure.cflags-append "-O1"
+}
 
 configure.args      --mandir=${prefix}/share/man --infodir=${prefix}/share/info
 depends_build       port:texinfo
@@ -37,25 +41,20 @@
 }
 
 variant doc description "Install PDF and HTML documentation" {
-    depends_build   port:ghostscript port:texinfo bin:latex:teTeX
+    depends_build   port:ghostscript bin:latex:texlive
     post-destroot   {
-        cd ${worksrcpath}
-        system "make dvi"
-        cd ${worksrcpath}/doc
-        system "dvipdf gsl-ref.dvi gsl-ref.pdf"
+        system "cd ${worksrcpath} && make dvi"
+        system "cd ${worksrcpath}/doc && dvipdf gsl-ref.dvi gsl-ref.pdf"
         xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
         xinstall -c -m 644 ${worksrcpath}/doc/gsl-ref.pdf ${destroot}${prefix}/share/doc/${name}
-        cd ${worksrcpath}/doc
-        system "latex fftalgorithms"
-        system "bibtex fftalgorithms"
-        system "latex fftalgorithms"
-        system "latex fftalgorithms"
-        system "dvipdf fftalgorithms.dvi fftalgorithms.pdf"
+        system "cd ${worksrcpath}/doc && latex fftalgorithms"
+        system "cd ${worksrcpath}/doc && bibtex fftalgorithms"
+        system "cd ${worksrcpath}/doc && latex fftalgorithms"
+        system "cd ${worksrcpath}/doc && latex fftalgorithms"
+        system "cd ${worksrcpath}/doc && dvipdf fftalgorithms.dvi fftalgorithms.pdf"
         xinstall -c -m 644 ${worksrcpath}/doc/fftalgorithms.pdf ${destroot}${prefix}/share/doc/${name}
-        cd ${worksrcpath}
-        system "make html"
+        system "cd ${worksrcpath} && make html"
         xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/html
-        eval xinstall -c -m 644 [glob ${worksrcpath}/doc/gsl-ref.html/*] \
-            ${destroot}${prefix}/share/doc/${name}/html
+        eval xinstall -c -m 644 [glob ${worksrcpath}/doc/gsl-ref.html/*] ${destroot}${prefix}/share/doc/${name}/html
     }
 }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080205/cb217f49/attachment.html


More information about the macports-changes mailing list