1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 if [ "$PV" != "9999" ]; then
7 SRC_URI
="https://github.com/realnc/hugor/releases/download/${PV}/hugor-${PV}-src.tar.bz2"
14 inherit gnome2-utils qmake-utils xdg
16 if [ "$PV" == "9999" ]; then
17 EGIT_REPO_URI
="https://github.com/realnc/hugor.git"
21 DESCRIPTION
="Multimedia interpreter for Hugo text adventures"
22 HOMEPAGE
="http://ifwiki.org/index.php/Hugor"
28 DEPEND
="dev-qt/qtgui:5
29 media-libs/sdl-mixer[mp3,mad,midi,mod]
30 gstreamer? ( media-libs/gst-plugins-base:1.0 )
31 x11-misc/shared-mime-info"
34 media-libs/gst-plugins-good:1.0
35 media-plugins/gst-plugins-libav
41 ! use gstreamer
&& conf
="disable-video"
42 eqmake5 hugor.pro CONFIG
+="${conf}" -after CONFIG-
=silent
48 doicon
"${FILESDIR}/hugor.png"
49 make_desktop_entry hugor Hugor
"hugor" Game
"GenericName=Hugo Multimedia Interpreter\nMimeType=application/x-hugo-image;"
50 insinto
/usr
/share
/icons
51 doins
-r "${FILESDIR}/hicolor"
52 insinto
/usr
/share
/mime
/packages
53 doins
"${FILESDIR}/hugor.xml"
62 gnome2_icon_cache_update
67 gnome2_icon_cache_update