commit 036ddb30f3c0bccfb68a2a5f6bc133c424250ee5
parent 52d5174df7e00e04ccee033c34c2f500dca3eaae
Author: torter <koubbamohamedrayan@gmail.com>
Date: Sun, 15 Nov 2026 00:46:12 +0000
AUTO_MKDIRS makes the usual directories, skip nickle and cmake
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/mag.c b/mag.c
@@ -1076,6 +1076,7 @@ static struct recipe *parse_pkgsrc(const char *id, const char *dir, const char *
if (dirs) for (dw = strtok_r(dirs, " \t", &dsave); dw; dw = strtok_r(NULL, " \t", &dsave)) cmd += sprintf(cmd, "mkdir -p $DESTDIR%s%s\n", dw[0] == '/' || dw[0] == '$' ? "" : "$PREFIX/", dw);
free(dirs);
}
+ if (var_get(&vs, "AUTO_MKDIRS")) cmd += sprintf(cmd, "mkdir -p $DESTDIR$PREFIX/bin $DESTDIR$PREFIX/sbin $DESTDIR$PREFIX/lib $DESTDIR$PREFIX/share $DESTDIR$PREFIX/man/man1 $DESTDIR$PREFIX/man/man5 $DESTDIR$PREFIX/man/man8\n");
if (hook[8]) cmd += sprintf(cmd, "%s\n", hook[8]);
if (hook[9]) cmd += sprintf(cmd, "%s\n", hook[9]);
else if (cmake) cmd += sprintf(cmd, "DESTDIR=$DESTDIR samu install\n");
diff --git a/repo/PROVIDES b/repo/PROVIDES
@@ -33,3 +33,5 @@ textproc/docbook-xsl -
textproc/libxslt -
needs x11/libX11 devel/xorg-util-macros
needs x11/libXinerama devel/xorg-util-macros
+math/nickle -
+devel/cmake -