head 1.2; access; symbols pkgsrc-2020Q1:1.1.0.8 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.10 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.6 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.4 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.2 pkgsrc-2019Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2020.04.17.13.31.32; author plunky; state dead; branches; next 1.1; commitid PzT6fR37730j2K4C; 1.1 date 2019.01.02.17.23.04; author tnn; state Exp; branches; next ; commitid ySW4mY8GfEMEse6B; desc @@ 1.2 log @Use GNU Autoconf to configure this, there are some problems with the scons source files and it does not create the pkgconfig files correctly @ text @$NetBSD: patch-SConstruct,v 1.1 2019/01/02 17:23:04 tnn Exp $ python 3.x compatibility --- SConstruct.orig 2018-01-01 20:22:53.000000000 +0000 +++ SConstruct @@@@ -23,7 +23,7 @@@@ opts.Update(env) env.Alias('install', '$prefix') set_dir_postaction = {} -def install_perms(env, target, sources, perms=0644, dirperms=0755): +def install_perms(env, target, sources, perms=0o644, dirperms=0o755): """As a normal env.Install, but with Chmod postactions. The `target` parameter must be a string which starts with ``$prefix``. @@@@ -52,14 +52,14 @@@@ def install_perms(env, target, sources, d_prev = None while d != d_prev and d != '$prefix': d_prev = d - if not set_dir_postaction.has_key(d): + if not d in set_dir_postaction: env.AddPostAction(file_targ, Chmod(d, dirperms)) set_dir_postaction[d] = True d = os.path.dirname(d) return install_targs -def install_tree(env, dest, path, perms=0644, dirperms=0755): +def install_tree(env, dest, path, perms=0o644, dirperms=0o755): assert os.path.isdir(path) target_root = os.path.join(dest, os.path.basename(path)) for dirpath, dirnames, filenames in os.walk(path): @ 1.1 log @mypaint-brushes: catch up with scons update; support building with python 3 @ text @d1 1 a1 1 $NetBSD$ @