diff options
Diffstat (limited to 'games-action/fnordlauncher/fnordlauncher-10.0.5.2.ebuild')
| -rw-r--r-- | games-action/fnordlauncher/fnordlauncher-10.0.5.2.ebuild | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/games-action/fnordlauncher/fnordlauncher-10.0.5.2.ebuild b/games-action/fnordlauncher/fnordlauncher-10.0.5.2.ebuild new file mode 100644 index 0000000..28e3d50 --- /dev/null +++ b/games-action/fnordlauncher/fnordlauncher-10.0.5.2.ebuild @@ -0,0 +1,101 @@ +# +# ~~~ games-action/fnordlauncher +# +# ~~~ fork of prismlauncher with alternative authentication +# ~~~ based on the prismlauncher ebuild +# + +# +# ~~~ metadata + +# portage info +EAPI=8 +SLOT=0 + +KEYWORDS="amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +# info +HOMEPAGE="https://github.com/fnordmc/fnordlauncher/" +DESCRIPTION="Fork of Prism Launcher with alternative authentication support" +LICENSE="GPL-3.0" + +# package data +SRC_URI="https://github.com/fnordmc/fnordlauncher/releases/download/${PV}/fnordlauncher-${PV}.tar.gz" +S="${WORKDIR}/FnordLauncher-${PV}" + +# +# ~~~ dependencies + +# qt setup +QTMIN=6.0.0 +inherit cmake java-pkg-2 optfeature toolchain-funcs xdg + +# dependencies +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 +" + +DEPEND=" + ${COMMON_DEPEND} + media-libs/libglvnd + <virtual/jdk-26 +" + +BDEPEND=" + app-text/scdoc + >=kde-frameworks/extra-cmake-modules-6.0.0 + virtual/pkgconfig +" + +# run-time dependencies +RDEPEND=" + ${COMMON_DEPEND} + >=dev-qt/qtsvg-${QTMIN}:6 + >=virtual/jre-1.8.0 + virtual/opengl +" + +# +# ~~~ steps + +# prepare +src_prepare() { + cmake_src_prepare +} + +# configure +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="/usr" + -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 +} + +# compile +src_compile() { + cmake_src_compile +} + +# install +pkg_postinst() { + xdg_pkg_postinst + + optfeature "old Minecraft (<= 1.12.2) support" x11-apps/xrandr + optfeature "built-in MangoHud support (available in GURU overlay)" games-util/mangohud + optfeature "built-in Feral Gamemode support" games-util/gamemode +} |
