diff options
author | Matoro Mahri <matoro@users.noreply.github.com> | 2023-03-16 01:57:18 -0400 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-03-20 05:35:39 +0000 |
commit | 19e111e291e62ab657919e3286442617a23d1f63 (patch) | |
tree | eb06dd98cd42458ff281fab628039a36636ca2cb /media-libs/kvazaar | |
parent | media-video/hevc-hm: new package, add 17.0 (diff) | |
download | gentoo-19e111e291e62ab657919e3286442617a23d1f63.tar.gz gentoo-19e111e291e62ab657919e3286442617a23d1f63.tar.bz2 gentoo-19e111e291e62ab657919e3286442617a23d1f63.zip |
media-libs/kvazaar: add 2.2.0, wire up tests
Bug: https://bugs.gentoo.org/896120
Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com>
Closes: https://github.com/gentoo/gentoo/pull/30149
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/kvazaar')
-rw-r--r-- | media-libs/kvazaar/Manifest | 1 | ||||
-rw-r--r-- | media-libs/kvazaar/kvazaar-2.2.0.ebuild | 64 | ||||
-rw-r--r-- | media-libs/kvazaar/kvazaar-9999.ebuild | 16 |
3 files changed, 73 insertions, 8 deletions
diff --git a/media-libs/kvazaar/Manifest b/media-libs/kvazaar/Manifest index b4dc3234b543..a3305dc8296a 100644 --- a/media-libs/kvazaar/Manifest +++ b/media-libs/kvazaar/Manifest @@ -1,2 +1,3 @@ DIST greatest-1.2.1.tar.gz 19792 BLAKE2B e6abd20eebf3223311fcd62e341595318dd00f192cf4b62ef3f0443a3e10fee71f4283f836931fee52672f2b37398f86046ae97220c2b6c6045fec9f9bf5cda8 SHA512 c17162fa222c84fef7826ba5202aae573d516a71bc2c59c8991db2a76f7069ed53d00aaab1b792e0c7e4243fae38183764c2e7ae0a61faf2ff13e78b29ccc211 DIST kvazaar-2.1.0.tar.gz 605962 BLAKE2B 0d61af55ab0caef2247524e8c564f9c24cfb479fcbd721f43e4409899e1a187a0e6de0b08a052cfb144ea31da906ba1c2160d6712828d6e55f0826d87f5c96ba SHA512 14b29f48908e004cf1b4f1f0c338b7b134a34140edcd58a645b4529c506cd567ebe3d56aa66e469dc417e1baa29bb8a476825b78825e810ac68a029191ad32ec +DIST kvazaar-2.2.0.tar.gz 617414 BLAKE2B 6ddb88ddea315d80e0af87a13127f235c184ae829492d1ff456899d2a24669b3deca25a320a8bdcf6e2cebc2c24e33c0678ac7bf51d2634a46781f66497bed54 SHA512 476abe251d7f555911851bc5a7dca84a96c0cd243c6a45dd59b808b8adf2b0787f69101a061bd48dfb6fe54a0aea046417f21fc826f14f518cada25c6d22aec4 diff --git a/media-libs/kvazaar/kvazaar-2.2.0.ebuild b/media-libs/kvazaar/kvazaar-2.2.0.ebuild new file mode 100644 index 000000000000..eae2fc58decc --- /dev/null +++ b/media-libs/kvazaar/kvazaar-2.2.0.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +GREATEST_PV="1.2.1" + +if [[ ${PV} = *9999 ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ultravideo/kvazaar" +else + SRC_URI="https://github.com/ultravideo/kvazaar/archive/v${PV}.tar.gz -> ${P}.tar.gz + test? ( https://github.com/silentbicycle/greatest/archive/v${GREATEST_PV}.tar.gz -> greatest-${GREATEST_PV}.tar.gz )" + KEYWORDS="~amd64 ~mips" +fi +inherit autotools flag-o-matic multilib-minimal + +DESCRIPTION="Open-source HEVC encoder" +HOMEPAGE="http://ultravideo.cs.tut.fi/ https://github.com/ultravideo/kvazaar" + +LICENSE="LGPL-2.1" +# subslot = libkvazaar major +SLOT="0/6" +IUSE="static-libs test" +REQUIRED_USE="test? ( static-libs )" + +RESTRICT="!test? ( test )" +ASM_DEP=">=dev-lang/yasm-1.2.0" +RDEPEND="" +DEPEND="${RDEPEND} + test? ( + media-video/ffmpeg + media-video/hevc-hm + ) + abi_x86_32? ( ${ASM_DEP} ) + abi_x86_64? ( ${ASM_DEP} ) +" + +src_prepare() { + default + sed -e "/^dist_doc_DATA/s/COPYING //" -i Makefile.am || die + eautoreconf + if use test && [[ ${PV} != *9999 ]]; then + # https://bugs.gentoo.org/show_bug.cgi?id=595932 + rmdir "${S}/greatest" || die + mv "${WORKDIR}/greatest-${GREATEST_PV}" "${S}/greatest" || die + fi + # Some m4 macros append Werror, we do not want that. + append-flags "-Wno-error" +} + +multilib_src_configure() { + ECONF_SOURCE="${S}" econf \ + --disable-werror \ + $(use_enable static-libs static) +} + +multilib_src_test() { + KVZ_TEST_VALGRIND=0 emake check +} + +multilib_src_install_all() { + find "${ED}" -name '*.la' -delete || die +} diff --git a/media-libs/kvazaar/kvazaar-9999.ebuild b/media-libs/kvazaar/kvazaar-9999.ebuild index d44b2a4ef699..eae2fc58decc 100644 --- a/media-libs/kvazaar/kvazaar-9999.ebuild +++ b/media-libs/kvazaar/kvazaar-9999.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 GREATEST_PV="1.2.1" @@ -11,7 +11,7 @@ if [[ ${PV} = *9999 ]] ; then else SRC_URI="https://github.com/ultravideo/kvazaar/archive/v${PV}.tar.gz -> ${P}.tar.gz test? ( https://github.com/silentbicycle/greatest/archive/v${GREATEST_PV}.tar.gz -> greatest-${GREATEST_PV}.tar.gz )" - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + KEYWORDS="~amd64 ~mips" fi inherit autotools flag-o-matic multilib-minimal @@ -30,6 +30,7 @@ RDEPEND="" DEPEND="${RDEPEND} test? ( media-video/ffmpeg + media-video/hevc-hm ) abi_x86_32? ( ${ASM_DEP} ) abi_x86_64? ( ${ASM_DEP} ) @@ -46,11 +47,6 @@ src_prepare() { fi # Some m4 macros append Werror, we do not want that. append-flags "-Wno-error" - - # valgrind isn't available on all archs - # also, the valgrind tests fail with new ffmpeg (upstream only tests again ffmpeg 2.6.3) - # see https://github.com/ultravideo/kvazaar/issues/216 - find "${S}/tests/" -type f -exec grep -q 'valgrind_test' '{}' \; -delete || die } multilib_src_configure() { @@ -59,6 +55,10 @@ multilib_src_configure() { $(use_enable static-libs static) } +multilib_src_test() { + KVZ_TEST_VALGRIND=0 emake check +} + multilib_src_install_all() { find "${ED}" -name '*.la' -delete || die } |