Am 15.08.11 21:49, schrieb Titus von Boxberg:
Am 15.08.2011 um 21:12 schrieb Christoph Iserlohn:
Am 15.08.11 19:50, schrieb Titus von Boxberg:
Hi,

I'm trying to write a Portfile for a library that is to be fetched with git.

The lib has to be configured and built within a subdir  named "src" (below the 
lib's root dir).

Setting worksrcdir to ${distname}/src causes git to clone the repo into that 
directory
instead of ${workpath}/${distname}.

How am I supposed to tell the build phases the correct working directory?

And, just for curiosity, is exporting the repo to ${workpath}/${worksrcdir} 
what was intended?
As far as I can see this is done by git and hg only (?).


This bug is handled in https://trac.macports.org/ticket/29093 which has 
proposed fix,
but unfortunately it is not commited yet.

As a (quite ugly) workaround you can set ${worksrcdir} in pre-configure, e.g:
Thanks for the hint!

Is your fix still under development?
The ticket reads like it is ready to be committed?
I think it is. Maybe Ryan could provide some feedback (as he suggested the rewrite using 'command_exec')?

But even if this patch will be comitted it won't help you in the short term. It will be earliest available in the next MacPorts release.

--
Christoph
_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to