1 |
commit: 3d1d827516136da18b783a1e46534fe73b05384a |
2 |
Author: Thiago Donato Ferreira <flowlnlnln <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun May 8 20:39:22 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 9 15:39:38 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d1d8275 |
7 |
|
8 |
games-action/polymc: add 1.2.2 |
9 |
|
10 |
Signed-off-by: Thiago Donato Ferreira <flowlnlnln <AT> gmail.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/25392 |
12 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
13 |
|
14 |
games-action/polymc/Manifest | 1 + |
15 |
games-action/polymc/polymc-1.2.2.ebuild | 115 ++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 116 insertions(+) |
17 |
|
18 |
diff --git a/games-action/polymc/Manifest b/games-action/polymc/Manifest |
19 |
index 3ec18031f066..8d911f723887 100644 |
20 |
--- a/games-action/polymc/Manifest |
21 |
+++ b/games-action/polymc/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST polymc-1.2.1.tar.gz 5157547 BLAKE2B 92a65cd1303b4f2dce299d2a40824de54babd47bd21a894827e7a0e94276551fc747873ba44e63ac13b3ca46649c3d5280ec9eecd92eb63678f8cbc3c27e4f69 SHA512 193415b552dbc3f540f481c22e36c2b9d0604757cb12283ec0fc2979246757937648b76821818f0742b3f5201ed7af8e535dff9ef3d5efcb22f7a1ddf9ee67d2 |
24 |
+DIST polymc-1.2.2.tar.gz 5167667 BLAKE2B 5cc26d1650f9cf851ad01d3bc75a0ec3f19b3aa50031a91a3c9c16e9bc73dabfc495e408b8c83559026f3af03b86fdd5c83815f04c62121b71c144d1548d764c SHA512 d81d1aaba5361c8ad664bbecffd9869dda637002a5c1288142f40d21abca974d6cc03a50685be5f70a01d5b1ae8bcff4e48c5b849f6c3dcd959e5977582ada58 |
25 |
|
26 |
diff --git a/games-action/polymc/polymc-1.2.2.ebuild b/games-action/polymc/polymc-1.2.2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..00e26da2635e |
29 |
--- /dev/null |
30 |
+++ b/games-action/polymc/polymc-1.2.2.ebuild |
31 |
@@ -0,0 +1,115 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit cmake java-pkg-2 optfeature xdg |
38 |
+ |
39 |
+HOMEPAGE="https://polymc.org/ https://github.com/PolyMC/PolyMC" |
40 |
+DESCRIPTION="A custom, open source Minecraft launcher" |
41 |
+ |
42 |
+if [[ ${PV} == 9999 ]]; then |
43 |
+ inherit git-r3 |
44 |
+ |
45 |
+ EGIT_REPO_URI=" |
46 |
+ https://github.com/PolyMC/PolyMC |
47 |
+ https://github.com/PolyMC/libnbtplusplus |
48 |
+ " |
49 |
+ |
50 |
+ EGIT_SUBMODULES=( 'depends/libnbtplusplus' ) |
51 |
+else |
52 |
+ MY_PN="PolyMC" |
53 |
+ |
54 |
+ # Let's use the vendored tarball to avoid dealing with the submodules directly |
55 |
+ SRC_URI=" |
56 |
+ https://github.com/PolyMC/PolyMC/releases/download/${PV}/${MY_PN}-${PV}.tar.gz -> ${P}.tar.gz |
57 |
+ " |
58 |
+ |
59 |
+ # The PolyMC's files are unpacked to ${WORKDIR}/PolyMC-${PV} |
60 |
+ S="${WORKDIR}/${MY_PN}-${PV}" |
61 |
+ |
62 |
+ KEYWORDS="~amd64" |
63 |
+fi |
64 |
+ |
65 |
+# Apache-2.0 for MultiMC (PolyMC is forked from it) |
66 |
+# GPL-3 for PolyMC |
67 |
+# LGPL-3 for libnbtplusplus |
68 |
+# See the rest of PolyMC's libraries at https://github.com/PolyMC/PolyMC/tree/develop/libraries |
69 |
+LICENSE="Apache-2.0 Boost-1.0 BSD BSD-2 GPL-2+ GPL-3 LGPL-3 OFL-1.1 MIT" |
70 |
+ |
71 |
+SLOT="0" |
72 |
+ |
73 |
+IUSE="debug lto" |
74 |
+REQUIRED_USE=" |
75 |
+ lto? ( !debug ) |
76 |
+" |
77 |
+ |
78 |
+MIN_QT="5.6.0" |
79 |
+ |
80 |
+QT_DEPS=" |
81 |
+ >=dev-qt/qtconcurrent-${MIN_QT}:5 |
82 |
+ >=dev-qt/qtcore-${MIN_QT}:5 |
83 |
+ >=dev-qt/qtgui-${MIN_QT}:5 |
84 |
+ >=dev-qt/qtnetwork-${MIN_QT}:5 |
85 |
+ >=dev-qt/qttest-${MIN_QT}:5 |
86 |
+ >=dev-qt/qtwidgets-${MIN_QT}:5 |
87 |
+ >=dev-qt/qtxml-${MIN_QT}:5 |
88 |
+" |
89 |
+ |
90 |
+# Required at both build-time and run-time |
91 |
+COMMON_DEPENDS=" |
92 |
+ ${QT_DEPS} |
93 |
+ >=dev-libs/quazip-1.3:= |
94 |
+ sys-libs/zlib |
95 |
+" |
96 |
+ |
97 |
+DEPEND=" |
98 |
+ ${COMMON_DEPENDS} |
99 |
+ media-libs/libglvnd |
100 |
+ >=virtual/jdk-1.8.0:* |
101 |
+" |
102 |
+ |
103 |
+# At run-time we don't depend on JDK, only JRE |
104 |
+# And we need more than just the GL headers |
105 |
+RDEPEND=" |
106 |
+ ${COMMON_DEPENDS} |
107 |
+ >=virtual/jre-1.8.0:* |
108 |
+ virtual/opengl |
109 |
+" |
110 |
+ |
111 |
+if [[ ${PV} != 9999 ]]; then |
112 |
+ PATCHES=( "${FILESDIR}/${PN}-iconfix.patch" ) |
113 |
+fi |
114 |
+ |
115 |
+src_prepare() { |
116 |
+ cmake_src_prepare |
117 |
+} |
118 |
+ |
119 |
+src_configure(){ |
120 |
+ local mycmakeargs=( |
121 |
+ -DCMAKE_INSTALL_PREFIX="/usr" |
122 |
+ # Resulting binary is named polymc |
123 |
+ -DLauncher_APP_BINARY_NAME="${PN}" |
124 |
+ |
125 |
+ -DENABLE_LTO=$(usex lto) |
126 |
+ ) |
127 |
+ |
128 |
+ if use debug; then |
129 |
+ CMAKE_BUILD_TYPE=Debug |
130 |
+ else |
131 |
+ CMAKE_BUILD_TYPE=Release |
132 |
+ fi |
133 |
+ |
134 |
+ cmake_src_configure |
135 |
+} |
136 |
+ |
137 |
+src_compile(){ |
138 |
+ cmake_src_compile |
139 |
+} |
140 |
+ |
141 |
+pkg_postinst() { |
142 |
+ xdg_pkg_postinst |
143 |
+ |
144 |
+ # https://github.com/PolyMC/PolyMC/issues/227 |
145 |
+ optfeature "old Minecraft (<= 1.12.2) support" x11-libs/libXrandr |
146 |
+} |