diff options
Diffstat (limited to 'dev-ada')
-rw-r--r-- | dev-ada/Manifest.gz | bin | 3745 -> 3741 bytes | |||
-rw-r--r-- | dev-ada/langkit/Manifest | 3 | ||||
-rw-r--r-- | dev-ada/langkit/files/langkit-23.0.0-gentoo.patch | 10 | ||||
-rw-r--r-- | dev-ada/langkit/langkit-23.0.0.ebuild | 104 |
4 files changed, 117 insertions, 0 deletions
diff --git a/dev-ada/Manifest.gz b/dev-ada/Manifest.gz Binary files differindex 9a1b9530d24e..7f9753a2ccb4 100644 --- a/dev-ada/Manifest.gz +++ b/dev-ada/Manifest.gz diff --git a/dev-ada/langkit/Manifest b/dev-ada/langkit/Manifest index ee0162abd5b6..7c43ce5291af 100644 --- a/dev-ada/langkit/Manifest +++ b/dev-ada/langkit/Manifest @@ -1,4 +1,7 @@ AUX langkit-22.0.0-abc.patch 1129 BLAKE2B 05c136aeca2f6cb07f84d11043ba64ab67c65a9927794d9b67fad088cb39af42552ca48b6c6fe271b9c124dfa69585fdb3e60253ec6b15ba736a4c08afcce9ec SHA512 9af42ece8b8ffa9b5462dfafe84812bc40b7e03c24ae479f3458d0a8137d4439e0d509443e8df117a3c4d7e55090f2267960b43e6caafe60b28bb01af2d2cbc5 +AUX langkit-23.0.0-gentoo.patch 357 BLAKE2B 3408d89156a55658881a65d9d180d361d6f516308c0e55f44d7aa78ca261fdd5426e66de25b004c9496d610a16b93054abe98a81fe213af0e1e9a6aa628c37c4 SHA512 8dff9eb7cd914eb112c53d38b3d47f02cd48aa56d65319ae537967baab328e2f4ac94483bf5760455e68e7f621a9d2188bef25025a17e6a19dee9cb381e8e8e5 DIST langkit-22.0.0.tar.gz 1008946 BLAKE2B 2b4ee37c9af1c95f9a6e9ad81f37b6bb112d5bd70f36b78e95d969580eacc1101b824ea24de39d04ccf8bc9f9850906fa1c660a29de05e90d12106b10792c37d SHA512 4c6207b650ae8352c65f3edda3192fc66c9b5d2c351665d78ca83b549960a0a41e7828e8974cb8daa3c415281b50253aa15a247407bcedc2c13e573aaa804909 +DIST langkit-23.0.0.tar.gz 1178557 BLAKE2B c3b81cafea3afcfd90a87192dca5abd0f19c5ff4e195515dd7c4df70824bf328c24855a6761264b89bf44a56afc8dd77b78fbf322c6f92299082507aa65d61e5 SHA512 6cc6adacb157a47ebc8da46591e45a4ff212fba2cd5ac80c12adb2e84f4508735d98dc68ffce86aa5e5e8d873e6f51efb4f88f4d76a190b9eb0024bf69deefc1 EBUILD langkit-22.0.0-r3.ebuild 2329 BLAKE2B 78696334fe70f1bea5b0f9e5b9c8de62747abf494af6dc2cdce471fcd496d9937d2154efa28e1f6db3636a6aae25e1b7b2064593c2a0b8403e59cc39864400dc SHA512 b975c5d4d4e8b4c1919e84767f622ae183befbffd524db16b2922de2344b2f8c281d2270872b6f19951925fadce17c203cb2eec8f370ce8c1e5929235efef5a2 +EBUILD langkit-23.0.0.ebuild 2821 BLAKE2B 2de3f1535e413b2299db5fa676757429294b0a0767fba492b3f8ccf8b82ea036804a10b4ae3d3868841b48dc23e43a165472eaae3630386e1b6c3912ee2a9fee SHA512 f36e039e8e6d61695fc209ee94ae46e8af685427dd7fa208b8f9a7f1f3ff9fedfa1536b2c1a03948075dcfb48b3dd471f50460631d8513a20796e61ac94e70e2 MISC metadata.xml 930 BLAKE2B 5ec7305df09ee1011fc0a0b93f75bbbf315a153a835d0e3c074e95b717d6c95c7f0b29e99537375be3c6aa73e5cf089cd32fcc3567f78bb3c6768e171c3d4521 SHA512 8f0056d87158d87dc3fad08ceffcfc2a6c065977669b8d0f8560b72627f8b050ed34886e4cad19e51062b8a2e412f37b1c3ff983f1d33da79cb6283f6532df85 diff --git a/dev-ada/langkit/files/langkit-23.0.0-gentoo.patch b/dev-ada/langkit/files/langkit-23.0.0-gentoo.patch new file mode 100644 index 000000000000..cbae758013e2 --- /dev/null +++ b/dev-ada/langkit/files/langkit-23.0.0-gentoo.patch @@ -0,0 +1,10 @@ +--- a/langkit/parsers.py 2022-12-08 23:09:42.178267815 +0100 ++++ b/langkit/parsers.py 2022-12-08 22:33:40.755660102 +0100 +@@ -1306,6 +1306,7 @@ + # ... and we want to memoize the result. + self.cached_type = None + ++ @property + def can_parse_token_node(self) -> bool: + return all(p.can_parse_token_node for p in self.parsers) + diff --git a/dev-ada/langkit/langkit-23.0.0.ebuild b/dev-ada/langkit/langkit-23.0.0.ebuild new file mode 100644 index 000000000000..d384194e8cee --- /dev/null +++ b/dev-ada/langkit/langkit-23.0.0.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) +ADA_COMPAT=( gnat_2021 gcc_12_2_0 ) + +DISTUTILS_USE_SETUPTOOLS=no +inherit distutils-r1 ada multiprocessing + +DESCRIPTION="A Python framework to generate language parsers" +HOMEPAGE="https://www.adacore.com/community" +SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="+shared static-libs static-pic" +REQUIRED_USE="${PYTHON_REQUIRED_USE} + ${ADA_REQUIRED_USE} + || ( shared static-libs static-pic )" + +RDEPEND="${PYTHON_DEPS} + ${ADA_DEPS} + dev-ada/gnatcoll-bindings[${ADA_USEDEP},gmp,iconv,shared?,static-libs?,static-pic?] + dev-python/mako[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/funcy[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/mypy[${PYTHON_USEDEP}] + dev-python/types-gdb[${PYTHON_USEDEP}] + dev-python/types-docutils[${PYTHON_USEDEP}] + dev-ada/e3-core[${PYTHON_USEDEP}]" +BDEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +python_prepare_all() { + distutils-r1_python_prepare_all + cd testsuite/tests + + # missing gprbuild option to build libraries static/relocatable + rm -r {langkit_support,adalog,misc/link_two_libs} || die + rm -r misc/standalone || die + + # other failures + rm -r misc/docstrings_lkt_roles || die +} + +python_compile_all() { + build () { + rm -f langkit/support/obj/dev/*lexch + gprbuild -j$(makeopts_jobs) -p -v \ + -XLIBRARY_TYPE=$1 -P langkit/support/langkit_support.gpr -XBUILD_MODE=dev \ + -cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed" + } + if use shared; then + build relocatable + fi + if use static-libs; then + build static + fi + if use static-pic; then + build static-pic + fi + gprbuild -j$(makeopts_jobs) -p -v \ + -P sigsegv_handler/langkit_sigsegv_handler.gpr -XBUILD_MODE=dev \ + -cargs:Ada ${ADAFLAGS} -cargs:C ${CFLAGS} || die "gprbuild failed" +} + +python_test_all() { + export GPR_PROJECT_PATH="${S}"/langkit/support + ${EPYTHON} ./manage.py make --no-langkit-support || die + eval $(./manage.py setenv) + ${EPYTHON} ./manage.py test -v \ + --disable-ocaml \ + --disable-gdb \ + --disable-tear-up-builds \ + --restricted-env \ + --jobs $(makeopts_jobs) \ + |& tee langkit.testOut + grep -qw FAIL langkit.testOut && die +} + +python_install_all() { + build () { + gprinstall -v -P langkit/support/langkit_support.gpr -p -XBUILD_MODE=dev \ + --prefix="${D}"/usr --build-var=LIBRARY_TYPE \ + --build-var=LANGKIT_SUPPORT_LIBRARY_TYPE \ + --sources-subdir=include/langkit_support \ + -XLIBRARY_TYPE=$1 --build-name=$1 || die + } + if use static-libs; then + build static + fi + if use static-pic; then + build static-pic + fi + if use shared; then + build relocatable + fi +} |