What is currently
darwinbuild in Macports never existed for ppc, and apparently never has been built, forget tested, for ppc by its upstream either. This is because it was redesigned with 10.6 in mind, and 10.6 ppc was not accessible or considered.
There is
darwinbuild-legacy which should have worked on 10.5 ppc at some point, of course. But it is useless for us even if it was working now, since it does not build anything beyond 10.5. Last time I tried it did not even build.
Anything that can be fixed and built outside of MacPorts can be done inside MacPorts as well. The only question is what is easier and whether having something in MacPorts brings extra benefit or not.
In a case of DarwinBuild, I think, there is no extra benefit, since it is meant to build system components only, and MacPorts does not need such a tool and normally is not used to build system components (though it
is possible to use MacPorts for that aim).
Whether it is easier to fix it via MacPorts or not, I have no idea at the moment.
Ok, to make it sound less controversial, I can say development
aside of fixing the OS itself.
However, using G5 does not exclude G4. To the contrary, on G5 you can do much more meaningful work for usage on G4 than on G4 natively. And we do not need to consider some obscure MacPorts stuff or even MacPorts at all.
A build of gcc takes around 3–4 hours on G5. With modula and rust it will be somewhat longer. With tests it will be considerably longer. On G4 it will take, like, a week?
This is still doable, but nobody gonna actually do it on a regular basis. No G5 = no compilers development for G4.