[33993] trunk/dports/lang/icon/Portfile

ryandesign at macports.org ryandesign at macports.org
Sat Feb 9 16:08:00 PST 2008


Revision: 33993
          http://trac.macosforge.org/projects/macports/changeset/33993
Author:   ryandesign at macports.org
Date:     2008-02-09 16:07:59 -0800 (Sat, 09 Feb 2008)

Log Message:
-----------
icon: fix up the destroot phase:

 * don't need to make ${destroot}${prefix}/bin; MacPorts does it for us
 * don't use the deprecated `cd` command
 * use `ln -s ...` instead of `system "ln -s ..."` to make symlinks
 * fix the symlink pointing to the documentation, therefore bump revision
 * remove lots of now-unnecessary local variables

See #14238.

Modified Paths:
--------------
    trunk/dports/lang/icon/Portfile

Modified: trunk/dports/lang/icon/Portfile
===================================================================
--- trunk/dports/lang/icon/Portfile	2008-02-09 23:54:23 UTC (rev 33992)
+++ trunk/dports/lang/icon/Portfile	2008-02-10 00:07:59 UTC (rev 33993)
@@ -4,6 +4,7 @@
 
 name			icon
 version			9.4.3
+revision		1
 categories		lang
 maintainers		michael.grunewald at laposte.net
 description		The Icon Programming Language
@@ -28,21 +29,14 @@
 
 build.target		All
 
-destroot {
-  set icon_dir "${destroot}${prefix}/libexec/${name}"
-  set iconbin_dir "../libexec/${name}/bin"
-  set icondoc_dir "../libexec/${name}/doc"
-  set portbin_dir "${destroot}${prefix}/bin"
-  set portdoc_dir "${destroot}${prefix}/share/doc"
-  xinstall -d "${portbin_dir}"
-  xinstall -d "${portdoc_dir}"
-  cd ${worksrcpath}
-  system "make Install dest=${icon_dir}"
-  cd "${portbin_dir}"
-  system "ln -s ${iconbin_dir}/icon"
-  system "ln -s ${iconbin_dir}/icont"
-  system "ln -s ${iconbin_dir}/iconx"
-  system "ln -s ${iconbin_dir}/vib"
-  cd "${portdoc_dir}"
-  system "ln -s ${icondoc_dir} ${name}-${version}"
+destroot.target		Install
+destroot.destdir	dest=${destroot}${prefix}/libexec/${name}
+
+post-destroot {
+  foreach prog {icon icont iconx vib} {
+    ln -s ../libexec/${name}/bin/${prog} ${destroot}${prefix}/bin
+  }
+  set doc_dir ${destroot}${prefix}/share/doc
+  xinstall -d ${doc_dir}
+  ln -s ../../libexec/${name}/doc ${doc_dir}/${name}-${version}
 }

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


More information about the macports-changes mailing list