commit: 339e6ccf840a55f3178313021c3d881915916163 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Tue Dec 31 18:58:16 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Tue Dec 31 19:33:55 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=339e6ccf
dev-lang/ada-bootstrap: find BINPKG automatically For HPPA, the version is going to be newer and it's easier to do this than hardcode another value. Bug: https://bugs.gentoo.org/946647 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-lang/ada-bootstrap/ada-bootstrap-14.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev-lang/ada-bootstrap/ada-bootstrap-14.ebuild b/dev-lang/ada-bootstrap/ada-bootstrap-14.ebuild index 8b2f04f9d7c5..4e2c475ea048 100644 --- a/dev-lang/ada-bootstrap/ada-bootstrap-14.ebuild +++ b/dev-lang/ada-bootstrap/ada-bootstrap-14.ebuild @@ -3,8 +3,6 @@ EAPI=8 -BINPKG=gcc-14.2.1_p20241116-1 - # The binaries in SRC_URI are generated by the following (roughly): # * taking an amd64 stage3 # * adding USE=ada to make.conf @@ -98,6 +96,9 @@ src_install() { local chost=${TARBALL_TO_UNPACK/${P}-} chost=${chost%%.gpkg.tar} + BINPKG=$(find "${WORKDIR}"/ -type d -mindepth 1 -maxdepth 1 -iname 'gcc-*') + BINPKG="${BINPKG#${WORKDIR}}" + dodir /usr/lib/ada-bootstrap mv "${WORKDIR}"/${BINPKG}/image/usr/ "${ED}"/usr/lib/ada-bootstrap || die
