Creating $prefix/bin/foo and Foo.app at the same time
mojca at macports.org
Tue Jul 16 16:22:47 PDT 2013
On Tue, Jul 16, 2013 at 11:11 PM, Bradley Giesbrecht wrote:
> On Jul 16, 2013, at 11:31 AM, Jeremy Lavergne wrote:
>>> So (for) now my only question remains: how can I play with this
>>> without the need to recompile the whole application each time when I
>>> make a tiny change in the Portfile?
>> If you're changing what gets installed then it should be given a revision bump; if not, then don't change the version or revision and it will not be rebuilt.
>> If you're referring to while you're developing the Portfile, MacPorts has a switch to override the default "clean on Portfile change":
>> -o honor state files even if the Portfile has been modified since
>> (called -o because it used to mean "older")
>> Note that this Portfile change detection includes a hash of the Portfile (you can generate the hash using `openssl dgst -sha256 Portfile`), not just the timestamp.
> If you run "port install" then port will remove worksrcpath after install; and you can change this behavior with:
> -k keep mode (don't autoclean after install)
> With -k you can uninstall, rm destroot, edit statefile removing destroot phase, edit Portfile and install the port again.
> $ sudo port -vok install gate
Perfect, thank you everyone! (I now only need to figure out how to
edit the statefile / where to find that file.)
After a long fight with "You can't open the application Gate.app
because PowerPC applications are no longer supported." due to
forgotten "#!/bin/bash" and quite a lot of cheating from
http://jerome.suhard.fr/gate/#gate (I had no idea that I needed to
catch "if [[ $1 == -psn_* ]]; then" to remove the first argument) I
finally got it working flawlessly.
This app PortGroup was a lifesaver.
The bundle created by Jérôme Suhard
(http://jerome.suhard.fr/gate/#Info.plist) also contains
CFBundleDocumentTypes to register *.mac files with the program. I'm
not sure if this is really needed or not, but I'm still curious
whether I could add this in some easy way with the app bundle.
More information about the macports-dev