Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=7880c657f28099d17fb73d7ca84812d7ab495907
commit 7880c657f28099d17fb73d7ca84812d7ab495907 Author: James Buren <[email protected]> Date: Wed Oct 8 15:43:48 2014 -0500 scons: add initial skeleton for attempt at porting to scons diff --git a/.gitignore b/.gitignore index 99d1eb2..ecca14e 100644 --- a/.gitignore +++ b/.gitignore @@ -19,5 +19,5 @@ root *~ *.txt.user* LINGUAS - - +.sconsign.dblite +config.log diff --git a/SConstruct b/SConstruct new file mode 100644 index 0000000..eb3a0a0 --- /dev/null +++ b/SConstruct @@ -0,0 +1,27 @@ +#!/usr/bin/python + +env = Environment() + +def CheckPKGConfig(ctx, version): + ctx.Message('Checking for pkg-config... ') + rv = ctx.TryAction('pkg-config --atleast-pkgconfig-version=\'%s\'' % version)[0] + ctx.Result(rv) + return rv + +def CheckPKG(ctx, name): + ctx.Message('Checking for %s... ' % name) + rv = ctx.TryAction('pkg-config --exists \'%s\'' % name)[0] + ctx.Result(ret) + return ret + +cfg = Configure( + env, + { + 'CheckPKGConfig' : CheckPKGConfig, + 'CheckPKG' : CheckPKG, + } +) + +if not cfg.CheckPKGConfig('0.15.0'): + print('pkg-config >= 0.15.0 not found.') + Exit(1) _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
