games-action/fjordlauncher: add 11.0.2.0

Signed-off-by: cat <cat@plan9.rocks>
This commit is contained in:
cat
2026-04-22 21:32:15 +00:00
parent 586a5911c8
commit 5847afe11d
2 changed files with 124 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
DIST fjordlauncher-10.0.5.0.tar.gz 7407099 BLAKE2B f143138dd5c50629457016cfe38cae3b5215c88618531b52e2e126e35ee5119337ebc2855dbf5396136739b8090b80779c49116ddb4f3054ee5758deca9f6f41 SHA512 11ae7e3c3e1193a24b3f4ee32be444da941c922f9792ebb46af1bb15badf2959f28044865e1910a98bce4b2adcca0f648eda0ed5b331e62d0550c535afe2b7e0
DIST fjordlauncher-11.0.0.0.tar.gz 7439500 BLAKE2B dbdde7326a62f7811286fbb36954391d835f23cca1867577da4d729efd8aefbb8c7ebf3eeafcba4f558ac096cbd4ec055c1bad4193f1c7eedf9dbaad2d8f456d SHA512 074ee6ab16828f5ced12a36c145b66b4814891bbfe1de68195a4c8b4303411763df85933f5956d91e2c55f236a346210566cb0a80d1f5b53e7e71dae04f2d171
DIST fjordlauncher-11.0.2.0.tar.gz 7424621 BLAKE2B 282330968402009682a488870eb29a23f7f82235797f0b6ae3247ba36abb1734975031c38fd24cf713d86e451b9eb0841a4e77ec1cab63eed4bfb73ff9a8baec SHA512 093afb5d93239ee8badd5042947b12265273e48462149ad7233f7c8cbcaa5e6c3932a9cb124a6617aa26a10903dfa6a1d18861d10577e431fb1ef6d072d9e583
DIST fjordlauncher-9.2.4.tar.gz 11592326 BLAKE2B 2820b7831e3390bc099acfc2359ce1c82e9b342418b11b8d73e377ea0c2f0e73909d06df618ff3b9cb02105911acfdf7d3899a73fd0e5db52298e6355380d448 SHA512 fd9eba15aa7da3a71a5e4eceb863bfc2732fec77e0469cda004fcf843a7fd9457a1a4b906235e268ab73e24721c4e9d219e468c1344fed80102a7ee706c4f2c9
DIST fjordlauncher-9.3.0.tar.gz 11646710 BLAKE2B 3f61f264c3623e3d8878903891ef03bb2638c6ee4a7615a2666a28f1d045f17845d362877b8bc3347dfd69f4f335d167b664f4f4d33b60c1c371db85fd4a2d67 SHA512 8b8d37b54f521e32c8a606b4fcdeaa708671cde397bacf0ce9201e3b467c0172f1bd14df49359c985a38001da2b5395ddab9e7e2bc72774f40e29d792c590c0f
DIST fjordlauncher-9.4.2.tar.gz 11648318 BLAKE2B 2247d63c1eab69a7cc8da1d07acbc2c0fbac31009f601f7d096757b4932ba93e454d86c1c4b164449d436217e14cb18b53901e6c16e1d6d58275f77f9f8ddb70 SHA512 d6e5951f26917ea3510aeb9ee6cefbfac258eb25bc9b87c001da523f461f3740a30ee80e17d5867a5c7b3248d7a3822b89c4109db37459b3206b5f4c63fa366f

View File

@@ -0,0 +1,123 @@
# Copyright 1999-2025 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="Prism Launcher fork with support for alternative auth servers"
HOMEPAGE="https://github.com/unmojang/FjordLauncher"
if [[ ${PV} == *9999* ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/unmojang/FjordLauncher"
EGIT_SUBMODULES=( 'libraries/libnbtplusplus' )
else
MY_PN="FjordLauncher"
# Let's use the vendored tarball to avoid dealing with the submodules directly
SRC_URI="
https://github.com/unmojang/FjordLauncher/releases/download/${PV}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz
"
# Fjord Launcher's files are unpacked to ${WORKDIR}/FjordLauncher-${PV}
S="${WORKDIR}/${MY_PN}-${PV}"
KEYWORDS="~amd64 ~arm64 ~x86"
RESTRICT="mirror"
fi
# GPL-3 for PolyMC, Prism (FjordLauncher is forked from it), and Fjord itself
# Apache-2.0 for MultiMC (PolyMC is forked from it)
# LGPL-3+ for libnbtplusplus
# See the rest of PrismLauncher's libraries at https://github.com/unmojang/FjordLauncher/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,opengl,widgets,xml(+)]
>=dev-qt/qtnetworkauth-${QTMIN}:6
games-util/gamemode
media-gfx/qrencode:=
virtual/zlib:=
"
# max jdk-25 for bug #968411
DEPEND="
${COMMON_DEPEND}
media-libs/libglvnd
<virtual/jdk-26:*
"
# QtSvg imageplugin needed at runtime for svg icons. Its used via QIcon.
# At run-time we don't depend on JDK, only JRE
# And we need more than just the GL headers
RDEPEND="
${COMMON_DEPEND}
>=dev-qt/qtsvg-${QTMIN}:6
>=virtual/jre-1.8.0:*
virtual/opengl
"
BDEPEND="
app-text/scdoc
>=kde-frameworks/extra-cmake-modules-${QTMIN}:*
virtual/pkgconfig
"
src_prepare() {
cmake_src_prepare
local java="$(java-config -f)"
local java_version=${java//[^0-9]/}
if [[ ${java_version} -ge 20 ]]; then
elog "Java 20 and up has dropped binary compatibility with Java 7."
elog "Fjord Launcher is being compiled with Java ${java_version}."
elog "The sources will be patched to build binary compatible with"
elog "Java 8 instead of Java 7. This may cause issues with very old"
elog "Minecraft versions and/or older Forge versions."
elog
elog "If you experience any problems, install an older Java compiler"
elog "and select it with \"eselect java-vm\", then recompile."
eapply "${FILESDIR}/fjordlauncher-9.1.0-openjdk21.patch"
fi
}
src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_PREFIX="/usr"
# Resulting binary is named fjordlauncher
-DLauncher_APP_BINARY_NAME="${PN}"
-DLauncher_BUILD_PLATFORM="Gentoo"
-DLauncher_QT_VERSION_MAJOR=6
-DENABLE_LTO=$(tc-is-lto)
-DBUILD_TESTING=$(usex test)
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
}
pkg_postinst() {
xdg_pkg_postinst
# Original issue: https://github.com/PolyMC/PolyMC/issues/227
optfeature "old Minecraft (<= 1.12.2) support" x11-apps/xrandr
optfeature "built-in MangoHud support" games-util/mangohud
}