commit:     bea9ff441e0eb3b4ab97ac06dd785dbcd1ce6c35
Author:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
AuthorDate: Tue Mar  6 10:08:19 2018 +0000
Commit:     Michael Palimaka <kensington <AT> gentoo <DOT> org>
CommitDate: Tue Mar  6 10:08:24 2018 +0000
URL:        https://gitweb.gentoo.org/proj/qt.git/commit/?id=bea9ff44

media-gfx/phototonic: sync with main tree

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 media-gfx/phototonic/phototonic-9999.ebuild | 28 ++++++++++++++++++++--------
 1 file changed, 20 insertions(+), 8 deletions(-)

diff --git a/media-gfx/phototonic/phototonic-9999.ebuild 
b/media-gfx/phototonic/phototonic-9999.ebuild
index a7310063..46087619 100644
--- a/media-gfx/phototonic/phototonic-9999.ebuild
+++ b/media-gfx/phototonic/phototonic-9999.ebuild
@@ -1,30 +1,32 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
-inherit qmake-utils
+
+inherit gnome2-utils qmake-utils xdg-utils
 
 DESCRIPTION="Image viewer and organizer"
 HOMEPAGE="https://github.com/oferkv/phototonic";
-if [[ ${PV} = 9999 ]]; then
+if [[ ${PV} = *9999* ]]; then
        inherit git-r3
        EGIT_REPO_URI="https://github.com/oferkv/phototonic.git";
-       KEYWORDS=""
 else
-       SRC_URI="https://dev.gentoo.org/~yngwin/distfiles/${P}.tar.xz";
+       SRC_URI="https://github.com/oferkv/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
        KEYWORDS="~amd64 ~x86"
 fi
 
-LICENSE="GPL-3"
+LICENSE="GPL-3+"
 SLOT="0"
 IUSE="svg tiff"
 
-RDEPEND="dev-qt/qtwidgets:5
+RDEPEND="
+       dev-qt/qtwidgets:5
        dev-qt/qtgui:5
        dev-qt/qtcore:5
        media-gfx/exiv2:=
        svg? ( dev-qt/qtsvg:5 )
-       tiff? ( dev-qt/qtimageformats:5 )"
+       tiff? ( dev-qt/qtimageformats:5 )
+"
 DEPEND="${RDEPEND}"
 
 src_configure() {
@@ -34,3 +36,13 @@ src_configure() {
 src_install() {
        emake install INSTALL_ROOT="${D}"
 }
+
+pkg_postinst() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}
+
+pkg_postrm() {
+       gnome2_icon_cache_update
+       xdg_desktop_database_update
+}

Reply via email to