You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-misc/opengfx/opengfx-0.6.0.ebuild

66 lines
1.0 KiB

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MY_PN="OpenGFX"
PYTHON_COMPAT=( python3_{7..9} )
inherit python-any-r1
DESCRIPTION="OpenGFX data files for OpenTTD"
HOMEPAGE="http://bundles.openttdcoop.org/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() {
myemakeargs=(
GIMP=""
PYHTON="${EPYTHON}"
)
emake "${myemakeargs[@]}" all
}
src_test() {
myemakeargs=(
GIMP=""
PYHTON="${EPYTHON}"
)
emake "${myemakeargs[@]}" check
}
src_install() {
myemakeargs=(
DO_NOT_INSTALL_README="true"
DO_NOT_INSTALL_LICENSE="true"
DO_NOT_INSTALL_CHANGELOG="true"
GIMP=""
INSTALL_DIR="${ED}/usr/share/games/openttd/data/"
PYHTON="${EPYTHON}"
)
emake "${myemakeargs[@]}" install
einstalldocs
}