# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI="6" inherit cmake-utils DESCRIPTION="A video-based animated GIF creator" HOMEPAGE="https://sourceforge.net/projects/qgifer/" SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz" LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="debug imagemagick opencv3" RDEPEND="=media-libs/opencv-3.0.0:0[ffmpeg] ) virtual/ffmpeg:0" DEPEND="${RDEPEND}" S="${WORKDIR}/${P}-source" PATCHES=( "${FILESDIR}/${P}-desktop.patch" ) src_prepare(){ use opencv3 && PATCHES+=( "${FILESDIR}/${P}-opencv3.patch" ) cmake-utils_src_prepare # Fix the doc path sed -i -e "s|share/doc/qgifer|share/doc/${PF}|" CMakeLists.txt || die } src_configure() { local mycmakeargs use debug && mycmakeargs=( -DRELEASE_MODE=OFF ) cmake-utils_src_configure }