commit: c4612259e75b37bc013ce7adba21df5c86516a50 Author: Horodniceanu Andrei <a.horodniceanu <AT> protonmail <DOT> com> AuthorDate: Tue Jan 24 13:39:55 2023 +0000 Commit: Marco Leise <marco.leise <AT> gmx <DOT> de> CommitDate: Fri Sep 1 21:12:42 2023 +0000 URL: https://gitweb.gentoo.org/repo/user/dlang.git/commit/?id=c4612259
dmd.eclass: Fix SRC_URI for beta and rc versions Signed-off-by: Horodniceanu Andrei <a.horodniceanu <AT> protonmail.com> eclass/dmd.eclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eclass/dmd.eclass b/eclass/dmd.eclass index 47fc51a..008cbbf 100644 --- a/eclass/dmd.eclass +++ b/eclass/dmd.eclass @@ -92,7 +92,8 @@ fi EXPORT_FUNCTIONS src_prepare src_compile src_test src_install pkg_postinst pkg_postrm if [[ -n "${BETA}" ]]; then - SRC_URI="http://downloads.dlang.org/pre-releases/${MAJOR}.x/${VERSION}/${PN}.${VERSION}-b${BETA:4}.${ARCHIVE}" + # We want to convert a Gentoo version string to an upstream one: 2.097.0_rc1 -> 2.097.0-rc.1 + SRC_URI="http://downloads.dlang.org/pre-releases/${MAJOR}.x/${VERSION}/${PN}.$(ver_rs 3 "-" 4 ".").${ARCHIVE}" else SRC_URI="mirror://aws/${YEAR}/${PN}.${PV}.${ARCHIVE}" fi