diff options
author | Kalin KOZHUHAROV <me.kalin@gmail.com> | 2019-11-19 12:35:39 +0100 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2019-11-19 07:43:32 -0500 |
commit | 479f0002420dde8502c1ac2af23467ca7f052219 (patch) | |
tree | 6b036f85f9c1f85730b23eca8d9d61de06837409 /media-libs/vidstab | |
parent | dev-util/cmake: Bump to version 3.16.0_rc4. Removed old (diff) | |
download | gentoo-479f0002420dde8502c1ac2af23467ca7f052219.tar.gz gentoo-479f0002420dde8502c1ac2af23467ca7f052219.tar.bz2 gentoo-479f0002420dde8502c1ac2af23467ca7f052219.zip |
libs/vidstab: moving to EAPI=7
Bug: https://bugs.gentoo.org/700302
Signed-off-by: Kalin KOZHUHAROV <kalin@thinrope.net>
Closes: https://github.com/gentoo/gentoo/pull/13709
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'media-libs/vidstab')
-rw-r--r-- | media-libs/vidstab/vidstab-1.1.0-r2.ebuild | 61 | ||||
-rw-r--r-- | media-libs/vidstab/vidstab-9999.ebuild | 4 |
2 files changed, 63 insertions, 2 deletions
diff --git a/media-libs/vidstab/vidstab-1.1.0-r2.ebuild b/media-libs/vidstab/vidstab-1.1.0-r2.ebuild new file mode 100644 index 000000000000..7f3c294a36f2 --- /dev/null +++ b/media-libs/vidstab/vidstab-1.1.0-r2.ebuild @@ -0,0 +1,61 @@ +# Copyright 2018-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +: ${CMAKE_MAKEFILE_GENERATOR:=ninja} + +inherit cmake-multilib toolchain-funcs + +DESCRIPTION="Video stabilization library" +HOMEPAGE="http://public.hronopik.de/vid.stab/" + +if [[ ${PV} == *9999 ]] ; then + EGIT_REPO_URI="https://github.com/georgmartius/vid.stab.git" + inherit git-r3 +else + SRC_URI="https://github.com/georgmartius/vid.stab/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~sparc x86" + S="${WORKDIR}/vid.stab-${PV}" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="openmp cpu_flags_x86_sse2" +PATCHES=( + "${FILESDIR}/vidstab-1.1.0-tests-should-exit-with-code-0-on-success.patch" + "${FILESDIR}/vidstab-1.1.0-tests-use-sse2-only-if-available.patch" + "${FILESDIR}/vidstab-1.1.0-tests-1.1.0-fix-test_motiondetect-without-openmp.patch" +) +src_prepare() { + # USE=cpu_flags_x86_sse2 instead + sed -E 's#include (FindSSE)##' -i CMakeLists.txt || die + sed -E 's#include (FindSSE)##' -i tests/CMakeLists.txt || die + # strip some CFLAGS + for FILE_TO_PATCH in {,transcode/,tests/}CMakeLists.txt; do + sed -E 's#(add_definitions.* )-g #\1#' -i ${FILE_TO_PATCH} || die + sed -E 's#(add_definitions.* )-O3 #\1#' -i ${FILE_TO_PATCH} || die + done + cmake-utils_src_prepare +} + +src_configure() { + use openmp && tc-check-openmp + local mycmakeargs=( + -DUSE_OMP="$(usex openmp)" + -DSSE2_FOUND="$(usex cpu_flags_x86_sse2)" + ) + cmake-multilib_src_configure +} + +multilib_src_test() { + local mycmakeargs=( + -DUSE_OMP="$(usex openmp)" + -DSSE2_FOUND="$(usex cpu_flags_x86_sse2)" + ) + local CMAKE_USE_DIR="${CMAKE_USE_DIR}/tests" + local BUILD_DIR="${BUILD_DIR}/tests" + cmake-utils_src_configure + cmake-utils_src_make + "${BUILD_DIR}"/tests || die +} diff --git a/media-libs/vidstab/vidstab-9999.ebuild b/media-libs/vidstab/vidstab-9999.ebuild index 447fa8556869..f4bd05f45203 100644 --- a/media-libs/vidstab/vidstab-9999.ebuild +++ b/media-libs/vidstab/vidstab-9999.ebuild @@ -1,7 +1,7 @@ # Copyright 2018-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 : ${CMAKE_MAKEFILE_GENERATOR:=ninja} @@ -15,7 +15,7 @@ if [[ ${PV} == *9999 ]] ; then inherit git-r3 else SRC_URI="https://github.com/georgmartius/vid.stab/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~x86" + KEYWORDS="~alpha amd64 ~arm arm64 ~ia64 ~ppc ~ppc64 ~sparc x86" S="${WORKDIR}/vid.stab-${PV}" fi |