diff options
author | V3n3RiX <venerix@koprulu.sector> | 2025-01-27 22:42:39 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2025-01-27 22:42:39 +0000 |
commit | 417348c68a53a9317b6afbf343381518a405f682 (patch) | |
tree | 2436ae4cc1751690d448293f351e3fa529909437 /dev-ada/langkit | |
parent | 4f5eafd9cc8e9b40e20b0a1abd96f1bcd634d0a0 (diff) |
gentoo auto-resync : 27:01:2025 - 22:42:39
Diffstat (limited to 'dev-ada/langkit')
-rw-r--r-- | dev-ada/langkit/Manifest | 2 | ||||
-rw-r--r-- | dev-ada/langkit/langkit-25.0.0.ebuild | 108 |
2 files changed, 110 insertions, 0 deletions
diff --git a/dev-ada/langkit/Manifest b/dev-ada/langkit/Manifest index 6eb7025374e2..0b0f45986146 100644 --- a/dev-ada/langkit/Manifest +++ b/dev-ada/langkit/Manifest @@ -1,3 +1,5 @@ DIST langkit-24.0.0.tar.gz 1282265 BLAKE2B 63aa3eb05be6ea590c3f4d0478cdfa0ee217606607c73b4c172c5b89d8a2a5d815efbf2bcd23b84548ececd11ffa1f89ebcbc5d411845b7a3834d6f7e16aa0b1 SHA512 b26a83cd7e57d8821d09e5e1aeaa2fa5837ab2f3901a006cfd49b059a3cfc98d7ea236dc39a2e24365196bd45c2124396795fd46fdaf4d7cb41aabb45ff85326 +DIST langkit-25.0.0.tar.gz 1560623 BLAKE2B ef03755397e85fde9b968dced7cf6bc72e85c21b6baef41160e527840caf32e0ea573d52f66c4b82ce9fa7e2dd0120286e06a3f3525e0acad5f9f11037be29b9 SHA512 27ffecb9b6c5568ebdba4864d9c5ef7e511718083fe087e3af60cfe8cc994b6ea7353cc745bc33395d33e169aaaf6916d991fa4941774932904df3e9b455f1dc EBUILD langkit-24.0.0-r2.ebuild 3007 BLAKE2B 9968470fb9fb85fe67152a07e679d168c6e06c7088a363a0e52d1a6a5bfac9aab50392fe13323ac5926a0111b89d08512a3ca0ff5f11971cb25eab711dc3890f SHA512 4cce11a944d2642f4d4916a1ba2e4ff063cd27525e11e10e8bec1b64c14c86f43d5e8826f969d49d92f95f399310c9cd4f655793b0ddfe2f1087ccb1de2fcd8e +EBUILD langkit-25.0.0.ebuild 3131 BLAKE2B 61b10f2da1b3f3010ac238ca520da821b8b0a0bcceebbeffc324af56356fd023bc2c165645cd51b972e4403f6bca1e10637c2777b6ec94d7c39e4e304efd7c07 SHA512 65263c12c3f8a7262d5510730fa2eb1d2e0034a37ae03de69e2102f4457da00acb683fb951171663971233444ff910eed70b3f446f12e87f6a1d993ac1b20e6b MISC metadata.xml 930 BLAKE2B 5ec7305df09ee1011fc0a0b93f75bbbf315a153a835d0e3c074e95b717d6c95c7f0b29e99537375be3c6aa73e5cf089cd32fcc3567f78bb3c6768e171c3d4521 SHA512 8f0056d87158d87dc3fad08ceffcfc2a6c065977669b8d0f8560b72627f8b050ed34886e4cad19e51062b8a2e412f37b1c3ff983f1d33da79cb6283f6532df85 diff --git a/dev-ada/langkit/langkit-25.0.0.ebuild b/dev-ada/langkit/langkit-25.0.0.ebuild new file mode 100644 index 000000000000..70ad90d9779b --- /dev/null +++ b/dev-ada/langkit/langkit-25.0.0.ebuild @@ -0,0 +1,108 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +ADA_COMPAT=( gcc_12 gcc_13 gcc_14 ) + +DISTUTILS_USE_PEP517=setuptools +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 ~arm64 ~x86" +IUSE="+shared static-libs static-pic" +REQUIRED_USE="${PYTHON_REQUIRED_USE} + ${ADA_REQUIRED_USE} + || ( shared static-libs static-pic )" +RESTRICT="test" + +RDEPEND="${PYTHON_DEPS} + ${ADA_DEPS} + dev-ada/AdaSAT[${ADA_USEDEP},shared?,static-libs?,static-pic?] + dev-ada/e3-core[${PYTHON_USEDEP}] + dev-ada/gnatcoll-bindings:=[${ADA_USEDEP},gmp,iconv(+),shared?,static-libs?,static-pic?] + dev-ada/gnatcoll-core:=[${ADA_USEDEP},shared?,static-libs?,static-pic?] + dev-ada/prettier-ada:=[${ADA_USEDEP},shared?,static-libs?,static-pic?] + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/funcy[${PYTHON_USEDEP}] + dev-python/mako[${PYTHON_USEDEP}] + dev-python/mypy[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + dev-python/types-docutils[${PYTHON_USEDEP}] + dev-python/types-gdb[${PYTHON_USEDEP}]" +BDEPEND="${RDEPEND}" + +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 + gprinstall -v -P sigsegv_handler/langkit_sigsegv_handler.gpr -p -XBUILD_MODE=dev \ + --prefix="${D}"/usr || die +} |