Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: games-action/multimc-bin/
Date: Fri, 24 Sep 2021 06:51:47
Message-Id: 1632466292.7ff6511dac94e5d14b4c66b967c8d1f86f48a0f4.andrewammerlaan@gentoo
1 commit: 7ff6511dac94e5d14b4c66b967c8d1f86f48a0f4
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 24 06:49:40 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 24 06:51:32 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ff6511d
7
8 games-action/multimc-bin: add -bin version
9
10 Because of secret API keys to access MS authentication servers
11 we need a -bin version for full functionality.
12 We also keep the non-bin versions for users who e.g. wish to apply patches
13
14 https://github.com/MultiMC/MultiMC5/issues/4113
15 https://github.com/MultiMC/MultiMC5/issues/4087
16 Closes: https://bugs.gentoo.org/814404
17 Package-Manager: Portage-3.0.23, Repoman-3.0.3
18 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
19
20 games-action/multimc-bin/Manifest | 1 +
21 games-action/multimc-bin/metadata.xml | 28 +++++++++++++
22 games-action/multimc-bin/multimc-bin-1.5.1.ebuild | 48 +++++++++++++++++++++++
23 3 files changed, 77 insertions(+)
24
25 diff --git a/games-action/multimc-bin/Manifest b/games-action/multimc-bin/Manifest
26 new file mode 100644
27 index 00000000000..0e647fe50cb
28 --- /dev/null
29 +++ b/games-action/multimc-bin/Manifest
30 @@ -0,0 +1 @@
31 +DIST multimc_1.5-1.deb 7692 BLAKE2B c5b4de864c95cccd96b071d4d551e322eb5c78e17a8da361ee69a82405691c6d9fc81c7eef9dcf855a8e2145fbb362d31c7f63682c7a66edbc37dbf9215e7c1b SHA512 26fe11eff406efd09612002e4c53fc1ea0b3f7d0aca389475a7afff454efa52ed52097f6a0bbc27de61fba3fed252321754738a0f79b0d8a7308a39701087e67
32
33 diff --git a/games-action/multimc-bin/metadata.xml b/games-action/multimc-bin/metadata.xml
34 new file mode 100644
35 index 00000000000..9246e9cd341
36 --- /dev/null
37 +++ b/games-action/multimc-bin/metadata.xml
38 @@ -0,0 +1,28 @@
39 +<?xml version="1.0" encoding="UTF-8"?>
40 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
41 +<pkgmetadata>
42 + <upstream>
43 + <remote-id type="github">MultiMC/MultiMC5</remote-id>
44 + <bugs-to>https://github.com/MultiMC/MultiMC5/issues</bugs-to>
45 + </upstream>
46 + <maintainer type="person">
47 + <email>andrewammerlaan@g.o</email>
48 + <name>Andrew Ammerlaan</name>
49 + </maintainer>
50 + <longdescription>
51 + MultiMC is a custom launcher for Minecraft that allows you to easily manage multiple installations of Minecraft at once. It also allows you to easily install and remove mods by simply dragging and dropping. Here are the current features of MultiMC:
52 +
53 + - Manage multiple instances of Minecraft at once
54 + - Start Minecraft with a custom resolution
55 + - Change Java's runtime options (including memory options)
56 + - Shows Minecraft's console output in a colour-coded window
57 + - Kill Minecraft easily if it crashes/freezes
58 + - Custom icons and groups for instances
59 + - Forge, Fabric and LiteLoader integration (automatic installation, version downloads, mod management)
60 + - Import of Curse modpacks
61 + - LWJGL version changing built-in
62 + - Supports every version of Minecraft that the vanilla launcher does
63 + - Upload screenshots
64 + - Import, export Instances allowing you to share with friends and/or make backups
65 + </longdescription>
66 +</pkgmetadata>
67
68 diff --git a/games-action/multimc-bin/multimc-bin-1.5.1.ebuild b/games-action/multimc-bin/multimc-bin-1.5.1.ebuild
69 new file mode 100644
70 index 00000000000..2e4e4a21053
71 --- /dev/null
72 +++ b/games-action/multimc-bin/multimc-bin-1.5.1.ebuild
73 @@ -0,0 +1,48 @@
74 +# Copyright 2019-2021 Gentoo Authors
75 +# Distributed under the terms of the GNU General Public License v2
76 +
77 +EAPI=8
78 +
79 +inherit unpacker xdg
80 +
81 +DESCRIPTION="An advanced Qt5-based open-source launcher for Minecraft"
82 +HOMEPAGE="https://multimc.org https://github.com/MultiMC/MultiMC5"
83 +SRC_URI="https://files.multimc.org/downloads/multimc_$(ver_rs 2 -).deb"
84 +# We need -bin because of secret API keys:
85 +# https://github.com/MultiMC/MultiMC5/issues/4087
86 +# https://github.com/MultiMC/MultiMC5/issues/4113
87 +# https://bugs.gentoo.org/814404
88 +S="${WORKDIR}"
89 +
90 +KEYWORDS="-* ~amd64"
91 +LICENSE="Apache-2.0 Boost-1.0 BSD-2 BSD GPL-2+ LGPL-2.1-with-linking-exception LGPL-3 OFL-1.1 MIT"
92 +SLOT="0"
93 +
94 +RDEPEND="
95 + dev-qt/qtcore:5
96 + dev-qt/qtwidgets:5
97 + dev-qt/qtconcurrent:5
98 + dev-qt/qtnetwork:5
99 + dev-qt/qtgui:5
100 + dev-qt/qttest:5
101 + dev-qt/qtxml:5
102 + sys-libs/zlib
103 + >=virtual/jre-1.8.0
104 + virtual/opengl
105 + x11-libs/libXrandr
106 +"
107 +
108 +QA_PREBUILT="*"
109 +
110 +src_install() {
111 + mv "${S}"/* "${ED}" || die
112 + # Rename the .desktop file to avoid file conflict with non-bin version
113 + mv "${ED}/usr/share/applications/multimc.desktop" "${ED}/usr/share/applications/multimc-bin.desktop" || die
114 + # Change the name so we can differentiate from the non-bin version in app menu
115 + # and remove empty options
116 + sed -i \
117 + -e 's/Name=MultiMC 5/Name=MultiMC Official Binary/g' \
118 + -e '/Path=/d' \
119 + -e '/TerminalOptions=/d' \
120 + "${ED}/usr/share/applications/multimc-bin.desktop" || die
121 +}