create ebuild module

This commit is contained in:
John Turner
2025-10-29 16:24:25 +00:00
parent b5765118fe
commit 8937e096a4
6 changed files with 215 additions and 111 deletions

View File

@@ -1,8 +1,4 @@
use gentoo_utils::{
Parseable,
atom::Atom,
depend::{self, Expr},
};
use gentoo_utils::{Parseable, atom::Atom, ebuild::Depend};
use mon::{Parser, eof, input::InputIter, tag, whitespace1};
use std::fs;
@@ -18,7 +14,7 @@ fn parse_md5_cache() {
if line.starts_with("DEPEND=") {
eprintln!("{line}");
eprintln!();
Expr::<Atom>::parser()
Depend::<Atom>::parser()
.separated_list(whitespace1(), 0..)
.ignore()
.or(eof())