diff options
author | Michael Palimaka <kensington@gentoo.org> | 2016-10-29 07:38:26 +1100 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2016-10-29 07:38:35 +1100 |
commit | e0479650fd397df627af31c09a25a16cab0ba8fc (patch) | |
tree | 6bdcd591506e62509910f11c87128af7e7dae6d8 /media-gfx | |
parent | dev-db/mariadb: Version bump for 10.0.28 (diff) | |
download | gentoo-e0479650fd397df627af31c09a25a16cab0ba8fc.tar.gz gentoo-e0479650fd397df627af31c09a25a16cab0ba8fc.tar.bz2 gentoo-e0479650fd397df627af31c09a25a16cab0ba8fc.zip |
media-gfx/nomacs: fix build with dev-libs/quazip-0.7.2
Gentoo-bug: 598354
Package-Manager: portage-2.3.2
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/nomacs/nomacs-3.4-r1.ebuild | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/media-gfx/nomacs/nomacs-3.4-r1.ebuild b/media-gfx/nomacs/nomacs-3.4-r1.ebuild new file mode 100644 index 000000000000..5482647f9579 --- /dev/null +++ b/media-gfx/nomacs/nomacs-3.4-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit cmake-utils fdo-mime + +DESCRIPTION="Qt-based image viewer" +HOMEPAGE="http://www.nomacs.org/" +SRC_URI="https://github.com/${PN}/${PN}/archive/3.4.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~amd64-linux" +IUSE="+jpeg opencv raw tiff zip" + +REQUIRED_USE=" + raw? ( opencv ) + tiff? ( opencv ) +" + +RDEPEND=" + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5[jpeg?] + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + >=media-gfx/exiv2-0.25:= + opencv? ( media-libs/opencv:=[-qt4] ) + raw? ( >=media-libs/libraw-0.14:= ) + tiff? ( media-libs/tiff:0 ) + zip? ( >=dev-libs/quazip-0.7.2[qt5] ) +" +DEPEND="${RDEPEND} + dev-qt/linguist-tools:5 + virtual/pkgconfig +" + +S="${WORKDIR}/${P}/ImageLounge" + +PATCHES=( "${FILESDIR}/${P}-no-opencv.patch" ) # bug 592134 + +src_prepare() { + default + + # fix build with quazip-0.7.2 - bug 598354 + sed -i -e "s/find_package(QuaZIP/find_package(QuaZip5/" cmake/Unix.cmake || die + sed -e "s/include <quazip/&5/" \ + -i src/DkLoader/DkImageLoader.cpp \ + -i src/DkLoader/DkImageContainer.cpp \ + -i src/DkLoader/DkBasicLoader.cpp \ + -i src/DkGui/DkDialog.cpp || die + +} + +src_configure() { + local mycmakeargs=( + -DENABLE_OPENCV=$(usex opencv) + -DENABLE_RAW=$(usex raw) + -DENABLE_TIFF=$(usex tiff) + -DENABLE_QUAZIP=$(usex zip) + -DUSE_SYSTEM_QUAZIP=ON + ) + cmake-utils_src_configure +} + +pkg_postinst() { + fdo-mime_desktop_database_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update +} |