qgifer-0.2.1-r5.ebuild 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit cmake-utils
  5. DESCRIPTION="A video-based animated GIF creator"
  6. HOMEPAGE="https://sourceforge.net/projects/qgifer/"
  7. SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.gz"
  8. LICENSE="GPL-3+"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE="debug imagemagick opencv3"
  12. RDEPEND="
  13. >=media-libs/giflib-5.1:=
  14. dev-qt/qtcore:4
  15. dev-qt/qtgui:4
  16. virtual/ffmpeg:0
  17. imagemagick? ( media-gfx/imagemagick:0 )
  18. !opencv3? ( <media-libs/opencv-3.0.0:0=[ffmpeg] )
  19. opencv3? ( >=media-libs/opencv-3.0.0:0=[ffmpeg] )"
  20. DEPEND="${RDEPEND}"
  21. S="${WORKDIR}/${P}-source"
  22. PATCHES=(
  23. "${FILESDIR}/${P}-desktop.patch"
  24. # Port to giflib 5 API
  25. "${FILESDIR}/${P}-giflib5.patch"
  26. )
  27. src_prepare(){
  28. use opencv3 && PATCHES+=( "${FILESDIR}/${P}-opencv3.patch" )
  29. cmake-utils_src_prepare
  30. # Fix the doc path
  31. sed -i -e "s|share/doc/qgifer|share/doc/${PF}|" CMakeLists.txt || die
  32. }
  33. src_configure() {
  34. local mycmakeargs=(
  35. $(usex debug '-DRELEASE_MODE=OFF' '')
  36. )
  37. cmake-utils_src_configure
  38. }