-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WIP] move from
mustache-zig
to ztl
templates
Hitting some critical bugs right now, that's why it's draft. Signed-off-by: Eric Joldasov <[email protected]>
- Loading branch information
1 parent
e88e61d
commit 37d6f30
Showing
2 changed files
with
65 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// SPDX-FileCopyrightText: 2024 BratishkaErik | ||
// SPDX-License-Identifier: 0BSD | ||
// | ||
// Text above is about this template, not generated file itself. | ||
// | ||
// Text below is just an example for more easy generation of ebuilds | ||
// for ::gentoo and ::guru repos, you can relicense this output however you want. | ||
# Copyright <%= @year %> Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
# Generated by zig-ebuilder <%= @generator_version %> | ||
|
||
EAPI=8 | ||
|
||
DESCRIPTION="Write manually" | ||
HOMEPAGE="Write manually" | ||
|
||
ZIG_SLOT="<%= @zbs["slot"] %>" | ||
inherit zig | ||
|
||
src_configure() { | ||
local my_zbs_args=( | ||
# Here you have list of options that are exposed by build.zig, | ||
# pass USE flags and default values here. | ||
|
||
<% foreach (@zbs["report"]["user_options"]) |user_option| { %> | ||
# <%= user_option["name"] %>: <%= user_option["description"] %> | ||
<%- } %> | ||
|
||
<% foreach (@zbs["report"]["user_options"]) |user_option| { %> | ||
# -D<%= user_option["name"] %>=[<%= user_option["type"] %>] | ||
<%- } %> | ||
|
||
<% foreach (@zbs["report"]["system_integrations"]) |system_integration| { %> | ||
-fsys=<%= system_integration %> | ||
<%- } %> | ||
) | ||
|
||
zig_src_configure | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters