Eric Joldasov e0012940b8 zig.eclass: new eclass
This eclass is built on top of `zig-utils.eclass` and works with
`zig build` sub-commands and `build.zig` system, here called ZBS or
Zig Build System. By default it adds convenient default dependencies
and phase functions (which can be opt-out by setting `ZIG_OPTIONAL=1`)
that:
 * work with dependencies from official package manager,
 * configures basic sane options for `zig build`, which can be further
   complemented by ebuild authors and users,
 * respects user settings for verbosity and jobs number,
 * has some basic support for cross-compilation, which works on my PC
   with `crossdev` and QEMU-ed Docker container, but it was not tested
   on real machine yet.

This is a major step in unifying behaviour and de-duplicating logic
spanning multiple ebuilds (target convertion and jobs amount
in `dev-lang/zig`, different Zig search and build options configuration
in `sys-fs/ncdu` and other ebuilds in community overlays). Mentioned
ebuilds are converted in next commits.

It is recommended to use https://github.com/BratishkaErik/zig-ebuilder
with this eclass to generate base for new ebuilds.

Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
Signed-off-by: Sam James <sam@gentoo.org>
2024-12-15 09:47:05 +00:00
2024-12-14 14:27:56 +01:00
2024-12-11 20:48:19 +01:00
2024-12-14 20:12:00 +01:00
2024-12-14 14:34:38 -08:00
2024-12-14 12:36:54 -08:00
2024-12-11 13:57:18 +01:00
2024-12-15 10:42:30 +01:00
2024-12-11 08:50:36 +08:00
2024-12-15 09:47:05 +00:00
2024-12-13 10:14:48 +00:00
2024-12-05 07:34:44 +01:00
2024-12-11 15:28:20 +01:00
2024-12-15 10:16:03 +01:00
2024-12-14 20:52:06 -08:00
2024-12-11 01:52:06 +00:00
2024-12-09 17:50:18 +01:00
2024-12-14 07:30:00 +00:00
2024-11-25 23:39:17 -05:00
S
Description
No description provided
9.8 GiB
Languages
Shell 98%
Roff 1.4%
Emacs Lisp 0.2%
C 0.1%