Change Qt deps
[gentoo-interactive-fiction.git] / games-engines / qtads / qtads-9999.ebuild
Commit [+]AuthorDateLineData
f4e9029e Nikos Chantziaras2013-01-01 18:24:45 +02001EAPI=4
a7a6180b Nikos Chantziaras2010-04-19 00:44:42 +03002
a7a6180b Nikos Chantziaras2010-04-19 00:44:42 +03003EGIT_REPO_URI="git://${PN}.git.sourceforge.net/gitroot/${PN}/${PN}"
5e759808 Nikos Chantziaras2012-09-05 18:52:06 +03004inherit eutils gnome2-utils fdo-mime qt4-r2 git-2 games
a7a6180b Nikos Chantziaras2010-04-19 00:44:42 +03005
91e6fcab
NC
Nikos Chantziaras2010-09-28 07:37:36 +03006DESCRIPTION="Multimedia interpreter for TADS text adventures"
7HOMEPAGE="http://qtads.sourceforge.net"
a7a6180b
NC
Nikos Chantziaras2010-04-19 00:44:42 +03008
9LICENSE="GPL-2"
10SLOT="0"
11KEYWORDS=""
12IUSE=""
13
2f95ed40
NC
Nikos Chantziaras2010-10-04 23:22:54 +030014# Note that for sdl-sound, we need the "mp3", not the "mpeg" USE flag. "mpeg"
15# uses the SMPEG lib for decoding, which plays some MP3s at double speed. "mp3"
16# uses SDL_sound's internal MPGLIB, which doesn't have that problem. It's OK
17# if both "mp3" as well as "mpeg" are enabled, because SDL_sound tries MPGLIB
18# first, and only if that fails will it use SMPEG.
840ea00b Nikos Chantziaras2013-03-03 07:46:35 +020019DEPEND="dev-qt/qtgui:4
a7a6180b Nikos Chantziaras2010-04-19 00:44:42 +030020 media-libs/libsdl[audio]
2f95ed40
NC
Nikos Chantziaras2010-10-04 23:22:54 +030021 media-libs/sdl-mixer[midi,vorbis]
22 media-libs/sdl-sound[mp3]"
a7a6180b
NC
Nikos Chantziaras2010-04-19 00:44:42 +030023RDEPEND="${DEPEND}"
24
5e759808
NC
Nikos Chantziaras2012-09-05 18:52:06 +030025DOCS="AUTHORS HTML_TADS_LICENSE NEWS README"
26
27src_configure() {
28 eqmake4 qtads.pro -after CONFIG-=silent
29}
a7a6180b Nikos Chantziaras2010-04-19 00:44:42 +030030
a7a6180b Nikos Chantziaras2010-04-19 00:44:42 +030031src_install() {
5e759808
NC
Nikos Chantziaras2012-09-05 18:52:06 +030032 dogamesbin qtads
33 doman qtads.6
34 dodoc ${DOCS}
cdc6ab6e Nikos Chantziaras2012-08-06 20:56:02 +030035 newicon -s 256 qtads_256x256.png ${PN}.png
afb56669
NC
Nikos Chantziaras2012-08-06 18:12:46 +030036 insinto /usr/share/icons
37 doins -r "icons/hicolor"
38 insinto /usr/share/mime/packages
39 doins "icons/qtads.xml"
cdc6ab6e Nikos Chantziaras2012-08-06 20:56:02 +030040 make_desktop_entry qtads QTads ${PN} Game "GenericName=TADS Multimedia Interpreter\nMimeType=application/x-tads;application/x-t3vm-image;"
a7a6180b
NC
Nikos Chantziaras2010-04-19 00:44:42 +030041 prepgamesdirs
42}
afb56669 Nikos Chantziaras2012-08-06 18:12:46 +030043
cdc6ab6e
NC
Nikos Chantziaras2012-08-06 20:56:02 +030044pkg_preinst() {
45 games_pkg_preinst
46 gnome2_icon_savelist
47}
48
afb56669 Nikos Chantziaras2012-08-06 18:12:46 +030049pkg_postinst() {
cdc6ab6e
NC
Nikos Chantziaras2012-08-06 20:56:02 +030050 games_pkg_postinst
51 fdo-mime_desktop_database_update
52 fdo-mime_mime_database_update
53 gnome2_icon_cache_update
54}
55
56pkg_postrm() {
afb56669
NC
Nikos Chantziaras2012-08-06 18:12:46 +030057 fdo-mime_desktop_database_update
58 fdo-mime_mime_database_update
cdc6ab6e Nikos Chantziaras2012-08-06 20:56:02 +030059 gnome2_icon_cache_update
afb56669 Nikos Chantziaras2012-08-06 18:12:46 +030060}