2022-08-07 23:52:08 -04:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2021-03-21 18:11:51 -04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-11-14 14:12:15 -05:00
|
|
|
EAPI=8
|
2021-03-21 18:11:51 -04:00
|
|
|
|
2022-08-07 23:52:08 -04:00
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
|
|
PYTHON_COMPAT=( python3_{8..10} )
|
2021-03-21 18:11:51 -04:00
|
|
|
|
|
|
|
inherit distutils-r1
|
|
|
|
|
2022-08-07 23:52:08 -04:00
|
|
|
if [[ ${PV} == 9999 ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/Tuxemon/Tuxemon.git"
|
|
|
|
else
|
2021-03-21 18:11:51 -04:00
|
|
|
MY_PN="Tuxemon"
|
2021-11-15 16:23:29 -05:00
|
|
|
MY_P="${MY_PN}-${PV}"
|
2021-03-21 18:11:51 -04:00
|
|
|
S="${WORKDIR}/${MY_P}"
|
2022-08-07 23:52:08 -04:00
|
|
|
SRC_URI="https://github.com/Tuxemon/Tuxemon/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz"
|
2021-03-21 18:11:51 -04:00
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
DESCRIPTION="Open source monster-fighting RPG"
|
|
|
|
HOMEPAGE="https://www.tuxemon.org/"
|
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="+rumble"
|
2022-08-07 23:52:08 -04:00
|
|
|
RESTRICT="test"
|
2021-03-21 18:11:51 -04:00
|
|
|
|
2022-08-07 23:52:08 -04:00
|
|
|
DEPEND="dev-python/Babel"
|
2021-03-21 18:11:51 -04:00
|
|
|
RDEPEND="
|
|
|
|
${DEPEND}
|
2022-08-07 23:52:08 -04:00
|
|
|
dev-python/cbor[${PYTHON_USEDEP}]
|
|
|
|
dev-python/natsort[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pillow[${PYTHON_USEDEP}]
|
|
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
|
|
|
dev-python/prompt_toolkit[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pydantic-1.9.1[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pygame-2.1.2[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pygame-menu-4.2.8[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pytmx-3.31[${PYTHON_USEDEP}]
|
|
|
|
>=dev-python/pyscroll-2.30[${PYTHON_USEDEP}]
|
|
|
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
|
|
|
dev-python/neteria[${PYTHON_USEDEP}]
|
2021-03-21 18:11:51 -04:00
|
|
|
rumble? ( dev-libs/libshake )
|
|
|
|
"
|
|
|
|
BDEPEND=""
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
sed -i "s/\/user\/share/\/usr\/share/" "${S}/tuxemon/constants/paths.py"
|
|
|
|
distutils-r1_src_prepare
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
distutils-r1_src_install
|
|
|
|
dodir /usr/share/tuxemon
|
|
|
|
cp -r "${S}/mods" "${D}/usr/share/tuxemon"
|
|
|
|
}
|
2022-08-07 23:52:08 -04:00
|
|
|
|
|
|
|
#distutils_enable_tests unittest
|