diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-python/quex/files/quex-0.65.4-gentoo.patch | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-python/quex/files/quex-0.65.4-gentoo.patch')
-rw-r--r-- | dev-python/quex/files/quex-0.65.4-gentoo.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dev-python/quex/files/quex-0.65.4-gentoo.patch b/dev-python/quex/files/quex-0.65.4-gentoo.patch new file mode 100644 index 000000000000..cbe161a18e11 --- /dev/null +++ b/dev-python/quex/files/quex-0.65.4-gentoo.patch @@ -0,0 +1,43 @@ +--- quex-0.65.4/quex-exe.py.old 2017-12-13 21:42:48.633280478 +0100 ++++ quex-0.65.4/quex-exe.py 2017-12-13 21:43:02.066040530 +0100 +@@ -40,11 +40,6 @@ + print("error: Please, use Python versions 2.x.") + sys.exit(-1) + +-if os.environ.has_key("QUEX_PATH") == False: +- print("Environment variable QUEX_PATH has not been defined.") +-else: +- sys.path.insert(0, os.environ["QUEX_PATH"]) +- + try: + exception_checker.do_on_import(sys.argv) + import quex.DEFINITIONS +--- quex-0.65.4/quex/DEFINITIONS.py.old 2017-12-13 21:48:52.887765325 +0100 ++++ quex-0.65.4/quex/DEFINITIONS.py 2017-12-13 21:52:29.805877359 +0100 +@@ -23,7 +23,7 @@ + QUEX_VERSION = '0.65.4' + + try: +- QUEX_INSTALLATION_DIR = os.environ["QUEX_PATH"] ++ QUEX_INSTALLATION_DIR = "@PYTHON_SITEDIR@" + # Note, that windows can also deal with backslashes. + QUEX_INSTALLATION_DIR = QUEX_INSTALLATION_DIR.replace("\\", "/") + except: +@@ -49,15 +49,14 @@ + sys.exit(-1) # sys.exit(-1) is acceptable + + QUEX_PATH = QUEX_INSTALLATION_DIR +-QUEX_CODEC_DB_PATH = QUEX_PATH + "/quex/engine/codec_db/database" ++QUEX_CODEC_DB_PATH = "/usr/share/quex/database" + +-sys.path.insert(0, QUEX_INSTALLATION_DIR) + + def check(): + global QUEX_INSTALLATION_DIR + + # -- Try to acces the file 'quex-exe.py' in order to verify +- if os.access(QUEX_INSTALLATION_DIR + "/quex-exe.py", os.F_OK) == False: ++ if False: + print "error: Environment variable 'QUEX_PATH' does not point to" + print "error: a valid installation directory of quex." + print "error: current setting of 'QUEX_PATH':" |