[58354] trunk/dports/science/molden/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Sep 26 21:06:22 PDT 2009


Revision: 58354
          http://trac.macports.org/changeset/58354
Author:   ryandesign at macports.org
Date:     2009-09-26 21:06:18 -0700 (Sat, 26 Sep 2009)
Log Message:
-----------
molden: simplify destroot a bit

Modified Paths:
--------------
    trunk/dports/science/molden/Portfile

Modified: trunk/dports/science/molden/Portfile
===================================================================
--- trunk/dports/science/molden/Portfile	2009-09-27 03:54:00 UTC (rev 58353)
+++ trunk/dports/science/molden/Portfile	2009-09-27 04:06:18 UTC (rev 58354)
@@ -41,15 +41,16 @@
 use_configure       no
 build.target        molden
 build.cmd           gmake
-destroot            {
-    xinstall -W ${worksrcpath} molden   ${destroot}${prefix}/bin
-    xinstall -m 755 -d ${destroot}${prefix}/share/doc/molden
-    xinstall -W ${worksrcpath} HISTORY  ${destroot}${prefix}/share/doc/molden/
-    xinstall -W ${worksrcpath} README   ${destroot}${prefix}/share/doc/molden/
-    xinstall -W ${worksrcpath} REGISTER ${destroot}${prefix}/share/doc/molden/
-    if { [variant_isset opengl] } {
-        xinstall -W ${worksrcpath} moldenogl ${destroot}${prefix}/bin
-    }
+
+destroot {
+    xinstall -W ${worksrcpath} molden ${destroot}${prefix}/bin
+    set docdir ${destroot}${prefix}/share/doc/molden
+    xinstall -m 755 -d ${docdir}
+    xinstall -W ${worksrcpath} \
+        HISTORY \
+        README \
+        REGISTER \
+        ${docdir}
 }
 
 post-install        { ui_msg "**************************************************"
@@ -63,6 +64,9 @@
 variant opengl description "Install moldenogl OpenGL helper program" {
     depends_lib-append      port:mesa
     build.target-append     moldenogl
+    post-destroot {
+        xinstall -W ${worksrcpath} moldenogl ${destroot}${prefix}/bin
+    }
 }
 
 set distfile_date   20081219110900
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090926/a6ad74c1/attachment-0001.html>


More information about the macports-changes mailing list