From 03d2c7aee516079b8239046d77d8ac77d5b04b2c Mon Sep 17 00:00:00 2001 From: Ryan Fox Date: Sun, 21 Mar 2021 04:22:38 +0000 Subject: [PATCH] games-rpg/tuxemon: New package Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Ryan Fox --- games-rpg/tuxemon/Manifest | 3 ++ games-rpg/tuxemon/metadata.xml | 11 +++++ games-rpg/tuxemon/tuxemon-0.4.26.ebuild | 54 +++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 games-rpg/tuxemon/Manifest create mode 100644 games-rpg/tuxemon/metadata.xml create mode 100644 games-rpg/tuxemon/tuxemon-0.4.26.ebuild diff --git a/games-rpg/tuxemon/Manifest b/games-rpg/tuxemon/Manifest new file mode 100644 index 0000000..39159e2 --- /dev/null +++ b/games-rpg/tuxemon/Manifest @@ -0,0 +1,3 @@ +DIST tuxemon-0.4.26.tar.gz 171953512 BLAKE2B a462bd64c16c07afaea12556362d5729ef3a259ef81365aa951250cdba0996841b10325c517f4c352193387378c26225c009b69e45980c7cfadd690e71bef893 SHA512 26f068b62348b22f8914037094efa6a336b1cbd9b8ef856608930f9a227dc3bc2baf794c54c47f6f2541a347a83f970c3f9725dbb4dfa500409446f89928274a +EBUILD tuxemon-0.4.26.ebuild 1097 BLAKE2B 2d972dcd1d6b945a7a5017971521a6e8a6a4d7e5352c9651a296fe29cdb63c0006bba8f9ee21cc0b9f412a1c249338f1bff7026f8480e244183e01cfac1c8f66 SHA512 4c57c2585e4b59bb9d8d9531c5349b14c9681b0e8b240f2c17843c4e539eaac17e2619d8c61190e7a55bd47d82a9a7e93270ba4e8f0be8be8d775a2272209c8e +MISC metadata.xml 298 BLAKE2B 80b4d3ad84ca1d1275d4961a2eeffafed2ebaabe0b5823d469743c529907d8249d1db2de625b52cf89de122c527359cf81f51294ff1a12af2975184ac652b5d6 SHA512 8baeda0a500c08319fce01d0fd023808d029cb437f1832961a039951c5188e4bd76943eeab23c7bc47b2285f03dce79b6a14305a8da6d614ca51c5b7c92c177f diff --git a/games-rpg/tuxemon/metadata.xml b/games-rpg/tuxemon/metadata.xml new file mode 100644 index 0000000..b54ed9a --- /dev/null +++ b/games-rpg/tuxemon/metadata.xml @@ -0,0 +1,11 @@ + + + + +flewkey@2a03.party +Ryan Fox + + +Enable rumble support + + diff --git a/games-rpg/tuxemon/tuxemon-0.4.26.ebuild b/games-rpg/tuxemon/tuxemon-0.4.26.ebuild new file mode 100644 index 0000000..29c9d73 --- /dev/null +++ b/games-rpg/tuxemon/tuxemon-0.4.26.ebuild @@ -0,0 +1,54 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=bdepend + +inherit distutils-r1 + +if [[ ${PV} != *9999* ]]; then + MY_PN="Tuxemon" + MY_P="${MY_PN}-${PV}" + S="${WORKDIR}/${MY_P}" + SRC_URI="https://github.com/${MY_PN}/${MY_PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +else + inherit git-r3 + EGIT_REPO_URI="https://github.com/Tuxemon/Tuxemon.git" +fi + +DESCRIPTION="Open source monster-fighting RPG" +HOMEPAGE="https://www.tuxemon.org/" +LICENSE="GPL-3" +SLOT="0" +IUSE="+rumble" + +DEPEND=" + dev-python/Babel +" +RDEPEND=" + ${DEPEND} + dev-python/cbor + dev-python/natsort + dev-python/pillow + dev-python/requests + dev-python/pygame + dev-python/pytmx + dev-python/pyscroll + dev-python/neteria + 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" +}