Change Qt deps
[gentoo-interactive-fiction.git] / games-engines / qtads / qtads-2.1.6.ebuild
Commit [+]AuthorDateLineData
f4e9029e Nikos Chantziaras2013-01-01 18:24:45 +02001EAPI=4
5e759808 Nikos Chantziaras2012-09-05 18:52:06 +03002inherit eutils gnome2-utils fdo-mime qt4-r2 games
afb56669
NC
Nikos Chantziaras2012-08-06 18:12:46 +03003
4DESCRIPTION="Multimedia interpreter for TADS text adventures"
5HOMEPAGE="http://qtads.sourceforge.net"
6SRC_URI="mirror://sourceforge/qtads/${P}.tar.bz2"
7
8LICENSE="GPL-2"
9SLOT="0"
10KEYWORDS="amd64 x86"
11IUSE=""
12
5e759808
NC
Nikos Chantziaras2012-09-05 18:52:06 +030013# 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.
840ea00b Nikos Chantziaras2013-03-03 07:46:35 +020018DEPEND="dev-qt/qtgui:4
afb56669
NC
Nikos Chantziaras2012-08-06 18:12:46 +030019 media-libs/libsdl[audio]
20 media-libs/sdl-mixer[midi,vorbis]
21 media-libs/sdl-sound[mp3]"
5e759808
NC
Nikos Chantziaras2012-09-05 18:52:06 +030022RDEPEND="${DEPEND}"
23
f4e9029e Nikos Chantziaras2013-01-01 18:24:45 +020024DOCS="AUTHORS HTML_TADS_LICENSE NEWS README"
5e759808
NC
Nikos Chantziaras2012-09-05 18:52:06 +030025
26src_configure() {
27 eqmake4 qtads.pro -after CONFIG-=silent
28}
afb56669
NC
Nikos Chantziaras2012-08-06 18:12:46 +030029
30src_install() {
5e759808 Nikos Chantziaras2012-09-05 18:52:06 +030031 dogamesbin qtads
afb56669 Nikos Chantziaras2012-08-06 18:12:46 +030032 doman qtads.6
5e759808 Nikos Chantziaras2012-09-05 18:52:06 +030033 dodoc ${DOCS}
cdc6ab6e Nikos Chantziaras2012-08-06 20:56:02 +030034 newicon -s 256 qtads_256x256.png ${PN}.png
afb56669
NC
Nikos Chantziaras2012-08-06 18:12:46 +030035 insinto /usr/share/icons
36 doins -r "icons/hicolor"
37 insinto /usr/share/mime/packages
38 doins "icons/qtads.xml"
5e759808 Nikos Chantziaras2012-09-05 18:52:06 +030039 make_desktop_entry qtads QTads ${PN} Game "GenericName=TADS Multimedia Interpreter\nMimeType=application/x-tads;application/x-t3vm-image;"
afb56669
NC
Nikos Chantziaras2012-08-06 18:12:46 +030040 prepgamesdirs
41}
42
cdc6ab6e
NC
Nikos Chantziaras2012-08-06 20:56:02 +030043pkg_preinst() {
44 games_pkg_preinst
45 gnome2_icon_savelist
46}
47
afb56669 Nikos Chantziaras2012-08-06 18:12:46 +030048pkg_postinst() {
cdc6ab6e
NC
Nikos Chantziaras2012-08-06 20:56:02 +030049 games_pkg_postinst
50 fdo-mime_desktop_database_update
51 fdo-mime_mime_database_update
52 gnome2_icon_cache_update
53}
54
55pkg_postrm() {
afb56669
NC
Nikos Chantziaras2012-08-06 18:12:46 +030056 fdo-mime_desktop_database_update
57 fdo-mime_mime_database_update
cdc6ab6e Nikos Chantziaras2012-08-06 20:56:02 +030058 gnome2_icon_cache_update
afb56669 Nikos Chantziaras2012-08-06 18:12:46 +030059}