Commit 3437233a authored by anton's avatar anton Committed by frainz
Browse files

sci-libs/vmaf: bump EAPI, fix QA messages

Unfortunately no testing yet, still missing deps

Package-Manager: Portage-3.0.20, Repoman-3.0.2
parent aef77556
DIST vmaf-1.3.15.tar.gz 68124392 BLAKE2B 0d68047920c40d592c50b7f1244b8713d31bf38470e61a1fc81ae29eba90d067922841ea2d723c4d31295b1247c84dfc1b5b1a1bd20d2c95ee60f4c58ca7cb09 SHA512 48dd07e7cf0bca0133739d788e0dab016304cb3b33c72db5a2bc55a55768c3efac6b85c413e8471bfa362bf6ce3bd20994bf996af9cf09c37f2be977791c08c6
DIST vmaf-2.2.0.tar.gz 10188415 BLAKE2B c3f378f247a95c2f5d4fcabaa2a4bd1b28e16a6b60be38607efe99fda30e356feffa433592bc68ef1460648111000ddb4932c7356fb4f23f5e513afdbc5005f5 SHA512 3b087b9b7df4f20b65b336fdfe43a60de179b1e87518233f2580a4882e607ca9d5dd3f5e98aa15a2e3bcdbfd6f62fecf0d11def908be18b01efccc7d7f6b58ae
EBUILD vmaf-1.3.15.ebuild 3219 BLAKE2B d3c53be11881aa0123a1aee0df827f2e23cda7f35691e3baa74dabfae247bcb2123443974e2facbea8fb627de4f19c37cd3c84f51f176f0e16b721b59be92a2b SHA512 2db42396d343601e7a7fbf683e08061795bb080b453a3aabf7265356e5880834a910a7a66b68716c8190c108d056dc3f2ccfa8c34050bbc6dfcb7408176bf42d
EBUILD vmaf-2.2.0.ebuild 1461 BLAKE2B c640454fd3a70c32b48a76aba8730fc51be8bbfde65f7e2f8c012d256d3b15100c2cfdf4dae1ef46fb42c784a6aa29d3653b2b6ed05b16a51cb0641d2147e846 SHA512 90dc7e25ef4611ea61c1407944c68b43a4825d96b12878a55f48abb1c06b0b90730908922c5df5c0c082164f96338a73e3d4e167f30df2cde79757004beabda3
EBUILD vmaf-2.2.0.ebuild 1892 BLAKE2B 7cb6db51783bc24cd34355c8529c7b3725205df1aad2eb6acd8da5ab114ce8df8e8da8680c22e5c843acd78080c8fb863f1cce3d68c8424375f2922a97e7eeec SHA512 a58f4a5c821d9c64c0be422d474785003af7eca41884f11c26504342929fc090e2aa8dfdfa94493b5b86fce51b77141f857ad664383506d962e158f2f5cf5abc
MISC metadata.xml 286 BLAKE2B 4ed76bd2b39a67cd8590e26e7a4c79ae911d68e5ea9af1e3c6c9af743b048bf19940809eae9129f32d480301234a4163fe1a945f32c4a8149f64148a34629918 SHA512 b546e930fe0ae30a01f28a03dc45af391eacfe1a26e5e9724e41060f710d27fd853c119f7db1d1bdee0bbae7fdeff322a786705923e72951f42a07e464a1ad29
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
PYTHON_COMPAT=( python3_{7,8,9} )
DISTUTILS_OPTIONAL=1
DISTUTILS_USE_SETUPTOOLS=no
inherit distutils-r1 meson
......@@ -16,30 +15,45 @@ SRC_URI="https://github.com/Netflix/vmaf/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="vmaf-LICENSE"
SLOT="0"
KEYWORDS="~amd64"
IUSE="python"
IUSE="python test"
pydeps="python? (
${PYTHON_DEPS}
>=dev-python/dill-0.3.1[${PYTHON_USEDEP}]
>=dev-python/numpy-1.18.2[${PYTHON_USEDEP}]
>=dev-python/scipy-1.4.1[${PYTHON_USEDEP}]
>=dev-python/matplotlib-3.2.1[${PYTHON_USEDEP}]
>=dev-python/pandas-1.0.3[${PYTHON_USEDEP}]
>=sci-libs/scikit-learn-0.22.2[${PYTHON_USEDEP}]
>=sci-libs/scikit-image-0.16.2[${PYTHON_USEDEP}]
>=dev-python/h5py-2.6.0[${PYTHON_USEDEP}]
>=dev-python/python-slugify-5.0.0[${PYTHON_USEDEP}]
)"
BDEPEND="
dev-util/ninja
dev-lang/nasm
"
# test? (
# ${pydeps}
# )
DEPEND=""
RDEPEND="${DEPEND}
python? (
${PYTHON_DEPS}
>=dev-python/dill-0.3.1[${PYTHON_USEDEP}]
>=dev-python/numpy-1.18.2[${PYTHON_USEDEP}]
>=dev-python/scipy-1.4.1[${PYTHON_USEDEP}]
>=dev-python/matplotlib-3.2.1[${PYTHON_USEDEP}]
>=dev-python/pandas-1.0.3[${PYTHON_USEDEP}]
>=sci-libs/scikit-learn-0.22.2[${PYTHON_USEDEP}]
>=sci-libs/scikit-image-0.16.2[${PYTHON_USEDEP}]
>=dev-python/h5py-2.6.0[${PYTHON_USEDEP}]
)
${pydeps}
"
#RESTRICT="!test? ( test )"
# missing sureal dependency to run all tests
RESTRICT="test"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
EMESON_SOURCE="${S}/libvmaf/"
# Use weird build path to make hard-coded tests happy
# (they expect the source to be present at ../../"
BUILD_DIR="${WORKDIR}/${P}/build/foo"
src_configure() {
default
meson_src_configure
......@@ -71,3 +85,16 @@ src_install() {
popd
fi
}
src_test() {
meson_src_test
python_test
}
python_test() {
if use python; then
pushd "python" || die
epytest
popd
fi
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment