1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils gnome2-utils fdo-mime qt4-r2
9 SRC_URI
="https://github.com/realnc/hugor/releases/download/${PV}/hugor-${PV}-src.tar.bz2"
11 DESCRIPTION
="Multimedia interpreter for Hugo text adventures"
12 HOMEPAGE
="http://ifwiki.org/index.php/Hugor"
17 REQUIRED_USE
="^^ ( fmod sdl )"
19 DEPEND
="dev-qt/qtgui:4
20 sdl? ( >=media-libs/sdl-mixer-1.2.12[mad,midi,modplug] )
21 fmod? ( media-libs/fmod )
22 x11-misc/shared-mime-info"
35 doicon
"${FILESDIR}/hugor.png"
36 make_desktop_entry hugor Hugor
"hugor" Game
"GenericName=Hugo Multimedia Interpreter\nMimeType=application/x-hugo-image;"
37 insinto
/usr
/share
/icons
38 doins
-r "${FILESDIR}/hicolor"
39 insinto
/usr
/share
/mime
/packages
40 doins
"${FILESDIR}/hugor.xml"
50 fdo-mime_desktop_database_update
51 fdo-mime_mime_database_update
52 gnome2_icon_cache_update
56 fdo-mime_desktop_database_update
57 fdo-mime_mime_database_update
58 gnome2_icon_cache_update