aboutsummaryrefslogtreecommitdiff
path: root/games-action/fnordlauncher
diff options
context:
space:
mode:
Diffstat (limited to 'games-action/fnordlauncher')
-rw-r--r--games-action/fnordlauncher/Manifest1
-rw-r--r--games-action/fnordlauncher/fnordlauncher-10.0.5.2.ebuild101
2 files changed, 102 insertions, 0 deletions
diff --git a/games-action/fnordlauncher/Manifest b/games-action/fnordlauncher/Manifest
new file mode 100644
index 0000000..82189f8
--- /dev/null
+++ b/games-action/fnordlauncher/Manifest
@@ -0,0 +1 @@
+DIST fnordlauncher-10.0.5.2.tar.gz 7472289 BLAKE2B cda243e57d239c026bed6266274133b6098ff20f8947bcc05be6f96e3e21ad2c4b8d330a09bab98112de34bb1f0431fb8834a26165c3a5ffbe1abe766d6e4b91 SHA512 b6425444c43fbf0adc536c57f8f3bd93e7143bfd08b089077d4a17338b622e8f11d09eb6bb078d13c77bf8d59e07c5460399c5118e955bbc11564cb2880182bb
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
+}