Revision
37282
Author
jmr@macports.org
Date
2008-06-02 03:00:30 -0700 (Mon, 02 Jun 2008)

Log Message

maxima: remove unneeded setting of worksrcdir, use xinstall instead of system,
clean up whitespace I missed before.

Modified Paths

Diff

Modified: trunk/dports/math/maxima/Portfile (37281 => 37282)


--- trunk/dports/math/maxima/Portfile	2008-06-02 09:52:06 UTC (rev 37281)
+++ trunk/dports/math/maxima/Portfile	2008-06-02 10:00:30 UTC (rev 37282)
@@ -21,15 +21,15 @@
         comprehensive and powerful computer algebra systems \
         available as open source.
 
-#bugs   The graphical interfaces (xmaxima and the maxima    \
-#       session mode of TeXmacs) are still quite immature and   \
-#       prone to hang.                      \
-#                                   \
+#bugs   The graphical interfaces (xmaxima and the maxima \
+#       session mode of TeXmacs) are still quite immature and \
+#       prone to hang. \
+#       \
 #       The not all of the printable documentation can be built \
-#       from the top level makefile yet. The printable_doc  \
-#       variant builds the reference manual in dvi format and   \
-#       forces its installation into                \
-#       ${prefix}/share/maxima/<version>/doc/dvi.       \
+#       from the top level makefile yet. The printable_doc \
+#       variant builds the reference manual in dvi format and \
+#       forces its installation into \
+#       ${prefix}/share/maxima/<version>/doc/dvi.
 
 homepage        http://maxima.sourceforge.net/
 master_sites    sourceforge
@@ -40,8 +40,6 @@
                 port:recode \
                 port:gnuplot
 
-worksrcdir      ${name}-${version}
-
 configure.args  --infodir=${prefix}/share/info \
                 --mandir=${prefix}/share/man \
                 --enable-sbcl
@@ -65,7 +63,8 @@
     build.target            all pdf
 
     pre-destroot {
-        system "install -d -m 755 ${destroot}${prefix}/share/${name}/${version}/doc/pdf"
-        system "install -c -m 644 ${workpath}/${worksrcdir}/doc/info/maxima.pdf ${destroot}${prefix}/share/${name}/${version}/doc/pdf"
+        xinstall -d -m 755 ${destroot}${prefix}/share/${name}/${version}/doc/pdf
+        xinstall -m 644 ${worksrcpath}/doc/info/maxima.pdf \
+                        ${destroot}${prefix}/share/${name}/${version}/doc/pdf
     }
 }