On Friday, at 16:26, Julio Merino wrote:
| Good luck maintaining obsolete sources. Or good luck rewriting this in
| C, but you'll soon realize that it's not as trivial as it seems.
The trivial version ... is trivial (i.e. the version merely extracting key:
value pairs and doing variable expansion). It can be written in about 15 lines
of 'awk' (bsd license excepted ;)
The complete version (handling recursive Require: and filtering duplicate
c/ldflags) definitely requires more work, but it is also definititely more
easily written in the "good scripting language" of your choice than in C (not
even talking about using glib just for that...). Of course you'd have to
implement all pkg-config bugs to have a really compatible version (Marc Espie
will probably confirm ;)