From e91dc61301fc980c9a6cd5825259d4c5a9233791 Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Sat, 8 Jul 2023 18:21:23 +0000 Subject: Adding metadata --- dev-python/numpy/files/replace_cpuflags.awk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 dev-python/numpy/files/replace_cpuflags.awk (limited to 'dev-python/numpy/files/replace_cpuflags.awk') diff --git a/dev-python/numpy/files/replace_cpuflags.awk b/dev-python/numpy/files/replace_cpuflags.awk new file mode 100644 index 000000000000..11b8bd53b2c3 --- /dev/null +++ b/dev-python/numpy/files/replace_cpuflags.awk @@ -0,0 +1,14 @@ +#!/usr/bin/awk -f + +{ + GENTOO_ENABLE=1; + if (match($0, /flags="([^"=]*)"/, cflags)) { + split(cflags[1], fields); + for (i in fields) { + if (match(fields[i], /-m([[:graph:]]*)/, inst)) { + if (!index(enabled_flags, inst[1])) { + GENTOO_ENABLE=0; + }}}} + if (!GENTOO_ENABLE) { sub(cflags[1], "-mGENTOO_DISABLE"); } + print; +} -- cgit v1.3.1