qtads: Add 2.1.4, install icons and MIME types in live ebuild
[gentoo-interactive-fiction.git] / games-engines / qtads / qtads-2.1.4.ebuild
blob07c20eeff40e2be30772fd45912b52a204935eae
1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
5 EAPI="3"
6 inherit eutils fdo-mime games qt4-r2
8 DESCRIPTION="Multimedia interpreter for TADS text adventures"
9 HOMEPAGE="http://qtads.sourceforge.net"
10 SRC_URI="mirror://sourceforge/qtads/${P}.tar.bz2"
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE=""
17 DEPEND="x11-libs/qt-gui:4
18 media-libs/libsdl[audio]
19 media-libs/sdl-mixer[midi,vorbis]
20 media-libs/sdl-sound[mp3]"
22 src_install() {
23 dogamesbin qtads || die
24 doman qtads.6
25 dodoc AUTHORS BUGS HTML_TADS_LICENSE NEWS README
26 doicon "qtads_256x256.png"
27 insinto /usr/share/icons
28 doins -r "icons/hicolor"
29 insinto /usr/share/mime/packages
30 doins "icons/qtads.xml"
31 make_desktop_entry qtads QTads "qtads_256x256" Game "GenericName=TADS Multimedia Interpreter\nMimeType=application/x-tads;application/x-t3vm-image;"
32 prepgamesdirs
33 }
35 pkg_postinst() {
36 fdo-mime_desktop_database_update
37 fdo-mime_mime_database_update
38 }