media-fonts/3270font: update EAPI 7 -> 8

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2022-12-24 06:18:46 +05:00
parent c197328722
commit 16f24f0dbd

View File

@@ -1,15 +1,14 @@
# Copyright 1999-2022 Gentoo Authors # Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2 # Distributed under the terms of the GNU General Public License v2
EAPI="7" EAPI=8
PYTHON_COMPAT=( python3_{8..9} ) PYTHON_COMPAT=( python3_{8..9} )
inherit font python-any-r1 inherit font python-any-r1
DESCRIPTION="A IBM 3270 Terminal font in a modern format" DESCRIPTION="A IBM 3270 Terminal font in a modern format"
HOMEPAGE="https://github.com/rbanffy/3270font" HOMEPAGE="https://github.com/rbanffy/3270font"
SRC_URI="https://github.com/rbanffy/3270font/archive/v${PV}.tar.gz -> ${P}.tar.gz" SRC_URI="https://github.com/rbanffy/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD CC-BY-SA-3.0 GPL-3 OFL" LICENSE="BSD CC-BY-SA-3.0 GPL-3 OFL"
SLOT="0" SLOT="0"
@@ -18,14 +17,8 @@ IUSE="test"
RESTRICT="test" RESTRICT="test"
PROPERTIES="test_network" PROPERTIES="test_network"
DOCS=( CHANGELOG.md README.md )
HTML_DOCS=( "DESCRIPTION.en_us.html" )
PATCHES=(
"${FILESDIR}/remove-useless-tests.patch"
"${FILESDIR}/${PN}-2.3.0-correctly-pass-options.patch"
)
DEPEND=" BDEPEND="
${PYTHON_DEPS} ${PYTHON_DEPS}
media-gfx/fontforge media-gfx/fontforge
test? ( test? (
@@ -38,17 +31,23 @@ DEPEND="
) )
" "
DOCS=( CHANGELOG.md README.md )
HTML_DOCS=( "DESCRIPTION.en_us.html" )
PATCHES=(
"${FILESDIR}/remove-useless-tests.patch"
"${FILESDIR}/${PN}-2.3.0-correctly-pass-options.patch"
)
FONT_S="${S}/build" FONT_S="${S}/build"
FONT_SUFFIX="otf ttf pfm woff" FONT_SUFFIX="otf ttf pfm woff"
python_check_deps() { python_check_deps() {
has_version -d "dev-python/ipdb[${PYTHON_USEDEP}]" && \ use test || return 0
has_version -d "dev-python/pillow[${PYTHON_USEDEP}]" && \ python_has_version -b "dev-python/ipdb[${PYTHON_USEDEP}]" &&
has_version -d "dev-util/gftools[${PYTHON_SINGLE_USEDEP}]" python_has_version -b "dev-python/pillow[${PYTHON_USEDEP}]" &&
} python_has_version -b "dev-util/gftools[${PYTHON_SINGLE_USEDEP}]" &&
python_has_version -b "media-gfx/fontbakery[${PYTHON_USEDEP}]"
pkg_setup() {
use test && python-any-r1_pkg_setup
} }
src_compile() { src_compile() {