diff options
author | 2021-10-24 05:40:12 +0000 | |
---|---|---|
committer | 2021-10-24 05:40:19 +0000 | |
commit | 968ed5f146135a4b2acbafc51618d7449e8a6622 (patch) | |
tree | 4226a7e1635303a3e1730facfc18ceb6bc66e325 /games-misc/opengfx/opengfx-7.1.ebuild | |
parent | games-misc/opensfx: add 1.0.2 (diff) | |
download | gentoo-968ed5f146135a4b2acbafc51618d7449e8a6622.tar.gz gentoo-968ed5f146135a4b2acbafc51618d7449e8a6622.tar.bz2 gentoo-968ed5f146135a4b2acbafc51618d7449e8a6622.zip |
games-misc/opengfx: add 7.1
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-misc/opengfx/opengfx-7.1.ebuild')
-rw-r--r-- | games-misc/opengfx/opengfx-7.1.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/games-misc/opengfx/opengfx-7.1.ebuild b/games-misc/opengfx/opengfx-7.1.ebuild new file mode 100644 index 000000000000..568beb7453ab --- /dev/null +++ b/games-misc/opengfx/opengfx-7.1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{8..10} ) + +inherit python-any-r1 + +DESCRIPTION="OpenGFX data files for OpenTTD" +HOMEPAGE="https://wiki.openttd.org/en/Basesets/OpenGFX https://github.com/OpenTTD/OpenGFX" +SRC_URI="https://cdn.openttd.org/${PN}-releases/${PV}/${P}-source.tar.xz" +S="${WORKDIR}/${P}-source" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +DEPEND=" + games-util/grfcodec + games-util/nml + ${PYTHON_DEPS} +" + +DOCS=( "README.md" "changelog.txt" ) + +src_prepare() { + default + + python-any-r1_pkg_setup +} + +src_compile() { + local myemakeargs=( + GIMP="" + PYTHON="${EPYTHON}" + ) + + emake "${myemakeargs[@]}" all +} + +src_test() { + local myemakeargs=( + GIMP="" + PYTHON="${EPYTHON}" + ) + + emake "${myemakeargs[@]}" check +} + +src_install() { + local myemakeargs=( + DO_NOT_INSTALL_README="true" + DO_NOT_INSTALL_LICENSE="true" + DO_NOT_INSTALL_CHANGELOG="true" + GIMP="" + INSTALL_DIR="${ED}/usr/share/openttd/baseset/" + PYTHON="${EPYTHON}" + ) + + emake "${myemakeargs[@]}" install + + einstalldocs +} |