diff options
author | Michael Palimaka <kensington@gentoo.org> | 2017-04-25 18:07:48 +1000 |
---|---|---|
committer | Michael Palimaka <kensington@gentoo.org> | 2017-04-25 18:07:54 +1000 |
commit | e155323c039d4a0fe1eae49fe80456281d34211b (patch) | |
tree | 6bd3d00387ba54757659c436a14e00f29ee6cd60 /media-gfx | |
parent | dev-util/eric: remove old (diff) | |
download | gentoo-e155323c039d4a0fe1eae49fe80456281d34211b.tar.gz gentoo-e155323c039d4a0fe1eae49fe80456281d34211b.tar.bz2 gentoo-e155323c039d4a0fe1eae49fe80456281d34211b.zip |
media-gfx/nomacs: verison bump 3.6.1
Gentoo-bug: 616040
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/nomacs/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/nomacs/nomacs-3.6.1.ebuild | 73 |
2 files changed, 74 insertions, 0 deletions
diff --git a/media-gfx/nomacs/Manifest b/media-gfx/nomacs/Manifest index 10c1d8196046..16f42432eca8 100644 --- a/media-gfx/nomacs/Manifest +++ b/media-gfx/nomacs/Manifest @@ -1 +1,2 @@ DIST nomacs-3.4.tar.gz 30026261 SHA256 552eda88aedea48831ce354095e3aad47892b4b5029f424171bedb68271c2a2f SHA512 67a1b57971dc373d5a3be75b7deaff6702893252568eef135903754b2465416a58b40f18f55cf2994c8c3853ae96b82506c1caf26b0e645c20179a9cd81c0d36 WHIRLPOOL f082d568ba56eaa1effc5e8552d16b816d558b7d4c2d7ddfd14a39f8805490d772116ca6ee35c8a38bd6b5fc69917287b7c596986f6a15b854bfebcbbe14304f +DIST nomacs-3.6.1.tar.gz 28604636 SHA256 09b289cac51a5fdccc02aa4a60405bbbd4b5bfdb6b2a52ca5b0cb3b0f7a87068 SHA512 cfbda2be5ed015a5ea39cc3c3c9273e3164bb67f0c5fd4fac0e3c607075cf67cfea2311b21420585363a841d65a53c03e100af57c209786243c2c3dcaba11f8e WHIRLPOOL 34125377dee0977ed6e48008d4d8e3ff461c39ab72e89c4dc3c3e8dd0eb0544da91db5a1cd1b38b1bad119a539a60664fd91cea90b21140042db06601d00604b diff --git a/media-gfx/nomacs/nomacs-3.6.1.ebuild b/media-gfx/nomacs/nomacs-3.6.1.ebuild new file mode 100644 index 000000000000..95b3193b230f --- /dev/null +++ b/media-gfx/nomacs/nomacs-3.6.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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/${PV}.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" + +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/DkCore/DkImageLoader.cpp \ + -i src/DkCore/DkImageContainer.cpp \ + -i src/DkCore/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 +} |