On Sep 15, 2008, at 00:58, [EMAIL PROTECTED] wrote: > Revision: 39976 > http://trac.macports.org/changeset/39976 > Author: [EMAIL PROTECTED] > Date: 2008-09-14 22:58:14 -0700 (Sun, 14 Sep 2008) > Log Message: > -----------
> Fixed problem where a "port build" and then "port install" wouldn't > work by setting build variables at the top level. > +set slime_emacs_binary [ > + if { [regexp carbon [join [registry_installed emacs]]] || > [ variant_isset app ] } { > + list "/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs" > + } else { > + list "${prefix}/bin/emacs" > + } > +] > + > +set slime_site_lisp_dir [ > + if {[ variant_isset app ]} { > + list "${destroot}/Applications/MacPorts/Emacs.app/ > Contents/Resources/site-lisp/slime" > + } else { > + list "${destroot}${prefix}/share/emacs/site-lisp/slime" > + } > +] Ah, but you can't do it this way. This relies on emacs or emacs-app being installed. But it might not yet be installed at the time the user runs "port info" or "port variants" or "port fetch" or "port checksum" or "port deps" or "portindex" which will cause an error, like it's doing for the PortIndexRegen.sh script now: http://lists.macosforge.org/pipermail/macports-changes/2008-September/ 020930.html _______________________________________________ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev