diff options
author | Koop Mast <kwm@FreeBSD.org> | 2016-02-14 18:57:53 +0000 |
---|---|---|
committer | Koop Mast <kwm@FreeBSD.org> | 2016-02-14 18:57:53 +0000 |
commit | b93a80c99281466281db26011356c75bd54ea36c (patch) | |
tree | cb5a8a1108829deee66dbb334ff2a733162448c6 /editors/gedit-plugins/files/patch-py-compile | |
parent | - Add LICENSE (diff) |
The FreeBSD GNOME team proudly presents GNOME 3.18 for FreeBSD.
The offical GNOME 3.18 release notes can be found at
https://help.gnome.org/misc/release-notes/3.18/
This update doesn't contain the glib/gtk c++ bindings which will
be done in a another update due to the requirement on c++11 and the
amount of fallout this probably will give.
GDM is still at version 3.16 due to some issues.
Bump mate-themes to use the gtk 3.18 version of the themes.
Thanks to Antoine Brodin for running the exp-runs.
This release was made possible by the following people:
Gustau Perez
Ting-Wei_Lan
PR: 207006
Notes
Notes:
svn path=/head/; revision=408881
Diffstat (limited to 'editors/gedit-plugins/files/patch-py-compile')
-rw-r--r-- | editors/gedit-plugins/files/patch-py-compile | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/editors/gedit-plugins/files/patch-py-compile b/editors/gedit-plugins/files/patch-py-compile new file mode 100644 index 000000000000..e59b69ff5e9c --- /dev/null +++ b/editors/gedit-plugins/files/patch-py-compile @@ -0,0 +1,64 @@ +--- py-compile.orig 2015-09-21 19:37:16.000000000 +0200 ++++ py-compile 2015-09-24 20:14:14.663916000 +0200 +@@ -3,8 +3,7 @@ + + scriptversion=2011-06-08.12; # UTC + +-# Copyright (C) 2000, 2001, 2003, 2004, 2005, 2008, 2009, 2011 Free +-# Software Foundation, Inc. ++# Copyright (C) 2000-2013 Free Software Foundation, Inc. + + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by +@@ -37,7 +36,7 @@ + usage_error () + { + echo "$me: $*" >&2 +- echo "Try \`$me --help' for more information." >&2 ++ echo "Try '$me --help' for more information." >&2 + exit 1 + } + +@@ -117,7 +116,7 @@ + fi + + $PYTHON -c " +-import sys, os, py_compile ++import sys, os, py_compile, imp + + files = '''$files''' + +@@ -130,12 +129,19 @@ + continue + sys.stdout.write(file) + sys.stdout.flush() +- py_compile.compile(filepath, filepath + 'c', path) ++ if hasattr(imp, 'get_tag'): ++ py_compile.compile(filepath, imp.cache_from_source(filepath), path) ++ else: ++ py_compile.compile(filepath, filepath + 'c', path) + sys.stdout.write('\n')" || exit $? + + # this will fail for python < 1.5, but that doesn't matter ... + $PYTHON -O -c " +-import sys, os, py_compile ++import sys, os, py_compile, imp ++ ++# pypy does not use .pyo optimization ++if hasattr(sys, 'pypy_translation_info'): ++ sys.exit(0) + + files = '''$files''' + sys.stdout.write('Byte-compiling python modules (optimized versions) ...\n') +@@ -147,7 +153,10 @@ + continue + sys.stdout.write(file) + sys.stdout.flush() +- py_compile.compile(filepath, filepath + 'o', path) ++ if hasattr(imp, 'get_tag'): ++ py_compile.compile(filepath, imp.cache_from_source(filepath, False), path) ++ else: ++ py_compile.compile(filepath, filepath + 'o', path) + sys.stdout.write('\n')" 2>/dev/null || : + + # Local Variables: |