summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Andrews <candrews@gentoo.org>2019-01-14 11:14:57 -0500
committerCraig Andrews <candrews@gentoo.org>2019-01-14 11:15:13 -0500
commit3a19c8172c6e0b736ea746132956aa5dddc18d1b (patch)
tree07a9ec8f58a29da86f6c909bfc87c5aabfd50010 /media-libs/vidstab/vidstab-9999.ebuild
parentvirtual/gnustep-back: 0.27.0 bump (diff)
downloadgentoo-3a19c8172c6e0b736ea746132956aa5dddc18d1b.tar.gz
gentoo-3a19c8172c6e0b736ea746132956aa5dddc18d1b.tar.bz2
gentoo-3a19c8172c6e0b736ea746132956aa5dddc18d1b.zip
media-libs/vidstab: For tests, use sse2 only if it is available
Reported upstream at https://github.com/georgmartius/vid.stab/pull/70 Closes: https://bugs.gentoo.org/675318 Package-Manager: Portage-2.3.55, Repoman-2.3.12 Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'media-libs/vidstab/vidstab-9999.ebuild')
-rw-r--r--media-libs/vidstab/vidstab-9999.ebuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/media-libs/vidstab/vidstab-9999.ebuild b/media-libs/vidstab/vidstab-9999.ebuild
index c694caee1d91..447fa8556869 100644
--- a/media-libs/vidstab/vidstab-9999.ebuild
+++ b/media-libs/vidstab/vidstab-9999.ebuild
@@ -22,14 +22,14 @@ fi
LICENSE="GPL-2+"
SLOT="0"
IUSE="openmp cpu_flags_x86_sse2"
-
src_prepare() {
# USE=cpu_flags_x86_sse2 instead
- sed -E 's#include (FindSSE)##' -i CMakeLists.txt
+ 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}
- sed -E 's#(add_definitions.* )-O3 #\1#' -i ${FILE_TO_PATCH}
+ 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
}
@@ -46,6 +46,7 @@ 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"