media-video/simplescreenrecorder: Synced live ebuild.
authorLars Wendler <polynomial-c@gentoo.org>
Tue, 19 Dec 2017 02:56:05 +0000 (03:56 +0100)
committerLars Wendler <polynomial-c@gentoo.org>
Tue, 19 Dec 2017 03:09:40 +0000 (04:09 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

media-video/simplescreenrecorder/simplescreenrecorder-9999.ebuild

index 22b763bb40eadb860252f514e5ed739976ef0555..a732537e48c50f385df40f6b93e113e099f73a8d 100644 (file)
@@ -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
 }