diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-26 23:40:45 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-26 23:40:45 +0000 |
commit | e53a98716127eb7be20f46713a7442d5b8820633 (patch) | |
tree | 65a649f66422bc6677cae851cf42a166e45d2ced /dev-build/meson | |
parent | fab95e98818bada1626a7723a1348f4e920d25e0 (diff) |
gentoo auto-resync : 26:02:2024 - 23:40:45
Diffstat (limited to 'dev-build/meson')
-rw-r--r-- | dev-build/meson/Manifest | 3 | ||||
-rw-r--r-- | dev-build/meson/meson-1.4.0_rc1.ebuild | 127 |
2 files changed, 130 insertions, 0 deletions
diff --git a/dev-build/meson/Manifest b/dev-build/meson/Manifest index 24b90bf51bb5..7619d83f4092 100644 --- a/dev-build/meson/Manifest +++ b/dev-build/meson/Manifest @@ -26,6 +26,8 @@ DIST meson-1.3.1.tar.gz 2222386 BLAKE2B 64d53eddc8cb321a4e2dabaa4b7499798a7b6876 DIST meson-1.3.1.tar.gz.asc 833 BLAKE2B 1db7aabe3b7d491dfcd288a780d10784517a73e07348f2d5b98d1fa347dd08b2afa210511c7f5ff867b10ecd3ce470ea764b5ce6907aa7dcaa4d619f705e339c SHA512 0f652d375fa7700f3048266330d783664593c08da47d4f0d87af0be5d8b5e21113521651fb923c6a1cfe88aef7067ebd85b27946f19e71133d7c9805839fc873 DIST meson-1.3.2.tar.gz 2223798 BLAKE2B 72b061598a0cb22517460de4df25394a9dfbddb536c5b8e75b7267ae21292fe2a6a3ec16d64aa81cde63d33022decebcc051cf2d87d677f9b40eb2f4106a40cd SHA512 6369c6d64f91c769f0f4d3e2445bb3615785998489d41acba2134b44ec89abd04bd97a3d3d17c64779eb40b0bf4808e3419eb47638169446a98824d680f37a7b DIST meson-1.3.2.tar.gz.asc 833 BLAKE2B b11ae2be4e9cb0278be9cafd304146432e606a5fd23379d08116943676286f240fb8cc1d5f897cbd4c2bacfe298802afb1a847e447d71250f58cee5dec38083b SHA512 0cb9575fb599cba4ae77c1954599a24b1f079c46cf255bb8d581ef434598503db6e08af6a95b7c00bc54c165ec8fd9834310e2d4874afe01c5d44e72cef496b3 +DIST meson-1.4.0rc1.tar.gz 2226075 BLAKE2B af810c785ff4a0c3eab91cf1a963a364c256aa72ba086b61821370ee37b8ca8133337993c5b28afdf990787074a486f34f00344419e4cd63c2784833d7fd7d7b SHA512 0c59531c6169d8d81b66781496cc5406ce3ba45069643c8b8e3fc13dc578bd16d42776e94373193fbe976caa53258da8fcc6a20cecb6d4db757c1fed5f1b970f +DIST meson-1.4.0rc1.tar.gz.asc 833 BLAKE2B 7a98191f3493cc3b15b3aec793e4852692e101bb9cc8818c6815c566e39eb117a3e12d3b961cdbba22f271ddfe9eca23adfbf30bdef522997a35156e1d58bb39 SHA512 0c112cf7c67fa290f2bd0964ab1757fda03e0dac4bb3a52583c95b908522a9a3086fa6a6adfc9c2f875f92d8db54ab5ba1a1af9a6e457cc9be103d0f72c04320 EBUILD meson-1.1.1.ebuild 3287 BLAKE2B d449d5e7511b47baf4d26aae0359183d4ef9ea21bf163d5af5fbe6cc78c44bd9788d5c807486f106be3a8abfb07cc1d34782616cffed333e94dd4225f6650056 SHA512 9fca53429ebd722f91084a4796bc1c466216b2021cb6b88e76cdaa559fefa17651d76e744e32c3126b2bad5b4ca36f5b17d402cec57a764340406610e7c97dae EBUILD meson-1.2.1-r1.ebuild 3278 BLAKE2B b826205796d6ba329718e2fabf420ba227b26ef8c26eff417253342f4df76f3f81cd3d431018d0cc0024a55930cfaa1f484d70bd98102765f6614e585cfd87e7 SHA512 1a44a84296a297a3927230bd390d188051af6439759dddc2364871e10879b74ab1a70b52a754c7840771050ef97341ef21e8b516d8cdcc2a34e29f7c40a004b2 EBUILD meson-1.2.1-r2.ebuild 3320 BLAKE2B 086a61e7b7e1583faf4e3e652466cf9bbf8aba03c3bff66f48e443e564d181bfde85c721c9d2696c28082ce7569533c1de78ac833a9a3809336a914e1d4aa1d4 SHA512 2ca3f9c81f5286df86c0e1b7a507686ae1ee933222bab7b1d1805f57d09da23efa81a4009dc90e09a0a5ec8582bf6fe5b709bfef4db6cece18727a893a625090 @@ -36,5 +38,6 @@ EBUILD meson-1.3.0-r1.ebuild 3410 BLAKE2B 76f565c4ecf7f1b08e3447133c87221da25136 EBUILD meson-1.3.0-r2.ebuild 3565 BLAKE2B 45aebd9f7f4978385d339588d5177418e3fc6e77878b3b5f095e95d30b0b237e5481f94225c651043888ab4af27510315de5f747eec45566e9b018dd5f2e9c22 SHA512 89646f67dbc7182a5808664125bc6d370b280f298fe3359a8837ebda3320b2e244adfbe39742c530da0a342f74aed5d3ba1d9b476440f393fd09a4af2babff85 EBUILD meson-1.3.1-r1.ebuild 3708 BLAKE2B b93b753a8c98f5bf9c15c1e55bd3d4541cbd9efb46bc93f5cde67eb7b04734a53aaf77e4d91b5b6a9e5a574734cdc6fe664a08c7b4ed3b795d356882dee2c98d SHA512 e7f6dffebd782e48712f4e745941bc776dfc384e21039d1ec655e3d8844d62dce536295e9c5244c51e6f29833ff3aeb978737165f6262ab9c2bdb75f26c3af0a EBUILD meson-1.3.2.ebuild 3425 BLAKE2B 05c2379e5d969467428bfd4ffe4c338aeefb7397b1b43f9adcebf514a4d4e069a77c62d8f075e7424921635cd8d2929c468c17e7cbceef76835a82bc09ddc290 SHA512 ad181c8f23d6fdde31ce37f0faacf83c1466faace2b7be9775b06f4a71388e55e2b85502eb1ae09c253f760aabd9c77f450ddb49c5d26ab90371220fad0ae503 +EBUILD meson-1.4.0_rc1.ebuild 3262 BLAKE2B 387e5dcaf086a9bf94ded253c1adeaf3208fe3e5fab811e1810d2e0d92870864fecf8a49c3616c73c1a6dcc8f87547071615a2ab180e6f530b89850439c55190 SHA512 76a374b8212773d22a43340cb49c648da15c966e8f5782ad391628295a6a53fed4adf4fba85e675071d606cb69c5f31c10174b92868212452c69f397b4e463d9 EBUILD meson-9999.ebuild 3235 BLAKE2B a70383fb27538f5539c16d0ca07f1cff24def033d6bde05053657c8c5217798ce65c3e15f599aa15f54f173b7ddcceefc4debb5af4ab53284cf75900a1e97152 SHA512 6d6afb4820807ef0d852ea7d7284ca574d089767917a4f1157726505e98aad1e4c485701023bbb99d7bec174dda802ccb16375237d5e05c874b59f058eceda43 MISC metadata.xml 472 BLAKE2B 559073667cf007cd507f379014c8d0d494908742f606ca5eeb2a0cef3b5a8cb63cea4e9aa33b228163211dff8f794d178cbcd6c91bb283f894e6b072db28bacc SHA512 9232fe05900dca57d21f41023255c9a6fba57b213737ac8842ea180681488d9a2a306c8fbeba66cf02204f4523192e64af745aa65db946beac723cfe271e4fd5 diff --git a/dev-build/meson/meson-1.4.0_rc1.ebuild b/dev-build/meson/meson-1.4.0_rc1.ebuild new file mode 100644 index 000000000000..aaa0403ac9dc --- /dev/null +++ b/dev-build/meson/meson-1.4.0_rc1.ebuild @@ -0,0 +1,127 @@ +# Copyright 2016-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} pypy3 ) +DISTUTILS_USE_PEP517=setuptools + +if [[ ${PV} = *9999* ]]; then + EGIT_REPO_URI="https://github.com/mesonbuild/meson" + inherit git-r3 +else + inherit verify-sig + + MY_PV=${PV/_/} + MY_P=${P/_/} + S=${WORKDIR}/${MY_P} + + SRC_URI=" + https://github.com/mesonbuild/meson/releases/download/${MY_PV}/${MY_P}.tar.gz + verify-sig? ( https://github.com/mesonbuild/meson/releases/download/${MY_PV}/${MY_P}.tar.gz.asc ) + " + BDEPEND="verify-sig? ( sec-keys/openpgp-keys-jpakkane )" + VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/jpakkane.gpg + + if [[ ${PV} != *_rc* ]] ; then + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + fi +fi + +inherit bash-completion-r1 distutils-r1 toolchain-funcs + +DESCRIPTION="Open source build system" +HOMEPAGE="https://mesonbuild.com/" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND=" + test? ( + dev-libs/glib:2 + dev-libs/gobject-introspection + app-alternatives/ninja + dev-vcs/git + sys-libs/zlib[static-libs(+)] + virtual/pkgconfig + ) +" +RDEPEND=" + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-1.2.1-python-path.patch +) + +python_prepare_all() { + local disable_unittests=( + # ASAN and sandbox both want control over LD_PRELOAD + # https://bugs.gentoo.org/673016 + -e 's/test_generate_gir_with_address_sanitizer/_&/' + + # ASAN is unsupported on some targets + # https://bugs.gentoo.org/692822 + -e 's/test_pch_with_address_sanitizer/_&/' + ) + + sed -i "${disable_unittests[@]}" unittests/*.py || die + + # Broken due to python2 script created by python_wrapper_setup + rm -r "test cases/frameworks/1 boost" || die + + distutils-r1_python_prepare_all +} + +src_test() { + tc-export PKG_CONFIG + if ${PKG_CONFIG} --exists Qt5Core && ! ${PKG_CONFIG} --exists Qt5Gui; then + ewarn "Found Qt5Core but not Qt5Gui; skipping tests" + else + distutils-r1_src_test + fi +} + +python_test() { + ( + # remove unwanted python_wrapper_setup contents + # We actually do want to non-error if python2 is installed and tested. + remove="${T}/${EPYTHON}/bin:" + PATH=${PATH/${remove}/} + + # test_meson_installed + unset PYTHONDONTWRITEBYTECODE + + # https://bugs.gentoo.org/687792 + unset PKG_CONFIG + + # test_cross_file_system_paths + unset XDG_DATA_HOME + + # 'test cases/unit/73 summary' expects 80 columns + export COLUMNS=80 + + # If JAVA_HOME is not set, meson looks for javac in PATH. + # If javac is in /usr/bin, meson assumes /usr/include is a valid + # JDK include path. Setting JAVA_HOME works around this broken + # autodetection. If no JDK is installed, we should end up with an empty + # value in JAVA_HOME, and the tests should get skipped. + export JAVA_HOME=$(java-config -O 2>/dev/null) + + ${EPYTHON} -u run_tests.py + ) || die "Testing failed with ${EPYTHON}" +} + +python_install_all() { + distutils-r1_python_install_all + + insinto /usr/share/vim/vimfiles + doins -r data/syntax-highlighting/vim/{ftdetect,indent,syntax} + + insinto /usr/share/zsh/site-functions + doins data/shell-completions/zsh/_meson + + dobashcomp data/shell-completions/bash/meson +} |