diff options
| author | Zac Medico <zmedico@gentoo.org> | 2023-10-08 21:57:02 -0700 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2023-10-12 06:04:06 +0100 |
| commit | 78c8fbe8a35cd2926f37f21235c5d8b587efae46 (patch) | |
| tree | 90e60104e244ef71e643753b43b083ed0d0f2775 /bin/meson.build | |
| parent | a12d24f99d03c3c4975d84d63083449cd8487ef9 (diff) | |
| download | gentoolkit-78c8fbe8a35cd2926f37f21235c5d8b587efae46.tar.gz | |
Migrate to PEP517 meson-python build
Bug: https://bugs.gentoo.org/909888
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Closes: https://github.com/gentoo/gentoolkit/pull/36
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'bin/meson.build')
| -rw-r--r-- | bin/meson.build | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/bin/meson.build b/bin/meson.build new file mode 100644 index 0000000..eb99870 --- /dev/null +++ b/bin/meson.build @@ -0,0 +1,55 @@ +py_bins = [ + 'eclean', + 'eclean-dist', + 'eclean-pkg', + 'ekeyword', + 'enalyze', + 'epkginfo', + 'equery', + 'eread', + 'eshowkw', + 'imlate', + 'merge-driver-ekeyword', + 'revdep-rebuild', +] + +ebump = configure_file( + input : 'ebump', + output : 'ebump', + configuration : conf_data +) + +euse = configure_file( + input : 'euse', + output : 'euse', + configuration : conf_data +) + +revdep_rebuild_sh = configure_file( + input : 'revdep-rebuild.sh', + output : 'revdep-rebuild.sh', + configuration : conf_data +) + +other_bins = [ + ebump, + euse, + revdep_rebuild_sh, +] + +# It might seem sensible to use py.install_sources() to install the Python +# scripts, but it's really just a wrapper around install_data that forces the +# install_dir. Meson 1.2.0 and later also optimize to bytecode, but Gentoo does +# this in the ebuild. + +install_data( + py_bins, + install_dir : get_option('bindir'), + install_mode : 'rwxr-xr-x', +) + +install_data( + other_bins, + install_dir : get_option('bindir'), + install_mode : 'rwxr-xr-x', +) |
