[File] [PATCH] Recognize Gentoo ebuild, eclass and metadata files
Michał Górny
mgorny at gentoo.org
Sat Sep 10 15:35:25 UTC 2022
---
magic/Magdir/gentoo | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/magic/Magdir/gentoo b/magic/Magdir/gentoo
index 47f63b06..526f15a7 100644
--- a/magic/Magdir/gentoo
+++ b/magic/Magdir/gentoo
@@ -33,3 +33,19 @@
0 name gentoo-manifest
>&0 regex [[:space:]]+[[:print:]]+[[:space:]]+[[:digit:]]+[[:space:]]+[[:alnum:]]+[[:space:]]+[[:xdigit:]]{32} Gentoo Manifest (GLEP 74)
+# Summary: Gentoo ebuild and eclass files
+# Reference: https://projects.gentoo.org/pms/8/pms.html
+# Submitted by: Michał Górny <mgorny at gentoo.org>
+0 search/512 EAPI=
+>0 regex .*\n[\040\t]*EAPI=["']? Gentoo ebuild
+>>&0 regex [[:alnum:]+_.-]+ \b, EAPI %s
+
+0 search/512 @ECLASS:\040 Gentoo eclass
+>&0 string x %s
+
+# Summary: Gentoo supplementary package and category metadata files
+# Reference: https://www.gentoo.org/glep/glep-0068.html
+# Submitted by: Michał Górny <mgorny at gentoo.org>
+0 string \<?xml
+>0 search/512 \<catmetadata Gentoo category metadata file
+>0 search/512 \<pkgmetadata Gentoo package metadata file
--
2.37.3
More information about the File
mailing list