summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiayi Zhao <jeff.no.zhao@gmail.com>2020-06-30 19:23:15 -0400
committerJoonas Niilola <juippis@gentoo.org>2020-07-05 11:24:15 +0300
commitc859ad3e6647dc5d3c6f2abfdf49c5c578aa988a (patch)
tree4db8367a308c397e2d90a9d3a0c02d4103e7d5e8 /media-gfx/qimgv
parentdev-util/bloaty: add 9999 live ebuild (diff)
downloadgentoo-c859ad3e6647dc5d3c6f2abfdf49c5c578aa988a.tar.gz
gentoo-c859ad3e6647dc5d3c6f2abfdf49c5c578aa988a.tar.bz2
gentoo-c859ad3e6647dc5d3c6f2abfdf49c5c578aa988a.zip
media-gfx/qimgv: version bump 0.9.1
- add opencv use flag Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Jiayi Zhao <jeff.no.zhao@gmail.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-gfx/qimgv')
-rw-r--r--media-gfx/qimgv/Manifest1
-rw-r--r--media-gfx/qimgv/metadata.xml1
-rw-r--r--media-gfx/qimgv/qimgv-0.9.1.ebuild58
3 files changed, 60 insertions, 0 deletions
diff --git a/media-gfx/qimgv/Manifest b/media-gfx/qimgv/Manifest
index e274fc2a7cd..7d3b2eb47e7 100644
--- a/media-gfx/qimgv/Manifest
+++ b/media-gfx/qimgv/Manifest
@@ -1 +1,2 @@
DIST qimgv-0.8.8.tar.gz 460682 BLAKE2B fb701fbb336bf8e51751f677f7fddfd7eb0e1b770697ee510c0008a3ebddb0a3948d5a3f6f57a676dfa3117ca03b908cc3f88bcaec16a07000108279bd5fed80 SHA512 376f79eba2a625eb0f622494ce7ba98e1182b43cc6d7e268382c794a74d2772bd17083ac9ae45fcafc5eeb0665ef06ab34bdbeee8401a35bd0652744c576e131
+DIST qimgv-0.9.1.tar.gz 670033 BLAKE2B c1461791af4e6f73e36ec85968102e694f87acc904d270292ce8133206f9987f061ed02045d19058f76e448ce0410e9ffa38341253342b63b8a521183abaa1c5 SHA512 dbad56ebced421cafe6f5e03314fed5ed47e1c98405bac24a89f28f2684484af4f1fa6cc2b37f79e6afa7a1375f76881a8072646405691a47750a95032e02e2b
diff --git a/media-gfx/qimgv/metadata.xml b/media-gfx/qimgv/metadata.xml
index 840ab55fbe9..09edd32618c 100644
--- a/media-gfx/qimgv/metadata.xml
+++ b/media-gfx/qimgv/metadata.xml
@@ -10,6 +10,7 @@
<name>Proxy Maintainers</name>
</maintainer>
<use>
+ <flag name="opencv">Enable HQ scaling via <pkg>media-libs/opencv</pkg></flag>
<flag name="video">Add support for gif/webm playback via libmpv</flag>
</use>
</pkgmetadata>
diff --git a/media-gfx/qimgv/qimgv-0.9.1.ebuild b/media-gfx/qimgv/qimgv-0.9.1.ebuild
new file mode 100644
index 00000000000..1652efc8f40
--- /dev/null
+++ b/media-gfx/qimgv/qimgv-0.9.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake xdg-utils
+
+DESCRIPTION="A cross-platform image viewer with webm support, written in qt5"
+HOMEPAGE="https://github.com/easymodo/qimgv"
+SRC_URI="https://github.com/easymodo/qimgv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="exif kde opencv video"
+
+BDEPEND="
+ virtual/pkgconfig
+"
+DEPEND="
+ dev-qt/qtconcurrent:5
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtwidgets:5
+ exif? ( media-gfx/exiv2:= )
+ kde? ( kde-frameworks/kwindowsystem:5 )
+ opencv? ( media-libs/opencv:= )
+ video? ( media-video/mpv[libmpv] )
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+src_prepare() {
+ cmake_src_prepare
+ # respect make.conf CXXFLAGS
+ sed -i -e '/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -lstdc++fs -O3")/d' CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DEXIV2=$(usex exif)
+ -DKDE_SUPPORT=$(usex kde)
+ -DOPENCV_SUPPORT=$(usex opencv)
+ -DVIDEO_SUPPORT=$(usex video)
+ )
+ cmake_src_configure
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+ xdg_desktop_database_update
+}