From c0b0ac0cfe4b82b2181d3dc8302867838488af98 Mon Sep 17 00:00:00 2001 From: TheK0tYaRa Date: Sat, 11 Apr 2026 03:46:39 +0300 Subject: [PATCH] added prismlauncher 11.0.0 and fix for it dying --- games-action/prismlauncher/Manifest | 1 + .../prismlauncher-10.0.3-openjdk21.patch | 31 +++++ .../files/prismlauncher-11.0.0-tomlpp.patch | 33 +++++ games-action/prismlauncher/metadata.xml | 22 ++++ .../prismlauncher/prismlauncher-11.0.0.ebuild | 114 ++++++++++++++++++ .../games-action/prismlauncher-11.0.0 | 17 +++ 6 files changed, 218 insertions(+) create mode 100644 games-action/prismlauncher/Manifest create mode 100644 games-action/prismlauncher/files/prismlauncher-10.0.3-openjdk21.patch create mode 100644 games-action/prismlauncher/files/prismlauncher-11.0.0-tomlpp.patch create mode 100644 games-action/prismlauncher/metadata.xml create mode 100644 games-action/prismlauncher/prismlauncher-11.0.0.ebuild create mode 100644 metadata/md5-cache/games-action/prismlauncher-11.0.0 diff --git a/games-action/prismlauncher/Manifest b/games-action/prismlauncher/Manifest new file mode 100644 index 0000000..8c05d10 --- /dev/null +++ b/games-action/prismlauncher/Manifest @@ -0,0 +1 @@ +DIST prismlauncher-11.0.0.tar.gz 4104245 BLAKE2B 5f5f6c297bb7fbdbe5afb53f880d2c8093f848d02db63a2883a1253dcdc1abfafe7c4df2d6da709bcb775097c0ce272e5683bb7395746e7c18a68dd20ee7adfd SHA512 75a440647a4046a45016183ad9c57ea68711969cc93856b5b5d2dc450b4371745e04efa5e9b7a43559a485a6e7efa5b4b4f5482f8283448428217000dec49d59 diff --git a/games-action/prismlauncher/files/prismlauncher-10.0.3-openjdk21.patch b/games-action/prismlauncher/files/prismlauncher-10.0.3-openjdk21.patch new file mode 100644 index 0000000..58151c1 --- /dev/null +++ b/games-action/prismlauncher/files/prismlauncher-10.0.3-openjdk21.patch @@ -0,0 +1,31 @@ +https://bugs.gentoo.org/917072 +--- a/libraries/launcher/CMakeLists.txt ++++ b/libraries/launcher/CMakeLists.txt +@@ -1,10 +1,10 @@ + cmake_minimum_required(VERSION 3.9.4) + project(launcher Java) +-find_package(Java 1.7 REQUIRED COMPONENTS Development) ++find_package(Java 1.8 REQUIRED COMPONENTS Development) + + include(UseJava) + set(CMAKE_JAVA_JAR_ENTRY_POINT org.prismlauncher.EntryPoint) +-set(CMAKE_JAVA_COMPILE_FLAGS -target 7 -source 7) ++set(CMAKE_JAVA_COMPILE_FLAGS -target 8 -source 8) + + set(SRC + org/prismlauncher/EntryPoint.java +--- a/libraries/javacheck/CMakeLists.txt ++++ b/libraries/javacheck/CMakeLists.txt +@@ -1,10 +1,10 @@ + cmake_minimum_required(VERSION 3.9.4) + project(launcher Java) +-find_package(Java 1.7 REQUIRED COMPONENTS Development) ++find_package(Java 1.8 REQUIRED COMPONENTS Development) + + include(UseJava) + set(CMAKE_JAVA_JAR_ENTRY_POINT JavaCheck) +-set(CMAKE_JAVA_COMPILE_FLAGS -target 7 -source 7 -Xlint:deprecation -Xlint:unchecked) ++set(CMAKE_JAVA_COMPILE_FLAGS -target 8 -source 8 -Xlint:deprecation -Xlint:unchecked) + + set(SRC + JavaCheck.java diff --git a/games-action/prismlauncher/files/prismlauncher-11.0.0-tomlpp.patch b/games-action/prismlauncher/files/prismlauncher-11.0.0-tomlpp.patch new file mode 100644 index 0000000..5ed5fa7 --- /dev/null +++ b/games-action/prismlauncher/files/prismlauncher-11.0.0-tomlpp.patch @@ -0,0 +1,33 @@ +diff --git a/launcher/tasks/Task.cpp b/launcher/tasks/Task.cpp +index a54b4e7c..XXXXXXXX 100644 +--- a/launcher/tasks/Task.cpp ++++ b/launcher/tasks/Task.cpp +@@ -1,6 +1,7 @@ + #include "Task.h" + + #include ++#include + + #include "AssertHelpers.h" + +@@ -107,5 +107,19 @@ void Task::start() + // NOTE: only fall through to here in end states + m_state = State::Running; + emit started(); +- executeTask(); ++ try { ++ executeTask(); ++ } catch (const std::exception& e) { ++ qCCritical(taskLogC) << "Task" << describe() ++ << "threw uncaught std::exception:" << e.what(); ++ if (isRunning()) { ++ emitFailed(QString::fromUtf8(e.what())); ++ } ++ } catch (...) { ++ qCCritical(taskLogC) << "Task" << describe() ++ << "threw uncaught non-std exception"; ++ if (isRunning()) { ++ emitFailed(tr("Unhandled internal exception")); ++ } ++ } + } diff --git a/games-action/prismlauncher/metadata.xml b/games-action/prismlauncher/metadata.xml new file mode 100644 index 0000000..782183d --- /dev/null +++ b/games-action/prismlauncher/metadata.xml @@ -0,0 +1,22 @@ + + + + + flowlnlnln@gmail.com + Thiago Donato Ferreira + + + nowa@gentoo.org + Nowa Ammerlaan + + + proxy-maint@gentoo.org + Proxy Maintainers + + + https://github.com/PrismLauncher/PrismLauncher/issues + https://prismlauncher.org/wiki/ + PrismLauncher/PrismLauncher + + Prism Launcher is a multi-instance Minecraft launcher focused on user freedom, redistributability, and simplicity. + diff --git a/games-action/prismlauncher/prismlauncher-11.0.0.ebuild b/games-action/prismlauncher/prismlauncher-11.0.0.ebuild new file mode 100644 index 0000000..bc085f8 --- /dev/null +++ b/games-action/prismlauncher/prismlauncher-11.0.0.ebuild @@ -0,0 +1,114 @@ +# 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/libnbtplusplus' ) +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,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 + =kde-frameworks/extra-cmake-modules-6.0.0:* virtual/pkgconfig app-alternatives/ninja >=dev-build/cmake-3.28.5 +DEFINED_PHASES=compile configure install postinst postrm preinst prepare setup test +DEPEND=app-arch/libarchive:= app-text/cmark:= dev-cpp/tomlplusplus >=dev-qt/qtbase-6.0.0:6[concurrent,gui,network,opengl,widgets,xml(+)] >=dev-qt/qtnetworkauth-6.0.0:6 games-util/gamemode media-gfx/qrencode:= virtual/zlib:= media-libs/libglvnd =dev-java/java-config-2.2.0-r3 +DESCRIPTION=Custom, open source Minecraft launcher +EAPI=8 +HOMEPAGE=https://prismlauncher.org/ https://github.com/PrismLauncher/PrismLauncher +IDEPEND=dev-util/desktop-file-utils x11-misc/shared-mime-info +INHERIT=cmake java-pkg-2 optfeature toolchain-funcs xdg +IUSE=test +KEYWORDS=~amd64 ~arm64 +LICENSE=Apache-2.0 BSD BSD-2 GPL-2+ GPL-3 ISC LGPL-2.1+ LGPL-3+ +RDEPEND=app-arch/libarchive:= app-text/cmark:= dev-cpp/tomlplusplus >=dev-qt/qtbase-6.0.0:6[concurrent,gui,network,opengl,widgets,xml(+)] >=dev-qt/qtnetworkauth-6.0.0:6 games-util/gamemode media-gfx/qrencode:= virtual/zlib:= >=dev-qt/qtsvg-6.0.0:6 >=virtual/jre-1.8.0:* virtual/opengl >=dev-java/java-config-2.2.0-r3 +RESTRICT=!test? ( test ) +SLOT=0 +SRC_URI=https://github.com/PrismLauncher/PrismLauncher/releases/download/11.0.0/PrismLauncher-11.0.0.tar.gz -> prismlauncher-11.0.0.tar.gz +_eclasses_=toolchain-funcs 5195689ff6a73b0e789acfa09d4fbcb9 flag-o-matic fd3558f73f6503093adee69adf41020d multiprocessing 45d0620f25c2f063ad6276ecd9ed9399 ninja-utils d063ea1900a793f93eb095010d6d9156 xdg-utils 42869b3c8d86a70ef3cf75165a395e09 cmake 3395ce6618fc5c7af03335471b896644 java-utils-2 b41327d85d12ce816943cf4d344add19 java-pkg-2 438c2725ea326202d7fc1eb31af76813 optfeature 538bce96e5589935b57e178e8635f301 xdg 3ef49a87c52c8b77c476351195dfe575 +_md5_=c6f25a1cdd34c5b8652ce50c42039c23