Regex for COMMENT, PLIST_SUB's TARGETARCH, TARGETARCH, and CONFIGURE_ARGS's --with-pkgversion is not suitable for targets with multiple hyphens. For example, the aarch64-none-elf-gcc port uses this as a master and the regular expressions change this to "aarch64noneelfgcc". Should be using ${PKGNAMEPREFIX:C/-$//} for the comments and pkgversion and ${PKGNAMEPREFIX:C/-.*//} for both TARGETARCH's.
Thank you for the report James. Bapt created these ports in ports r370506, perhaps he knows the provenance of the regular expression (if they came from somewhere else) Looks like the other cross compiler ports are similarly affected: devel/arm-none-eabi-gcc492 (cc ian@) devel/riscv64-gcc (cc lwhsu@) Might be worth sweeping at least all other compiler/cross-compiler ports, if not the whole tree for further examples of this issue and sorting them all out at once.
^Triage: to submitter: is this aging PR still valid?