2021-06-21 15:45:03 -04:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-07-08 19:55:48 -04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2020-02-11 14:29:21 -05:00
|
|
|
EAPI=7
|
|
|
|
|
2020-07-08 20:34:39 -04:00
|
|
|
inherit cmake
|
2020-02-11 14:29:21 -05:00
|
|
|
|
2021-06-21 15:45:03 -04:00
|
|
|
MY_PN="MultiMC5"
|
|
|
|
MY_P="${MY_PN}-${PV}"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
2020-07-19 16:43:49 -04:00
|
|
|
V_QUAZIP="multimc-3"
|
|
|
|
V_LIBNBTPLUSPLUS="multimc-0.6.1"
|
|
|
|
SRC_URI="
|
|
|
|
https://github.com/MultiMC/MultiMC5/archive/${PV}.tar.gz -> ${P}.tar.gz
|
|
|
|
https://github.com/MultiMC/quazip/archive/${V_QUAZIP}.tar.gz -> quazip-${V_QUAZIP}.tar.gz
|
|
|
|
https://github.com/MultiMC/libnbtplusplus/archive/${V_LIBNBTPLUSPLUS}.tar.gz -> libnbtplusplus-${V_LIBNBTPLUSPLUS}.tar.gz
|
|
|
|
"
|
|
|
|
KEYWORDS="~amd64"
|
2020-02-11 14:29:21 -05:00
|
|
|
|
|
|
|
DESCRIPTION="MultiMC Minecraft Launcher"
|
|
|
|
HOMEPAGE="https://multimc.org/"
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
|
|
|
|
DEPEND=">=virtual/jre-1.8:*"
|
|
|
|
RDEPEND="${DEPEND}"
|
|
|
|
BDEPEND="
|
|
|
|
>=virtual/jdk-1.8:*
|
|
|
|
>=dev-util/cmake-3.1
|
|
|
|
dev-qt/qtcore
|
2020-06-04 16:44:41 -04:00
|
|
|
dev-qt/qtconcurrent
|
2020-02-11 14:29:21 -05:00
|
|
|
media-libs/mesa
|
|
|
|
sys-libs/zlib
|
|
|
|
"
|
|
|
|
|
2020-07-19 16:43:49 -04:00
|
|
|
src_unpack() {
|
|
|
|
default
|
|
|
|
rm -rf "${S}/libraries/libnbtplusplus" "${S}/libraries/quazip" || die
|
2021-06-21 15:45:03 -04:00
|
|
|
mv "${WORKDIR}/quazip-${V_QUAZIP}" "${S}/libraries/quazip" || die
|
|
|
|
mv "${WORKDIR}/libnbtplusplus-${V_LIBNBTPLUSPLUS}" "${S}/libraries/libnbtplusplus" || die
|
2020-07-19 16:43:49 -04:00
|
|
|
}
|
|
|
|
|
2020-02-11 14:29:21 -05:00
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=(
|
|
|
|
"-DCMAKE_INSTALL_PREFIX:PATH=/usr"
|
|
|
|
"-DMultiMC_LAYOUT:STRING=lin-system"
|
|
|
|
)
|
2020-07-08 20:34:39 -04:00
|
|
|
cmake_src_configure
|
2020-02-11 14:29:21 -05:00
|
|
|
}
|