+++ /dev/null
---- a/langkit/compile_context.py 2017-12-13 22:12:38.689143125 +0100
-+++ b/langkit/compile_context.py 2017-12-13 22:13:02.446737994 +0100
-@@ -1171,8 +1171,7 @@
- # the Quex specification changed from last build.
- if generate_lexer and self.cache.is_stale('quex_specification',
- quex_spec):
-- quex_py_file = path.join(os.environ["QUEX_PATH"], "quex-exe.py")
-- subprocess.check_call([sys.executable, quex_py_file, "-i",
-+ subprocess.check_call(["quex", "-i",
- quex_file,
- "-o", "quex_lexer",
- "--buffer-element-size", "4",
---- a/langkit/templates/pkg_analysis_body_ada.mako 2017-12-26 20:47:28.461617512 +0100
-+++ b/langkit/templates/pkg_analysis_body_ada.mako 2017-12-26 20:47:58.912060490 +0100
-@@ -2196,7 +2196,7 @@
- -- printing them.
-
- function Hash (S : Lexical_Env) return Hash_Type is
-- (Hash_Type (To_Integer (S.all'Address)));
-+ (Hash_Type'Mod (To_Integer (S.all'Address)));
-
- package Address_To_Id_Maps is new Ada.Containers.Hashed_Maps
- (Lexical_Env, Integer, Hash, "=");
---- a/testsuite/testsuite_support/__init__.py 2018-05-02 21:40:04.977442020 +0200
-+++ b/testsuite/testsuite_support/__init__.py 2018-05-02 21:40:45.422759387 +0200
-@@ -68,6 +68,8 @@
- # to build it in parallel.
- if not self.global_env['options'].disable_tear_up_builds:
-- p = Run(['gprbuild', '-p', '-f', '-P',
-+ p = Run(['gprbuild', '-p', '-f', '-XLIBRARY_TYPE=relocatable',
-+ '-XGPR_BUILD=relocatable',
-+ '-XXMLADA_BUILD=relocatable', '-P',
- os.path.join(self.root_dir, '..', 'langkit', 'support',
- 'langkit_support.gpr')], output=PIPE)
- report(p, "Langkit support")
---- a/testsuite/testsuite_support/langkit_support_driver.py 2018-05-03 08:01:20.019944992 +0200
-+++ b/testsuite/testsuite_support/langkit_support_driver.py 2018-05-03 08:02:50.146430288 +0200
-@@ -36,5 +36,8 @@
- ))
-
- self.run_and_check(['gprbuild', '-p', '-P', 'p.gpr', '-gnata',
-+ '-XLIBRARY_TYPE=relocatable',
-+ '-XGPR_BUILD=relocatable',
-+ '-XXMLADA_BUILD=relocatable',
- '-cargs', '-O0', '-g'])
- self.run_and_check(['./{}'.format(source[:-4])])
-+++ a/testsuite/testsuite_support/adalog_driver.py 2018-05-03 08:14:30.998698722 +0200
---- b/testsuite/testsuite_support/adalog_driver.py 2018-05-03 08:16:48.275417176 +0200
-@@ -41,6 +41,9 @@
- )
- ))
-
-- self.run_and_check(['gprbuild', '-p', '-P', 'p.gpr', '-cargs', '-O0',
-+ self.run_and_check(['gprbuild', '-p', '-XLIBRARY_TYPE=relocatable',
-+ '-XGPR_BUILD=relocatable',
-+ '-XXMLADA_BUILD=relocatable',
-+ '-P', 'p.gpr', '-cargs', '-O0',
- '-g'])
- self.run_and_check(['./{}'.format(source[:-4])])
---- a/langkit/libmanage.py 2018-11-14 22:02:20.283672719 +0100
-+++ b/langkit/libmanage.py 2018-11-14 22:02:39.970337338 +0100
-@@ -634,6 +634,7 @@
-
- result = ['-XBUILD_MODE={}'.format(build_mode),
- '-XLIBRARY_TYPE={}'.format(library_type),
-+ '-XGPR_BUILD={}'.format(library_type),
- '-XXMLADA_BUILD={}'.format(library_type)]
-
- enable_warnings = getattr(args, 'enable_warnings', False)
+++ /dev/null
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python2_7 )
-
-inherit python-single-r1
-
-MYPN=${PN}-gps-src
-
-DESCRIPTION="A Python framework to generate language parsers"
-HOMEPAGE="https://www.adacore.com/community"
-SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed044
- -> ${MYPN}-${PV}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="amd64 x86"
-IUSE=""
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
-
-DEPEND="${PYTHON_DEPS}
- dev-ada/gnatcoll[iconv,shared]
- dev-python/mako
- dev-python/pyyaml
- dev-python/enum34
- dev-python/funcy
- dev-python/docutils
- dev-python/quex"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}"/${MYPN}
-
-PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
-
-src_test() {
- testsuite/testsuite.py | grep FAILED && die "Test failed"
-}
-
-src_install() {
- default
- python_domodule langkit
- python_doscript scripts/create-project.py
-}