[MacPorts] #53775: emacs-mac-app @6.1_2: Cannot be installed into /opt/local/Applications/Emacs.app

MacPorts noreply at macports.org
Sun Mar 12 11:54:05 UTC 2017


#53775: emacs-mac-app @6.1_2: Cannot be installed into
/opt/local/Applications/Emacs.app
-----------------------+---------------------------
 Reporter:  crapshoot  |      Owner:
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:
 Keywords:  haspatch   |       Port:  emacs-mac-app
-----------------------+---------------------------
 emacs-mac-app fails to install Emacs when the application directory is a
 subdirectory of of the prefix directory, such as /opt/local/Applications.

 The post-destroot block in the Portfile copies the necessary files from
 {{{${destroot}${prefix} }}} to {{{${destroot}${applications_dir} }}}.  On
 line 65, the Portfile uses {{{delete ${destroot}${prefix} }}} to remove
 the remains of the {{{${destroot}${prefix} }}} directory tree, but that
 also removes {{{${destroot}${application_dir} }}} when it is a
 subdirectory of {{{${destroot}${prefix} }}}.

 The attached file is how I modified the Portfile to check for that
 condition and to remove everything except {{{${destroot}${application_dir}
 }}} from {{{${destroot}${prefix} }}}.  You may apply this as a patch or
 devise a different own solution.

--
Ticket URL: <https://trac.macports.org/ticket/53775>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list