mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
games-action/fjordlauncher: add 11.0.3.0
Signed-off-by: cat <cat@plan9.rocks>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST fjordlauncher-10.0.5.0.tar.gz 7407099 BLAKE2B f143138dd5c50629457016cfe38cae3b5215c88618531b52e2e126e35ee5119337ebc2855dbf5396136739b8090b80779c49116ddb4f3054ee5758deca9f6f41 SHA512 11ae7e3c3e1193a24b3f4ee32be444da941c922f9792ebb46af1bb15badf2959f28044865e1910a98bce4b2adcca0f648eda0ed5b331e62d0550c535afe2b7e0
|
||||
DIST fjordlauncher-11.0.2.0.tar.gz 7424621 BLAKE2B 282330968402009682a488870eb29a23f7f82235797f0b6ae3247ba36abb1734975031c38fd24cf713d86e451b9eb0841a4e77ec1cab63eed4bfb73ff9a8baec SHA512 093afb5d93239ee8badd5042947b12265273e48462149ad7233f7c8cbcaa5e6c3932a9cb124a6617aa26a10903dfa6a1d18861d10577e431fb1ef6d072d9e583
|
||||
DIST fjordlauncher-11.0.3.0.tar.gz 7442386 BLAKE2B a36e8b53dd73bd4bea8a6d163139fbe2b60d6310c2d0e9c178c84f68a4a2615abb402aa2e4c685740d285870fa871c903e7e2b9e368dd2c81224f6628b77d661 SHA512 4d552b0e9cd751eecd2246474354d5c0dfcc611b48cdc07b3619f4b27c4db6f59d979c966f17ff7ea9dd1d082b3e4f0679f2f6018e29ceff787a4d0d47955550
|
||||
DIST fjordlauncher-9.4.2.tar.gz 11648318 BLAKE2B 2247d63c1eab69a7cc8da1d07acbc2c0fbac31009f601f7d096757b4932ba93e454d86c1c4b164449d436217e14cb18b53901e6c16e1d6d58275f77f9f8ddb70 SHA512 d6e5951f26917ea3510aeb9ee6cefbfac258eb25bc9b87c001da523f461f3740a30ee80e17d5867a5c7b3248d7a3822b89c4109db37459b3206b5f4c63fa366f
|
||||
|
||||
123
games-action/fjordlauncher/fjordlauncher-11.0.3.0.ebuild
Normal file
123
games-action/fjordlauncher/fjordlauncher-11.0.3.0.ebuild
Normal 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,vulkan,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
|
||||
}
|
||||
Reference in New Issue
Block a user