Creating $prefix/bin/foo and Foo.app at the same time

Bradley Giesbrecht pixilla at macports.org
Tue Jul 16 14:11:46 PDT 2013


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


Regards,
Bradley Giesbrecht (pixilla)



More information about the macports-dev mailing list