# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 QTMIN=6.0.0 inherit cmake java-pkg-2 optfeature toolchain-funcs xdg DESCRIPTION="Custom, open source Minecraft launcher" HOMEPAGE="https://prismlauncher.org/ https://github.com/PrismLauncher/PrismLauncher" if [[ ${PV} == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/PrismLauncher/PrismLauncher" EGIT_SUBMODULES=( '*' '-libraries/filesystem' ) else MY_PN="PrismLauncher" # use vendored tarball to avoid dealing with submodules directly SRC_URI=" https://github.com/PrismLauncher/PrismLauncher/releases/download/${PV}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz " S="${WORKDIR}/${MY_PN}-${PV}" KEYWORDS="~amd64 ~arm64" fi # GPL-3 for PolyMC (PrismLauncher is forked from it) and Prism itself # Apache-2.0 for MultiMC (PolyMC is forked from it) # LGPL-3+ for libnbtplusplus # rest of its libs: https://github.com/PrismLauncher/PrismLauncher/tree/develop/libraries LICENSE="Apache-2.0 BSD BSD-2 GPL-2+ GPL-3 ISC LGPL-2.1+ LGPL-3+" SLOT="0" IUSE="test" RESTRICT="!test? ( test )" # Required at both build time and runtime COMMON_DEPEND=" app-arch/libarchive:= app-text/cmark:= dev-cpp/tomlplusplus >=dev-qt/qtbase-${QTMIN}:6[concurrent,gui,network,widgets,xml(+)] >=dev-qt/qtnetworkauth-${QTMIN}:6 games-util/gamemode media-gfx/qrencode:= virtual/zlib:= " # gulrak-filesystem dependency is only needed at build time, because we don't # actually use it on Linux, only on legacy macOS. Still, we need it present at # build time to appease CMake, and having it like this makes it easier to # maintain than patching the CMakeLists file directly. # max jdk-25 for bug #968411 DEPEND="${COMMON_DEPEND} dev-cpp/gulrak-filesystem media-libs/libglvnd