sci-libs/qd should be under a modified BSD license. SPDX (see $url) calls it the "Lawrence Berkeley National Labs BSD variant" and Fedora calls it the "LBNLBSD". The pristine docx containing the text is at https://www.davidhbailey.com/dhbsoftware/LBNL-BSD-License.docx and I am punting to licenses@ to pick its Gentoo name.
As SPDX doesn't provide a short name, following Fedora's "LBNLBSD" seems reasonable (plus a mapping from the SPDX name in metadata/license-mapping.conf). However, I wonder about the license group where this would be added. The text from the linked docx is not a license but a license agreement (it says so itself and the wording "The parties now agree as follows" also suggests it), so it would have to go to @EULA. So, I'd suggest to use the plain text from https://fedoraproject.org/wiki/Licensing:LBNLBSD (which doesn't have "the parties agree") and add LBNLBSD to @OSI-APPROVED.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da97a3157a4516fcb5c064aea18b643f25eadf4a commit da97a3157a4516fcb5c064aea18b643f25eadf4a Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2024-09-05 12:41:49 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2024-09-05 12:52:16 +0000 profiles/license_groups: add LBNLBSD to @OSI-APPROVED-FREE Closes: https://bugs.gentoo.org/939071 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> profiles/license_groups | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18a3ea20e9ed753aa75aefbd6af95cf854e4e72b commit 18a3ea20e9ed753aa75aefbd6af95cf854e4e72b Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2024-09-05 12:31:18 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2024-09-05 12:52:15 +0000 metadata/license-mapping.conf: add entry for LBNLBSD Bug: https://bugs.gentoo.org/939071 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> metadata/license-mapping.conf | 1 + 1 file changed, 1 insertion(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=84031d1978282d0772e5bcf6d5ec65fc5aff8069 commit 84031d1978282d0772e5bcf6d5ec65fc5aff8069 Author: Michael Orlitzky <mjo@gentoo.org> AuthorDate: 2024-09-05 12:25:35 +0000 Commit: Michael Orlitzky <mjo@gentoo.org> CommitDate: 2024-09-05 12:52:15 +0000 licenses: add new LBNLBSD license This is a Lawrence Berkeley National Laboratory (LBNL) variant of the BSD license with an additional clause granting LBNL the right to use any enhancements you make public or otherwise provide to them. Bug: https://bugs.gentoo.org/939071 Signed-off-by: Michael Orlitzky <mjo@gentoo.org> licenses/LBNLBSD | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+)