Change Qt deps
[gentoo-interactive-fiction.git] / games-engines / qtads / qtads-2.1.6.ebuild
blobe445ef2e68c4d2013e4e86275d3ead5bd17c92ff
1 EAPI=4
2 inherit eutils gnome2-utils fdo-mime qt4-r2 games
4 DESCRIPTION="Multimedia interpreter for TADS text adventures"
5 HOMEPAGE="http://qtads.sourceforge.net"
6 SRC_URI="mirror://sourceforge/qtads/${P}.tar.bz2"
8 LICENSE="GPL-2"
9 SLOT="0"
10 KEYWORDS="amd64 x86"
11 IUSE=""
13 # Note that for sdl-sound, we need the "mp3", not the "mpeg" USE flag. "mpeg"
14 # uses the SMPEG lib for decoding, which plays some MP3s at double speed. "mp3"
15 # uses SDL_sound's internal MPGLIB, which doesn't have that problem. It's OK
16 # if both "mp3" as well as "mpeg" are enabled, because SDL_sound tries MPGLIB
17 # first, and only if that fails will it use SMPEG.
18 DEPEND="dev-qt/qtgui:4
19 media-libs/libsdl[audio]
20 media-libs/sdl-mixer[midi,vorbis]
21 media-libs/sdl-sound[mp3]"
22 RDEPEND="${DEPEND}"
24 DOCS="AUTHORS HTML_TADS_LICENSE NEWS README"
26 src_configure() {
27 eqmake4 qtads.pro -after CONFIG-=silent
28 }
30 src_install() {
31 dogamesbin qtads
32 doman qtads.6
33 dodoc ${DOCS}
34 newicon -s 256 qtads_256x256.png ${PN}.png
35 insinto /usr/share/icons
36 doins -r "icons/hicolor"
37 insinto /usr/share/mime/packages
38 doins "icons/qtads.xml"
39 make_desktop_entry qtads QTads ${PN} Game "GenericName=TADS Multimedia Interpreter\nMimeType=application/x-tads;application/x-t3vm-image;"
40 prepgamesdirs
41 }
43 pkg_preinst() {
44 games_pkg_preinst
45 gnome2_icon_savelist
46 }
48 pkg_postinst() {
49 games_pkg_postinst
50 fdo-mime_desktop_database_update
51 fdo-mime_mime_database_update
52 gnome2_icon_cache_update
53 }
55 pkg_postrm() {
56 fdo-mime_desktop_database_update
57 fdo-mime_mime_database_update
58 gnome2_icon_cache_update
59 }