[107430] trunk/dports/science/openscad/Portfile

macsforever2000 at macports.org macsforever2000 at macports.org
Fri Jun 28 15:38:07 PDT 2013


Revision: 107430
          https://trac.macports.org/changeset/107430
Author:   macsforever2000 at macports.org
Date:     2013-06-28 15:38:07 -0700 (Fri, 28 Jun 2013)
Log Message:
-----------
openscad: Remove hard-coded /opt/local calls. (#39560)

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

Modified: trunk/dports/science/openscad/Portfile
===================================================================
--- trunk/dports/science/openscad/Portfile	2013-06-28 19:23:03 UTC (rev 107429)
+++ trunk/dports/science/openscad/Portfile	2013-06-28 22:38:07 UTC (rev 107430)
@@ -62,30 +62,30 @@
     # The install location is wrong so we have to move the files to the expected places
 
     # Application
-    move ${destroot}/opt/local/bin/OpenSCAD.app ${destroot}${applications_dir}
+    move ${destroot}${prefix}/bin/OpenSCAD.app ${destroot}${applications_dir}
 
     # Examples
     file mkdir ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/examples
-    eval xinstall -m 644 [glob ${destroot}/opt/local/share/openscad/examples/*] ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/examples
-    eval file delete [glob ${destroot}/opt/local/share/openscad/examples/*]
+    eval xinstall -m 644 [glob ${destroot}${prefix}/share/openscad/examples/*] ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/examples
+    eval file delete [glob ${destroot}${prefix}/share/openscad/examples/*]
 
     # Library bitmaps
     file mkdir ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/libraries/MCAD/bitmap
-    eval xinstall -m 644 [glob ${destroot}/opt/local/share/openscad/libraries/MCAD/bitmap/*] ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/libraries/MCAD/bitmap
-    eval file delete [glob ${destroot}/opt/local/share/openscad/libraries/MCAD/bitmap/*]
-    file delete ${destroot}/opt/local/share/openscad/libraries/MCAD/bitmap
+    eval xinstall -m 644 [glob ${destroot}${prefix}/share/openscad/libraries/MCAD/bitmap/*] ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/libraries/MCAD/bitmap
+    eval file delete [glob ${destroot}${prefix}/share/openscad/libraries/MCAD/bitmap/*]
+    file delete ${destroot}${prefix}/share/openscad/libraries/MCAD/bitmap
 
     # Empty directories
-    file delete ${destroot}/opt/local/share/openscad/libraries/MCAD/SolidPython
-    file delete ${destroot}/opt/local/share/openscad/libraries/MCAD/ThingDoc
+    file delete ${destroot}${prefix}/share/openscad/libraries/MCAD/SolidPython
+    file delete ${destroot}${prefix}/share/openscad/libraries/MCAD/ThingDoc
 
     # Libraries
-    eval xinstall -m 644 [glob ${destroot}/opt/local/share/openscad/libraries/MCAD/*] ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/libraries/MCAD
-    eval file delete [glob ${destroot}/opt/local/share/openscad/libraries/MCAD/*]
+    eval xinstall -m 644 [glob ${destroot}${prefix}/share/openscad/libraries/MCAD/*] ${destroot}${applications_dir}/OpenSCAD.app/Contents/Resources/libraries/MCAD
+    eval file delete [glob ${destroot}${prefix}/share/openscad/libraries/MCAD/*]
 
     # Delete un-needed files
-    file delete ${destroot}/opt/local/share/applications/openscad.desktop
-    file delete ${destroot}/opt/local/share/pixmaps/openscad.png
+    file delete ${destroot}${prefix}/share/applications/openscad.desktop
+    file delete ${destroot}${prefix}/share/pixmaps/openscad.png
 }
 
 livecheck.type      regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130628/db2848d7/attachment.html>


More information about the macports-changes mailing list