diff options
Diffstat (limited to 'sci-electronics/gerbmerge/files/gerbmerge-1.6-no-fixperms.patch')
-rw-r--r-- | sci-electronics/gerbmerge/files/gerbmerge-1.6-no-fixperms.patch | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sci-electronics/gerbmerge/files/gerbmerge-1.6-no-fixperms.patch b/sci-electronics/gerbmerge/files/gerbmerge-1.6-no-fixperms.patch new file mode 100644 index 000000000..84b19dc61 --- /dev/null +++ b/sci-electronics/gerbmerge/files/gerbmerge-1.6-no-fixperms.patch @@ -0,0 +1,51 @@ +diff --git a/setup.py b/setup.py +--- a/setup.py ++++ b/setup.py +@@ -49,6 +49,7 @@ + python %s/site-packages/gerbmerge/gerbmerge.py $* + """ % DestLib) + fid.close() ++ os.chmod('misc/gerbmerge', 0755) + + dist=setup (name = "gerbmerge", + license = "GPL", +@@ -80,39 +81,11 @@ + (BinDir, BinFiles) ] + ) + +-do_fix_perms = 0 + if sys.platform != "win32": + for cmd in dist.commands: + if cmd[:7]=='install': +- do_fix_perms = 1 + break + +-if do_fix_perms: +- # Ensure package files and misc/help files are world readable-searchable. +- # Shouldn't Distutils do this for us? +- print 'Setting permissions on installed files...', +- try: +- def fixperms(arg, dirname, names): +- os.chmod(dirname, 0755) +- for name in names: +- fullname = os.path.join(dirname, name) +- if os.access(fullname, os.X_OK): +- os.chmod(fullname, 0755) +- else: +- os.chmod(fullname, 0644) +- +- os.path.walk(DestDir, fixperms, 1) +- os.path.walk(os.path.join(DestLib, 'site-packages/gerbmerge'), fixperms, 1) +- +- os.chmod(os.path.join(BinDir, 'gerbmerge'), 0755) +- print 'done' +- except: +- print 'FAILED' +- print +- print '*** Please verify that the installed files have correct permissions. On' +- print "*** systems without permission flags, you don't need to" +- print '*** worry about it.' +- + if cmd[:7]=='install': + print + print '******** Installation Complete ******** ' |