Since Emacs commit 59206529a17a8ae976072d8306882c4ff37a2fbd, the ebuild can no longer parse the upstream version, since it is now quoted by []. The error is: Upstream version number changed to [29.0.50]
commit 4ea5e00720ab5774e1afb9d0d58e4d362fd50a02 Author: Ulrich Müller <ulm@gentoo.org> Date: Tue Jul 5 13:46:08 2022 +0200 app-editors/emacs: Fix sed expression for AC_INIT Upstream added a pair of brackets which made the previous regexp fail. Signed-off-by: Ulrich Müller <ulm@gentoo.org>