<div dir="ltr"><div dir="ltr"><div>On Wed, 12 Oct 2022 at 17:29, Joshua Root <<a href="mailto:jmr@macports.org">jmr@macports.org</a>> wrote:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Lukas Oberhuber wrote:<br>
<br>> I've tried many variants of<br>
><br>
> depends_lib-append port:pygtk-2.0.pc:py27-pygtk<br>
> with and without the .pc file and with and without directories before them.<br>
<br>
That should be just:<br>
<br>
depends_lib-append port:py27-pygtk<br>
<br>
But as long as the correct port is already installed, that won't change the behaviour of pkg-config.<br></blockquote><div>I've tried that version as well. No dice </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> But every time on build I get<br>
><br>
> checking for pygtk-codegen-2.0... no<br>
> checking for pygtk defs... Package pygtk-2.0 was not found in the<br>
> pkg-config search path.<br>
> Perhaps you should add the directory containing `pygtk-2.0.pc'<br>
> to the PKG_CONFIG_PATH environment variable<br>
> No package 'pygtk-2.0' found<br>
<br>
Checking assumptions, try this outside of the port:<br>
<br>
PKG_CONFIG_PATH=/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/pkgconfig pkg-config --exists --print-errors pygtk-2.0<br></blockquote><div>This returned nothing but succeeded. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
In general when asking for help debugging a port, it's very helpful to share the Portfile and logs in a gist or something.<br></blockquote><div>Sorry about that.</div><div><br></div><div>Here is the Portfile: <a href="https://gitlab.gnome.org/Infrastructure/gimp-macos-build/-/blob/dee2dcff05491fd5cd455fe1ab4164633720339b/ports/graphics/gimp2/Portfile">https://gitlab.gnome.org/Infrastructure/gimp-macos-build/-/blob/dee2dcff05491fd5cd455fe1ab4164633720339b/ports/graphics/gimp2/Portfile</a></div><div><br></div><div>Here is a gist of the logs: <a href="https://gist.github.com/lukaso/806cfb5fd90d147b6328a7aa0112a490">https://gist.github.com/lukaso/806cfb5fd90d147b6328a7aa0112a490</a></div><div><br></div><div>Hopefully you have some ideas! Thanks.</div></div></div>