media-gfx/qimgv: version bump 0.7
authorJiayi Zhao <jeff.no.zhao@gmail.com>
Sun, 12 Aug 2018 00:52:42 +0000 (20:52 -0400)
committerMichał Górny <mgorny@gentoo.org>
Wed, 15 Aug 2018 11:55:34 +0000 (13:55 +0200)
Closes: https://github.com/gentoo/gentoo/pull/9542

media-gfx/qimgv/Manifest
media-gfx/qimgv/metadata.xml
media-gfx/qimgv/qimgv-0.7.ebuild [new file with mode: 0644]

index d3534777deb2f1a34dff844054e89cacba1348c4..b5e9cce2baa344056d06f94cf564fb3934840ae3 100644 (file)
@@ -1 +1,2 @@
 DIST qimgv-0.6.3.tar.gz 238521 BLAKE2B 55da7c0e7b18547e7c2e2ab76f0a535c655c898707641c896469a07040e8f7f1a6e80580143016e24cdc0a7d9e2287c0d081ca8d262337faeea5d02168796a8e SHA512 c18ed0678bc094fedb339cfa227a5ddace6728b724f7640e4b018e52aa49dfb80d18879b372ab25bbf9e8c38497999471ba35a9bea5cd6b18d5ccbf1e55f3301
+DIST qimgv-0.7.tar.gz 273405 BLAKE2B c4f497eb132eeefa161e328f1ce246ff0a369e21b895cf85b68a69aaf446289ae0fc1170be9c424c32fc8659c196d1c7542938813edef30ea30f4e8509f22cfe SHA512 35fb8fbba75e08dad945fcbc679f449894c6eafc01ab0166b1929956dca636ccd25ba261c22c58a4d283aafa0690ca2c1f672092fc40c5b532f41944e4b0a9e3
index ccef191fae16bf65a5d0340702e9936ec51adef0..21ece4b810165c85e5147498577e464f223392b3 100644 (file)
@@ -9,4 +9,8 @@
                <email>proxy-maint@gentoo.org</email>
                <name>Proxy Maintainers</name>
        </maintainer>
+
+       <use>
+               <flag name="video">Add support for gif/webm playback via libmpv</flag>
+       </use>
 </pkgmetadata>
diff --git a/media-gfx/qimgv/qimgv-0.7.ebuild b/media-gfx/qimgv/qimgv-0.7.ebuild
new file mode 100644 (file)
index 0000000..7af9daa
--- /dev/null
@@ -0,0 +1,46 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils gnome2-utils 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="kde video"
+
+RDEPEND="
+       >=dev-qt/qtconcurrent-5.10.0
+       >=dev-qt/qtcore-5.10.0
+       >=dev-qt/qtgui-5.10.0
+       >=dev-qt/qtwidgets-5.10.0
+       kde? ( kde-frameworks/kwindowsystem:5 )
+       video? ( media-video/mpv[libmpv] )
+"
+DEPEND="
+       ${RDEPEND}
+       virtual/pkgconfig
+"
+
+src_configure() {
+       local mycmakeargs=(
+               -DKDE_BLUR=$(usex kde)
+               -DVIDEO_SUPPORT=$(usex video)
+       )
+       cmake-utils_src_configure
+}
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}