[32653] trunk/dports/science/rasmol/Portfile

ryandesign at macports.org ryandesign at macports.org
Thu Jan 10 04:46:00 PST 2008


Revision: 32653
          http://trac.macosforge.org/projects/macports/changeset/32653
Author:   ryandesign at macports.org
Date:     2008-01-10 04:45:55 -0800 (Thu, 10 Jan 2008)

Log Message:
-----------
rasmol: don't use 'cd' command anymore, and switch to xinstall where possible

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

Modified: trunk/dports/science/rasmol/Portfile
===================================================================
--- trunk/dports/science/rasmol/Portfile	2008-01-10 12:39:27 UTC (rev 32652)
+++ trunk/dports/science/rasmol/Portfile	2008-01-10 12:45:55 UTC (rev 32653)
@@ -14,17 +14,16 @@
 depends_lib         lib:libX11.6:XFree86
 patchfiles          patch-Imakefile.diff
 post-patch          { reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Imakefile }
-worksrcdir          RasMol_${version}/src
+worksrcdir          ${distname}/src
 configure.cmd       xmkmf
 configure.pre_args
 build.target        rasmol
-destroot             { cd ${workpath}/${distname}
-                     file mkdir ${destroot}${prefix}/share/man/man1
-                     system "cp doc/rasmol.1.gz ${destroot}${prefix}/share/man/man1"
-                     system "cp src/rasmol ${destroot}${prefix}/bin"
-                     file mkdir ${destroot}${prefix}/lib/rasmol
-                     system "cp doc/rasmol.hlp ${destroot}${prefix}/lib/rasmol"
-                     system "cp -r data  ${destroot}${prefix}/lib/rasmol"
+destroot             { xinstall -d ${destroot}${prefix}/share/man/man1
+                     xinstall -W ${workpath}/${distname} doc/rasmol.1.gz ${destroot}${prefix}/share/man/man1
+                     xinstall -W ${workpath}/${distname} src/rasmol ${destroot}${prefix}/bin
+                     xinstall -d ${destroot}${prefix}/lib/rasmol
+                     xinstall -W ${workpath}/${distname} doc/rasmol.hlp ${destroot}${prefix}/lib/rasmol
+                     file copy ${workpath}/${distname}/data ${destroot}${prefix}/lib/rasmol
  }
  
 platform darwin 6 { depends_lib-append lib:libdl:dlcompat }

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


More information about the macports-changes mailing list