diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-12-20 11:17:21 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-12-20 11:17:21 +0000 |
commit | 48bdeb0db9c7ffed22c6eb859ee40b55ba598b86 (patch) | |
tree | f88035a58c20099cf45a576fb53b0330a4754f14 /media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild | |
parent | 0fb71e0215ed52863e462cccef73c01aff44d43d (diff) |
gentoo resync : 20.12.2017
Diffstat (limited to 'media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild')
-rw-r--r-- | media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild | 33 |
1 files changed, 21 insertions, 12 deletions
diff --git a/media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild b/media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild index 22b763bb40ea..a732537e48c5 100644 --- a/media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild +++ b/media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild @@ -3,7 +3,7 @@ EAPI=6 -inherit flag-o-matic multilib-minimal +inherit cmake-multilib flag-o-matic xdg-utils if [[ ${PV} = 9999 ]]; then inherit git-r3 @@ -23,7 +23,7 @@ else fi SLOT="0" -IUSE="+asm debug jack mp3 pulseaudio theora vorbis vpx x264" +IUSE="+asm jack mp3 pulseaudio theora vorbis vpx x264" RDEPEND=" dev-qt/qtcore:5 @@ -69,24 +69,33 @@ pkg_setup() { } multilib_src_configure() { - local myconf=( - $(multilib_native_use_enable debug assert) - $(multilib_native_use_with pulseaudio) - $(multilib_native_use_with jack) - $(use_enable asm x86-asm) + local mycmakeargs=( + -DENABLE_32BIT_GLINJECT="$(usex abi_x86_32)" + -DENABLE_X86_ASM="$(usex asm)" + -DWITH_PULSEAUDIO="$(multilib_native_usex pulseaudio)" + -DWITH_JACK="$(multilib_native_usex jack)" + -DWITH_GLINJECT="true" ) # libav doesn't have AVFrame::channels # https://github.com/MaartenBaert/ssr/issues/195#issuecomment-45646159 - if has_version media-video/libav; then - myconf+=( --disable-ffmpeg-versions ) + if has_version media-video/libav ; then + mycmakeargs+=( -DENABLE_FFMPEG_VERSIONS="false" ) fi if multilib_is_native_abi ; then - myconf+=( --with-qt5 ) + mymakeargs+=( -DWITH_QT5="true" ) else - myconf+=( --disable-ssrprogram ) + mycmakeargs+=( -DWITH_SIMPLESCREENRECORDER="false" ) fi - ECONF_SOURCE="${S}" econf "${myconf[@]}" + cmake-utils_src_configure +} + +pkg_postinst() { + xdg_desktop_database_update +} + +pkg_postrm() { + xdg_desktop_database_update } |