From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 72BD1158170 for ; Sat, 20 Jul 2024 13:12:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 44EE62BC04D; Sat, 20 Jul 2024 13:12:26 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 273982BC04D for ; Sat, 20 Jul 2024 13:12:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1A91A343063 for ; Sat, 20 Jul 2024 13:12:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 795741CEA for ; Sat, 20 Jul 2024 13:12:23 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1721480711.af8759beb9b9985a419213e8247e87806709b2bd.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/prismlauncher/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-action/prismlauncher/prismlauncher-9999.ebuild X-VCS-Directories: games-action/prismlauncher/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: af8759beb9b9985a419213e8247e87806709b2bd X-VCS-Branch: master Date: Sat, 20 Jul 2024 13:12:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6611844e-9df4-430f-bdb9-e9a458cbfe10 X-Archives-Hash: d9f2cde8e4e64b0aaab4d38c4259dc58 commit: af8759beb9b9985a419213e8247e87806709b2bd Author: Alfred Wingate protonmail com> AuthorDate: Fri Jul 19 15:02:52 2024 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Sat Jul 20 13:05:11 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af8759be games-action/prismlauncher: update live Signed-off-by: Alfred Wingate protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/37618 Signed-off-by: Andrew Ammerlaan gentoo.org> .../prismlauncher/prismlauncher-9999.ebuild | 46 ++++++++-------------- 1 file changed, 17 insertions(+), 29 deletions(-) diff --git a/games-action/prismlauncher/prismlauncher-9999.ebuild b/games-action/prismlauncher/prismlauncher-9999.ebuild index 5e485a25b6f6..82820693349e 100644 --- a/games-action/prismlauncher/prismlauncher-9999.ebuild +++ b/games-action/prismlauncher/prismlauncher-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit cmake java-pkg-2 optfeature xdg +inherit cmake java-pkg-2 optfeature toolchain-funcs xdg DESCRIPTION="A custom, open source Minecraft launcher" HOMEPAGE="https://prismlauncher.org/ https://github.com/PrismLauncher/PrismLauncher" @@ -15,8 +15,10 @@ if [[ ${PV} == 9999 ]]; then https://github.com/PrismLauncher/PrismLauncher " - # TODO: Add tomlplusplus as a system library, like quazip - EGIT_SUBMODULES=( '*' '-libraries/quazip' '-libraries/filesystem' '-libraries/zlib' '-libraries/extra-cmake-modules' '-libraries/cmark' ) + EGIT_SUBMODULES=( + '*' '-libraries/cmark' '-libraries/extra-cmake-modules' '-libraries/filesystem' '-libraries/quazip' + '-libraries/tomlplusplus' '-libraries/zlib' + ) else MY_PN="PrismLauncher" @@ -34,16 +36,12 @@ 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 -# MIT for tomlplusplus # See the rest of PrismLauncher's libraries at 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+ MIT" +LICENSE="Apache-2.0 BSD BSD-2 GPL-2+ GPL-3 ISC LGPL-2.1+ LGPL-3+" SLOT="0" -IUSE="debug lto qt6 test" -REQUIRED_USE=" - lto? ( !debug ) -" +IUSE="qt6 test" RESTRICT="!test? ( test )" @@ -74,26 +72,28 @@ COMMON_DEPENDS=" !qt6? ( >=dev-libs/quazip-1.3:=[qt5(+)] ) qt6? ( >=dev-libs/quazip-1.3:=[qt6(-)] ) - app-text/cmark + app-text/cmark:= dev-cpp/tomlplusplus sys-libs/zlib " -# The 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. BDEPEND=" app-text/scdoc - dev-cpp/gulrak-filesystem kde-frameworks/extra-cmake-modules:0 + virtual/pkgconfig " +# The 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. DEPEND=" ${COMMON_DEPENDS} + dev-cpp/gulrak-filesystem media-libs/libglvnd >=virtual/jdk-1.8.0:* " +# 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=" @@ -122,15 +122,9 @@ src_prepare() { elog "and select it with \"eselect java\", then recompile ${PN}." eapply "${FILESDIR}/${PN}-8.2-openjdk21.patch" fi - - sed -i -e 's/-Werror//' CMakeLists.txt || die 'Failed to remove -Werror via sed' - - # Prevent conflicting with the user's flags - # See https://bugs.gentoo.org/848765 and https://bugs.gentoo.org/911858 for more info - sed -i -e "/CMAKE_CXX_FLAGS_RELEASE/d" CMakeLists.txt || die 'Failed to remove "CMAKE_CXX_FLAGS_RELEASE" from CMakeLists via sed' } -src_configure(){ +src_configure() { local mycmakeargs=( -DCMAKE_INSTALL_PREFIX="/usr" # Resulting binary is named prismlauncher @@ -138,20 +132,14 @@ src_configure(){ -DLauncher_BUILD_PLATFORM="Gentoo" -DLauncher_QT_VERSION_MAJOR=$(usex qt6 6 5) - -DENABLE_LTO=$(usex lto) + -DENABLE_LTO=$(tc-is-lto) -DBUILD_TESTING=$(usex test) ) - if use debug; then - CMAKE_BUILD_TYPE=Debug - else - CMAKE_BUILD_TYPE=Release - fi - cmake_src_configure } -src_compile(){ +src_compile() { cmake_src_compile }