| 1 |
|
# Copyright 1999-2025 Gentoo Authors
|
|
1 |
# Copyright 1999-2026 Gentoo Authors
|
| 2 |
2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
3 |
|
| 4 |
4 |
EAPI=8
|
| ... | ... | |
| 12 |
12 |
if [[ ${PV} == *9999* ]]; then
|
| 13 |
13 |
inherit git-r3
|
| 14 |
14 |
EGIT_REPO_URI="https://github.com/PrismLauncher/PrismLauncher"
|
| 15 |
|
EGIT_SUBMODULES=(
|
| 16 |
|
'*' '-libraries/cmark' '-libraries/extra-cmake-modules' '-libraries/filesystem' '-libraries/quazip'
|
| 17 |
|
'-libraries/tomlplusplus' '-libraries/zlib'
|
| 18 |
|
)
|
|
15 |
EGIT_SUBMODULES=( '*' '-libraries/filesystem' )
|
| 19 |
16 |
else
|
| 20 |
17 |
MY_PN="PrismLauncher"
|
| 21 |
18 |
# use vendored tarball to avoid dealing with submodules directly
|
| ... | ... | |
| 23 |
20 |
https://github.com/PrismLauncher/PrismLauncher/releases/download/${PV}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz
|
| 24 |
21 |
"
|
| 25 |
22 |
S="${WORKDIR}/${MY_PN}-${PV}"
|
| 26 |
|
KEYWORDS="amd64 ~arm64"
|
|
23 |
KEYWORDS="~amd64 ~arm64"
|
| 27 |
24 |
fi
|
| 28 |
25 |
|
| 29 |
26 |
# GPL-3 for PolyMC (PrismLauncher is forked from it) and Prism itself
|
| ... | ... | |
| 38 |
35 |
|
| 39 |
36 |
# Required at both build time and runtime
|
| 40 |
37 |
COMMON_DEPEND="
|
|
38 |
app-arch/libarchive:=
|
| 41 |
39 |
app-text/cmark:=
|
| 42 |
40 |
dev-cpp/tomlplusplus
|
| 43 |
|
>=dev-libs/quazip-1.3-r2:=[qt6(+)]
|
| 44 |
41 |
>=dev-qt/qtbase-${QTMIN}:6[concurrent,gui,network,widgets,xml(+)]
|
| 45 |
|
>=dev-qt/qt5compat-${QTMIN}:6
|
| 46 |
42 |
>=dev-qt/qtnetworkauth-${QTMIN}:6
|
|
43 |
games-util/gamemode
|
|
44 |
media-gfx/qrencode:=
|
| 47 |
45 |
virtual/zlib:=
|
| 48 |
46 |
"
|
| 49 |
47 |
# gulrak-filesystem dependency is only needed at build time, because we don't
|
| 50 |
48 |
# actually use it on Linux, only on legacy macOS. Still, we need it present at
|
| 51 |
49 |
# build time to appease CMake, and having it like this makes it easier to
|
| 52 |
50 |
# maintain than patching the CMakeLists file directly.
|
|
51 |
# max jdk-25 for bug #968411
|
| 53 |
52 |
DEPEND="${COMMON_DEPEND}
|
| 54 |
53 |
dev-cpp/gulrak-filesystem
|
| 55 |
54 |
media-libs/libglvnd
|
| 56 |
|
>=virtual/jdk-1.8.0:*
|
|
55 |
<virtual/jdk-26:*
|
| 57 |
56 |
"
|
| 58 |
57 |
# QtSvg imageplugin needed at runtime for svg icons, via QIcon.
|
| 59 |
58 |
# At runtime we don't depend on JDK, only JRE
|