summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaosEngine <andrzej.pauli@gmail.com>2016-11-21 16:25:39 +0100
committerDavid Seifert <soap@gentoo.org>2016-11-26 12:06:27 +0100
commit73517ac75958a14ba307612decaae65a0c30699e (patch)
treeb40ebd2a3be92300d8a57ac2de2287dfe9a1b9a2 /media-video/qgifer/qgifer-0.2.1-r5.ebuild
parentmedia-tv/kodi: bump to 17.0b5 (diff)
downloadgentoo-73517ac75958a14ba307612decaae65a0c30699e.tar.gz
gentoo-73517ac75958a14ba307612decaae65a0c30699e.tar.bz2
gentoo-73517ac75958a14ba307612decaae65a0c30699e.zip
media-video/qgifer: Port codebase to >=media-libs/giflib-5.1
Gentoo-bug: 536634 Closes: https://github.com/gentoo/gentoo/pull/2881
Diffstat (limited to 'media-video/qgifer/qgifer-0.2.1-r5.ebuild')
-rw-r--r--media-video/qgifer/qgifer-0.2.1-r5.ebuild50
1 files changed, 50 insertions, 0 deletions
diff --git a/media-video/qgifer/qgifer-0.2.1-r5.ebuild b/media-video/qgifer/qgifer-0.2.1-r5.ebuild
new file mode 100644
index 000000000000..554e2432bfbf
--- /dev/null
+++ b/media-video/qgifer/qgifer-0.2.1-r5.ebuild
@@ -0,0 +1,50 @@
+# 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/giflib-5.1:=
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ virtual/ffmpeg:0
+ imagemagick? ( media-gfx/imagemagick:0 )
+ !opencv3? ( <media-libs/opencv-3.0.0:0=[ffmpeg] )
+ opencv3? ( >=media-libs/opencv-3.0.0:0=[ffmpeg] )"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}-source"
+
+PATCHES=(
+ "${FILESDIR}/${P}-desktop.patch"
+ # Port to giflib 5 API
+ "${FILESDIR}/${P}-giflib5.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=(
+ $(usex debug '-DRELEASE_MODE=OFF' '')
+ )
+ cmake-utils_src_configure
+}