Improve gentoo support for installdeps.

- Use gtk3 slot for wxWidgets.

- Fully qualify all ebuilds.

- Only rebuild if necessary.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2020-06-01 12:24:41 +00:00
parent 0436797080
commit bfab4321cb
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
1 changed files with 8 additions and 2 deletions

View File

@ -1034,13 +1034,19 @@ gentoo_installdeps() {
check sudo emerge-webrsync
ebuilds="gcc make cmake ccache binutils libsdl2 libsfml wxGTK zlib dev-util/pkgconfig nasm dev-util/ninja"
# We want the gtk3 slot for wxWidgets.
wx_slot=$(equery -qC list -p -F '$slot' x11-libs/wxGTK | grep gtk3 | sort -rV | head -1)
ebuilds="\
sys-devel/gcc sys-devel/make dev-util/cmake dev-util/ccache sys-devel/binutils \
media-libs/libsdl2 media-libs/libsfml x11-libs/wxGTK:$wx_slot sys-libs/zlib dev-util/pkgconf \
dev-lang/nasm dev-util/ninja"
[ -n "$ENABLE_OPENAL" ] && ebuilds="$ebuilds media-libs/openal"
[ -n "$ENABLE_FFMPEG" ] && ebuilds="$ebuilds media-video/ffmpeg"
check sudo emerge -vuDUa $ebuilds
check sudo emerge -vn $ebuilds
build_instructions
}