Files
gentoo-zh/dev-games/unityhub/unityhub-3.21.3.ebuild
T
Zakk a804bf4525 dev-games/unityhub: move Editor-only compat libs to optfeature
The Hub links neither libxml2.so.2 nor libssl.so.1.1; only older Editor releases do,
and Unity dropped libxml2 from 6000.0.76f1, 6000.3.13f1 and 6000.4.1f1 on.

Signed-off-by: Zakk <zakk@gentoozh.org>
2026-09-18 21:10:40 +10:00

57 lines
1.4 KiB
Bash

# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit desktop optfeature unpacker xdg
DESCRIPTION="The official unity tool for manager Unity Engines and projects"
HOMEPAGE="https://docs.unity.com/en-us/hub"
SRC_URI="https://hub.unity3d.com/linux/repos/deb/pool/main/u/unity/unityhub_amd64/UnityHubSetup-${PV}-amd64.deb -> ${PN}-amd64-${PV}.deb"
S=${WORKDIR}
LICENSE="unity-EULA"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+appindicator legacy"
RESTRICT="bindist mirror strip"
DEPEND="
appindicator? (
dev-libs/libdbusmenu
legacy? (
dev-libs/libayatana-appindicator
x11-misc/appmenu-gtk-module[gtk2]
)
)
app-arch/cpio
dev-libs/nss
dev-util/lttng-ust:0/2.12
x11-libs/gtk+
app-crypt/libsecret
media-libs/alsa-lib
"
RDEPEND="${DEPEND}"
src_unpack(){
unpack_deb ${PN}-amd64-${PV}.deb
}
src_install(){
insinto /opt
doins -r usr/lib/unityhub
dosym -r /opt/unityhub/unityhub /usr/bin/unityhub
insinto /usr/share/icons
doins -r usr/share/icons/hicolor
domenu usr/share/applications/${PN}.desktop
fperms 0755 -R /opt/unityhub
}
pkg_postinst() {
xdg_pkg_postinst
optfeature_header "Older Unity Editor releases installed through the Hub may need:"
optfeature "Editors before Unity's libxml2 fix (6000.0.76f1, 6000.3.13f1, 6000.4.1f1)" \
dev-libs/libxml2-compat:2
optfeature "Editors that still link OpenSSL 1.1" dev-libs/openssl-compat:1.1.1
}