summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-05-20 14:55:04 +0200
committerAndrew Ammerlaan <andrewammerlaan@gentoo.org>2021-05-20 15:37:10 +0200
commit38ec600ca4777ff68a6ad5feb0368a74bd3ee5c6 (patch)
tree548b32493a6438b12dd565365a7887c20b05921b /games-action
parentx11-themes/QGnomePlatform: Drop old (diff)
downloadgentoo-38ec600ca4777ff68a6ad5feb0368a74bd3ee5c6.tar.gz
gentoo-38ec600ca4777ff68a6ad5feb0368a74bd3ee5c6.tar.bz2
gentoo-38ec600ca4777ff68a6ad5feb0368a74bd3ee5c6.zip
games-action/multimc: import from ::guru
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'games-action')
-rw-r--r--games-action/multimc/Manifest3
-rw-r--r--games-action/multimc/files/multimc-0.6.12-gcc11.patch11
-rw-r--r--games-action/multimc/metadata.xml28
-rw-r--r--games-action/multimc/multimc-0.6.12.ebuild73
4 files changed, 115 insertions, 0 deletions
diff --git a/games-action/multimc/Manifest b/games-action/multimc/Manifest
new file mode 100644
index 000000000000..f9dc3597286f
--- /dev/null
+++ b/games-action/multimc/Manifest
@@ -0,0 +1,3 @@
+DIST libnbtplusplus-multimc-0.6.1.tar.gz 47171 BLAKE2B e0e4d2593554dc59605114fcae86c59877da67d3f0888145b9ec2fe3d08decec7345a92c7d37310e021b5719f1371a58a22dc796e719028a478877e6d08982ed SHA512 81a1640a069d88df7ba0abf72089aecbe1e9d791c88acaaa7e70c8f0bcd0512cf8698178342657e363524ce8488dd072368a0aa8cc091a24912d6f8b6b0f4f2d
+DIST multimc-0.6.12.tar.gz 2389805 BLAKE2B d7b7660578d78d5d1cbaae607bf340c0c0a0aab5b0d2460218e1e468f450a3ac7030cb235c3e25f61d27d8c1e3cca71a1abbea22f9759726d34e495fe49de180 SHA512 334b0996b7b49a0f4a46a3e5b08d50d5f7aa398b8d5871772c751c1f98438d9584ffcdaf27ad6d2e84b2776415bd38910dffb8e746c4b343916c6849df2146da
+DIST quazip-multimc-3.tar.gz 103519 BLAKE2B 7a636f9e76cae61cee42131093b56d2a577814b2eb04bdc3c3a7614cf307bbdabe533c66a9f07848bbd929a62b7043dc53f2f85e2e487bfcc820170112f1114b SHA512 2e9074203c67bc7ad98621c551047e5367f06e54cacfecc755a5bf2c9f99266eab42ad972f86ae28ed7e1507f6d27d8d2680a87ce9fd5b1e93a18bcb627ec3f0
diff --git a/games-action/multimc/files/multimc-0.6.12-gcc11.patch b/games-action/multimc/files/multimc-0.6.12-gcc11.patch
new file mode 100644
index 000000000000..b523fa7c5554
--- /dev/null
+++ b/games-action/multimc/files/multimc-0.6.12-gcc11.patch
@@ -0,0 +1,11 @@
+diff -Naur MultiMC5-0.6.12.orig/libraries/systeminfo/src/sys_unix.cpp MultiMC5-0.6.12/libraries/systeminfo/src/sys_unix.cpp
+--- MultiMC5-0.6.12.orig/libraries/systeminfo/src/sys_unix.cpp 2021-03-22 04:45:06.000000000 +0900
++++ MultiMC5-0.6.12/libraries/systeminfo/src/sys_unix.cpp 2021-04-29 06:41:55.269952475 +0900
+@@ -4,6 +4,7 @@
+
+ #include <sys/utsname.h>
+ #include <fstream>
++#include <limits>
+
+ Sys::KernelInfo Sys::getKernelInfo()
+ {
diff --git a/games-action/multimc/metadata.xml b/games-action/multimc/metadata.xml
new file mode 100644
index 000000000000..3e76d82c569f
--- /dev/null
+++ b/games-action/multimc/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <remote-id type="github">MultiMC/MultiMC5</remote-id>
+ <bugs-to>https://github.com/MultiMC/MultiMC5/issues</bugs-to>
+ </upstream>
+ <maintainer type="person">
+ <email>andrewammerlaan@gentoo.org</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+ <longdescription>
+ 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:
+
+ - Manage multiple instances of Minecraft at once
+ - Start Minecraft with a custom resolution
+ - Change Java's runtime options (including memory options)
+ - Shows Minecraft's console output in a colour-coded window
+ - Kill Minecraft easily if it crashes/freezes
+ - Custom icons and groups for instances
+ - Forge, Fabric and LiteLoader integration (automatic installation, version downloads, mod management)
+ - Import of Curse modpacks
+ - LWJGL version changing built-in
+ - Supports every version of Minecraft that the vanilla launcher does
+ - Upload screenshots
+ - Import, export Instances allowing you to share with friends and/or make backups
+ </longdescription>
+</pkgmetadata>
diff --git a/games-action/multimc/multimc-0.6.12.ebuild b/games-action/multimc/multimc-0.6.12.ebuild
new file mode 100644
index 000000000000..202ff48445ea
--- /dev/null
+++ b/games-action/multimc/multimc-0.6.12.ebuild
@@ -0,0 +1,73 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop java-pkg-2 xdg cmake
+
+MY_PN="MultiMC5"
+MY_P="${MY_PN}-${PV}"
+
+QUAZIP_VER="multimc-3"
+LIBNBTPLUSPLUS_VER="multimc-0.6.1"
+
+DESCRIPTION="An advanced Qt5-based open-source launcher for Minecraft"
+HOMEPAGE="https://multimc.org
+ https://github.com/MultiMC/MultiMC5"
+BASE_URI="https://github.com/MultiMC"
+SRC_URI="
+ ${BASE_URI}/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ ${BASE_URI}/libnbtplusplus/archive/${LIBNBTPLUSPLUS_VER}.tar.gz -> libnbtplusplus-${LIBNBTPLUSPLUS_VER}.tar.gz
+ ${BASE_URI}/quazip/archive/${QUAZIP_VER}.tar.gz -> quazip-${QUAZIP_VER}.tar.gz
+"
+
+KEYWORDS="~amd64"
+LICENSE="Apache-2.0"
+SLOT="0"
+
+COMMON_DEPEND="
+ dev-qt/qtcore:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtconcurrent:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtgui:5
+ dev-qt/qttest:5
+ dev-qt/qtxml:5
+"
+DEPEND="${COMMON_DEPEND}
+ >=virtual/jdk-1.8.0
+"
+RDEPEND="${COMMON_DEPEND}
+ sys-libs/zlib
+ >=virtual/jre-1.8.0
+ virtual/opengl
+ x11-libs/libXrandr
+"
+
+S="${WORKDIR}/${MY_P}"
+PATCHES=( "${FILESDIR}"/multimc-0.6.12-gcc11.patch )
+
+src_unpack() {
+ default
+ rm -rf "${S}/libraries/libnbtplusplus" "${S}/libraries/quazip"
+ mv "${WORKDIR}/libnbtplusplus-${LIBNBTPLUSPLUS_VER}" "${S}/libraries/libnbtplusplus" || die
+ mv "${WORKDIR}/quazip-${QUAZIP_VER}" "${S}/libraries/quazip" || die
+}
+
+src_prepare() {
+ cmake_src_prepare
+ sed -r -i 's/-Werror([a-z=-]+)?//g' CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DMultiMC_LAYOUT=lin-system
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ domenu application/package/linux/multimc.desktop
+ doicon -s scalable application/resources/multimc/scalable/multimc.svg
+}