xcodebuild SKIP_INSTALL

Ryan Schmidt ryandesign at macports.org
Sun Jun 12 21:50:16 PDT 2016


On Jun 12, 2016, at 9:34 AM, Alexey Kuznetsov wrote:
> 
> I'm updating MenuMeters port file to the latest OS X El Capitan os version. And it face few issues. I solve them, but not sure if it is best practice.
> 
> First) of all 'xcode.destroot.settings SKIP_INSTALL=YES' seems ignored by xcodebuild and xcode trying to install .prefsPane into /opt/local/.../home/Library with (Operation not permitted).
> 
> I solve this, but patching project file:
> 
> https://github.com/axet/macports_custom/blob/master/aqua/MenuMeters/files/skip_install.patch
> 
> Seems like hacky solution, please correct me if I'm wrong.
> 
> Second) final step which includes copying MenuMeters.prefPane into /Library/PreferencePanes copy symbolic link of MenuMeters.prefPane instead content of 'MenuMeters.prefPane'.
> 
> I solve this by reading value of symbolic link and copying it's original content.
> 
> https://github.com/axet/macports_custom/blob/master/aqua/MenuMeters/Portfile
> 
> Correct me here as well.

You should use the github portgroup instead of reimplementing its functionality in your portfile.

Yes, I've had to edit Xcode project files to remove settings that don't make sense for MacPorts. I don't know if there's a better way.

I don't know why it would create a symlink instead of copying the actual file. I haven't looked at this particular project's Xcode project file.




More information about the macports-dev mailing list