media-gfx/bambustudio-bin/media-gfx/bambustudio-bin
Gentoo ebuild recipe identityGentoo ebuild declares EAPI
SHA-2563a35a017f5db826c9a8fb042a3ba86d1642263e7eeae25b37da1e23a941e5497
MaleculeH₄(Cm₃DbF₃Os)Md(Bk)
Evidence
1# Copyright 1999-2026 Gentoo Authors
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=8
5
6MY_PN="BambuStudio"
⋯7 lines
14SRC_URI="
15 amd64? (
16 https://github.com/bambulab/${MY_PN}/releases/download/v${PV}/BambuStudio_ubuntu-24.04-v02.06.00.51-20260417160415.AppImage
17 -> ${P}.AppImage
18 )
⋯5 lines
42:3… 11-libs/gdk-pixbuf:2
43 x11-libs/gtk+:3
44 x11-libs/libX11
45 x11-libs/libxkbcommon
46 x11-libs/pango
47 >=x11-libs/pixman-0.30
48 x11-libs/wxGTK:${WX_GTK_VER}[X, …
⋯5 lines
57
58src_unpack() {
59 mkdir "${S}" || die
60 cp "${DISTDIR}/${P}.AppImage" "${S}"/ || die
61 pushd "${S}" || die
62 chmod +x "${S}/${P}.AppImage" || die
63 "${S}/${P}.AppImage" --appimage-extract || die
64 rm "${S}/${P}.AppImage" || die
65 popd || die
⋯4 lines
73:23… /bin/bambu-studio || die
74
75 # Ubuntu ships bzip2 with SONAME libbz2.so.1.0; Gentoo uses libbz2.so.1.
76 # Rewrite NEEDED entries so qa-unresolved-soname-deps is satisfied and the
77 # binary stays linkable after Gentoo drops the libbz2.so.1.0 compat symlink.
78 local f
79 whi …
80:14… ]] && continue
81 patchelf --print-needed "${f}" 2>/dev/null | grep -qxF 'libbz2.so.1.0' || continue
82 patchelf --replace-needed libbz2.so.1.0 libbz2.so.1 "${f}" || die
83 done < <(find "${S}"/squashfs-root -type f -print0)
84
85 insinto /opt/"${PN}"
86 doins -r "${S}"/squashfs-root/*
87 fperms +x "/opt/${PN}/AppRun" "/opt/${PN}/bin/bambu-studio"
88 doicon -s 192 "${S} …