diff options
Diffstat (limited to 'media-libs/gmmlib/gmmlib-9999.ebuild')
-rw-r--r-- | media-libs/gmmlib/gmmlib-9999.ebuild | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/media-libs/gmmlib/gmmlib-9999.ebuild b/media-libs/gmmlib/gmmlib-9999.ebuild index 814f7e0d4a70..09b5bcec53f0 100644 --- a/media-libs/gmmlib/gmmlib-9999.ebuild +++ b/media-libs/gmmlib/gmmlib-9999.ebuild @@ -1,9 +1,10 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 CMAKE_ECLASS=cmake + inherit cmake-multilib if [[ ${PV} == *9999 ]] ; then @@ -27,16 +28,22 @@ fi LICENSE="MIT" SLOT="0" -IUSE="" +IUSE="test +custom-cflags" + +RESTRICT="!test? ( test )" -DEPEND="" RDEPEND="${DEPEND}" -multilib_src_configure() { -# once upstream makes this optional -# local mycmakeargs=( -# -DMEDIA_RUN_TEST_SUITE=OFF -# ) +PATCHES=( + "${FILESDIR}"/${PN}-20.2.2_conditional_testing.patch + "${FILESDIR}"/${PN}-20.4.1_custom_cflags.patch +) +multilib_src_configure() { + local mycmakeargs=( + -DBUILD_TYPE=Release + -DBUILD_TESTING=$(usex test) + -DOVERRIDE_COMPILER_FLAGS=$(usex !custom-cflags) + ) cmake_src_configure } |