[79839] trunk/dports/science/gplcver/Portfile

and.damore at macports.org and.damore at macports.org
Mon Jun 27 15:44:08 PDT 2011


Revision: 79839
          http://trac.macports.org/changeset/79839
Author:   and.damore at macports.org
Date:     2011-06-27 15:44:06 -0700 (Mon, 27 Jun 2011)
Log Message:
-----------
port gplcver, edited post-destroot phase, moved examples to ${prefix}/share/examples

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

Modified: trunk/dports/science/gplcver/Portfile
===================================================================
--- trunk/dports/science/gplcver/Portfile	2011-06-27 22:26:37 UTC (rev 79838)
+++ trunk/dports/science/gplcver/Portfile	2011-06-27 22:44:06 UTC (rev 79839)
@@ -45,19 +45,15 @@
 
     # create directory for everything else
     
-    set docdir "${destroot}${prefix}/share/doc/${name}"
+    set docdir "${destroot}${prefix}/share/doc/"
     xinstall -m 755 -d ${docdir}
-
-    # copy doc files
-
-    file copy ${worksrcpath}/COPYING ${docdir}
-    file copy ${worksrcpath}/Changelog ${docdir}
-    file copy ${worksrcpath}/INSTALL ${docdir}
-    file copy ${worksrcpath}/LICENSE ${docdir}
-    file copy ${worksrcpath}/NEW.CVER.2001.RELEASE.NOTES ${docdir}
-    file copy ${worksrcpath}/OUR_PHILOSOPHY ${docdir}
-    file copy ${worksrcpath}/README ${docdir}
     file copy ${worksrcpath}/doc ${docdir}
+    file rename ${docdir}/doc ${docdir}${name}
+    set docdir "${docdir}${name}"
+    xinstall -m 644 -W ${worksrcpath} \
+        COPYING Changelog LICENSE NEW.CVER.2001.RELEASE.NOTES OUR_PHILOSOPHY README \
+        ${docdir}
+    file copy ${worksrcpath}/doc/README ${docdir}/README_doc
 
     # install the systasks man page
     
@@ -66,15 +62,15 @@
     
     # create directory for everything else
     
-    set instdir "${destroot}${prefix}/share/${name}"
-    xinstall -m 755 -d ${instdir}
+    set exampledir "${destroot}${prefix}/share/examples/${name}"
+    xinstall -m 755 -d ${exampledir}
 
     # copy files
 
-    file copy ${worksrcpath}/pli_incs ${instdir}
-    file copy ${worksrcpath}/pli_src ${instdir}
-    file copy ${worksrcpath}/tests_and_examples ${instdir}
-    file copy ${worksrcpath}/ver_src ${instdir}
+    file copy ${worksrcpath}/pli_incs ${exampledir}
+    file copy ${worksrcpath}/pli_src ${exampledir}
+    file copy ${worksrcpath}/tests_and_examples ${exampledir}
+    file copy ${worksrcpath}/ver_src ${exampledir}
     
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110627/ad553940/attachment.html>


More information about the macports-changes mailing list